Jasper JSP error

2001-01-29 Thread Per Olesen

Hi

I'm trying to deploy a war which I've developed using weblogic, and 
which deploys fine there. But deploying it in tomcat gives me an 
exception from jasper saying:

-
org.apache.jasper.compiler.CompileException: 
/var/tomcat/webapps/webhelp/example/helpmain.jsp(4,0) Invalid 
jsp:include tag
at 
org.apache.jasper.compiler.IncludeGenerator.(IncludeGenerator.java)
at 
org.apache.jasper.compiler.JspParseEventListener.handleInclude(JspParseEventListener.java)

--

So it doesn't like my jsp:include. Previously someone pointed out to 
me about case sensitive in errorPage attribute, but I can't see that 
that should be the problem here.

Any ideas about whats happening here?

Regards,
Per Olesen

-- 
Per Olesen, Systems Architect @ Nordija ApS, www.nordija.com
Phone: (+45)23389581, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Jasper JSP error

2001-01-29 Thread Per Olesen

Hi,

Found the answer to my own problem. Maybe I should just read the 
JSP-spec more closely. The flush-attribute is apparently mandatory, but 
weblogic does not check this.

Regards,
Per Olesen

-- 
Per Olesen, Systems Architect @ Nordija ApS, www.nordija.com
Phone: (+45)23389581, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Trusted servlets and tomcat internals

2001-01-29 Thread Per Olesen

Hello,

I'm not sure if this should be a post in the developer-group, but I 
think it belongs here.

I would like to access some tomcat-specific functionality, more 
specificly it is:

1. Some logging service, where I can log my application errors, so they 
end up in a tomcat logfile.

2. Access to login information: Information about the user currently 
logged in. I think of something like isUserInRole and getPrincipal 
which exists on the Request-object - I think - but can I somehow access 
the functionality implementing these calls?
You might wonder why I would like this, but I'm porting a webapp from 
weblogic to tomcat, and in weblogic you can call some 
(weblogic-specific) calls to get a username if the user is 
authenticated.
Please note: I do know I can call the getPrincipal on the request, but 
I would like to call this functionality somewhere outside the context 
of where I have request objects.

I think I might have to mess with the trusted-attribute on the 
Context-tag in server.xml, but I do not know where to start with this. 
Any help is apppreciated. The docs also shortly mentions a 
"FacadeManager" but what is that?

Regards,
Per Olesen @ Nordija

-- 
Per Olesen, Systems Architect @ Nordija ApS, www.nordija.com
Phone: (+45)23389581, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: weird error

2001-01-29 Thread Per Olesen

Hi

This is just a guess:

I've seen this happen on other webservers in the situation where the 
web-browser requests some dynamic page like a servlet, and then cancels 
the request while the servlet is outputting its response.

You can try provoking it by doing a request from a browser to a servlet 
and then hitting escape (or pressing "Stop") in your browser, and then 
see if the exception comes.

Regards,
Per Olesen @ Nordija

On Monday 29 January 2001 14:19, you wrote:
 Hello,

 The server window shows the following error:

 2001-01-29 02:13:33 - Ctx( /test/pictures ): IOException in: R(
 /test/pictures + /priem-source.gif + null) Connection reset by
 peer: socket write error

 But regardless of the rror, everythings loads fine in my
 client browser (even the picture, which is causing the error
 (?)). What's causing this error, and how can I solve it.

 --
 Ajuus,
   Bop.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

-- 
Per Olesen, Systems Architect @ Nordija ApS, www.nordija.com
Phone: (+45)23389581, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]