Harry,

I decompiled all the class files and checked for "CLASS NAME". They are same
as provided in web.xml.

<servlet>
 <servlet-name>client</servlet-name>
 <servlet-class>client</servlet-class>
</servlet>

Still not able to access any jsp through
http://localhost:8080/myProj/client.jsp

Any help will be appriciated...

Abhay Hiwarkar



-----Original Message-----
From: Harry Mantheakis [mailto:[EMAIL PROTECTED] 
Sent: Wed, 22 Dec 2004 18:32
To: Tomcat Users List
Subject: Re: Compile and Deploy JSPs - Tomcat 4.0


I might be picking up fag ends here, but I noticed that in this block:


> <servlet>
> <servlet-name>client</servlet-name>
> <servlet-class>client</servlet-class>
> </servlet>


The 'servlet-class' element would normally take the fully qualified name of
the class - IOW the complete package name.

Also, classes, by Java conventions, should have capitalised names - so
perhaps your entry there is wrong.

Good luck.

Harry Mantheakis


> Hi,
> 
> 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 -
> 
> <servlet>
> <servlet-name>client</servlet-name>
> <servlet-class>client</servlet-class>
> </servlet>
> 
> ...
> 
> <servlet-mapping>
> <servlet-name>client</servlet-name>
> <url-pattern>/client.jsp</url-pattern>
> </servlet-mapping>
> 
> 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 at
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:87
> 3)
> at
>
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:655)
> 
> 
> Could any one help.
> 
> Thanks in advance,
> 
> Abhay
> 
> 
> 
> -----Original Message-----
> From: Antony Paul [mailto:[EMAIL PROTECTED]
> 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.
> 
> rgds
> Antony Paul
> 
> 
> On Tue, 21 Dec 2004 09:21:00 +0200, Abhay Hiwarkar 
> <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
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]

Reply via email to