Re: JSP problems

2004-04-01 Thread Dennis Thrysøe
Dennis Thrysøe wrote:
Dennis Thrysøe wrote:
Nope. Just plain old JSP's in a webapp. Jasper generates servlets and 
compiles them just fine. But it cannot load them. I get

java.lang.ClassNotFoundException: org.apache.jsp.index_jsp


I'm still having the problem. Is there anybody out there with a really 
detailed knowledge of how Jasper uses it's temp-dir?
It seems that I just found a workaround for the issue: Use JDK 1.4.2 
instead of JDK 1.3.1.

Shouldn't TOmcat 4.1.30 be able to run on JDK 1.3.1?

-dennis

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


Re: JSP problems

2004-03-31 Thread Dennis Thrysøe
Dennis Thrysøe wrote:
QM wrote:

: [snip] the classes are declared in the package org.apache.jsp.
: : Any ideas, how I can make tomcat (jasper?) load the classes that 
it just : generated and then compiled?

So then, you're precompiling the JSPs?
Nope. Just plain old JSP's in a webapp. Jasper generates servlets and 
compiles them just fine. But it cannot load them. I get

java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
I'm still having the problem. Is there anybody out there with a really 
detailed knowledge of how Jasper uses it's temp-dir?

What I experience is that Jasper compiles

  /foo/index.jsp

into

  /foo/index_jsp.class (which contains org.apache.jsp.index_jsp)

But Jasper's classloader doesn't seem able to load the file. Actually I 
see two problems here:

1) How can the classloader load a class in the org.apache.jsp package if 
the org/apache/jsp directory structure isn't present. Should this work?

2) What would the fully qualified classname of for instance 
/bar/index.jsp be?

Thanks,

-dennis

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


Re: JSP problems

2004-03-31 Thread Dennis Thrysøe
QM wrote:
: [snip] the classes are declared in the package org.apache.jsp.
: 
: Any ideas, how I can make tomcat (jasper?) load the classes that it just 
: generated and then compiled?

So then, you're precompiling the JSPs?
Nope. Just plain old JSP's in a webapp. Jasper generates servlets and 
compiles them just fine. But it cannot load them. I get

java.lang.ClassNotFoundException: org.apache.jsp.index_jsp
	at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:209)
	at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)
	at 
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:497)
	at 
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:150)
	at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:195)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

I don't have any URLs -- do a web search -- but there are examples for
building the JSPs into WEB-INF/classes and having Ant create the servlet
mappings (for web.xml) for you.
I wish that was the problem :)

-dennis

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


Re: JSP problems

2004-03-31 Thread QM
On Wed, Mar 31, 2004 at 01:59:56PM +0200, Dennis Thrys?e wrote:
: I'm still having the problem I already wrote about, as a result of 
: upgrading a tomcat 4.0.1 installation to 4.1.30.

I missed your first message.  If what I say here doesn't help, please
refresh me on the problem.



: [snip] the classes are declared in the package org.apache.jsp.
: 
: Any ideas, how I can make tomcat (jasper?) load the classes that it just 
: generated and then compiled?

So then, you're precompiling the JSPs?

I recall from my 4.x days that precomiling directly into the /work dir
had some issues with package naming.

I don't have any URLs -- do a web search -- but there are examples for
building the JSPs into WEB-INF/classes and having Ant create the servlet
mappings (for web.xml) for you.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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