tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhay Hiwarkar <>
Subject RE: Compile and Deploy JSPs - Tomcat 4.0
Date Wed, 22 Dec 2004 10:46:20 GMT

Thanks for your help. Also, I looked into archives and got more details.

Still, I am not able to load any jsp which is comipled to class and deployed
in a war file containing web.xml. On the other hand, I am able to get an
html (also packed in the war file) loaded without any error.

conf/server.xml has entry as follows -

      <Context path="/myProj" docBase="C:/tomcat4.0/myProj.war" 
         debug="0" privileged="true" >

conf/web.xml has enry as follows -




Upon issuing URL as : http://localhost:8080/myProj/client.jsp, following
error is thrown :

HTTP Status 500 : Internal Server Error
javax.servlet.ServletException: Wrapper cannot find servlet class client or
a class it depends on

Could any one help.

Thanks in advance,


-----Original Message-----
From: Antony Paul [] 
Sent: Tue, 21 Dec 2004 09:34
To: Tomcat Users List
Subject: Re: Compile and Deploy JSPs - Tomcat 4.0

The proper way to do this is use the JSPC task to compile  JSP files to
class files and then create url mappings in the web.xml for the JSPs to
class files. The class files are to be deployed in the WEB-INF/classes
directory. The Anto JSPC task(which is same supplied with Tomcat).
   I think this topic is discussed previously and you can find details in
the archives.

Antony Paul

On Tue, 21 Dec 2004 09:21:00 +0200, Abhay Hiwarkar
<> wrote:
> Hi,
> I have around 120 JSP files and want to avoid deploying them with the
> source-code.
> Using JSPC utility, I am able to compile them to ".java" files.
> If required, I can get the ".class" files from: /tomcat4.0/work/myApp.
> Can anybody help me deploying only the ".class" files with Tomcat4.0.
> Many Thanks in advance,
> Regards,
> Abhay

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message