> The generated servlets are not put in a package.
> When Tomcat is compiling JSP it is put in 
> org.apache.jsp. How to set this in the jspc task.
> The files are generated as usual in the work
> directory in the same structure
> as Tomcat itself compiles JSP files.

Not entirely true. You can compile the java sources of
the JSP's yourself. I do it and it prevents the delay
(for Tomcat to compile it) when you first execute a
JSP. You also pick up any possible JSP errors when
building, not after deployment.

You can also specify *any* package, it doesn't have to
be org.apache.jsp... I eg use com.myapp.jsp

The Tomcat HOW-TO documentation has a good example of
the complete process. "Jasper 2 JSP Engine How To",
option "Web Application Compilation".

I followed it exactly and mine works 100%. The main
difference from what you guys explain (I think), is
that I do not only generate java sources for the
jsp's, but also compile them (my jsp's are thus
delivered as .class files) and also include the
servlet mappings in the web.xml. Its all very easy to
do with ant.


> Antony Paul
> ----- Original Message -----
> From: "Ralph Einfeldt"
> <[EMAIL PROTECTED]>
> To: "Tomcat Users List"
> <[EMAIL PROTECTED]>
> Sent: Wednesday, January 07, 2004 7:06 PM
> Subject: RE: Problems running pre-compiled JSP
> classes when in
> subdirectories
> 
> 
> May be you should have a look at the following:
> 
> - the package statements in the generated source
> files
> - the file structure of the generate class files
> 
> > -----Original Message-----
> > From: Jay Glanville
> [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, January 07, 2004 2:20 PM
> > To: 'Tomcat Users List'
> > Subject: Problems running pre-compiled JSP classes
> when in
> > subdirectories
> >
> >
> >
> > Here's my application's background.  I have two
> files:
> >   <WEBROOT>/index.jsp
> >   <WEBROOT>/dir/index.jsp
> > java.lang.NoClassDefFoundError:
> org/apache/jsp/index_jsp (wrong name:
> > org/apache/jsp/dir/index_jsp)
> > at java.lang.ClassLoader.defineClass0(Native
> Method)
> > at
>
java.lang.ClassLoader.defineClass(ClassLoader.java:537)
> > at
>
java.lang.ClassLoader.defineClass(ClassLoader.java:448)
> > at
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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

Reply via email to