tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhay Hiwarkar <abhay.hiwar...@ucs-solutions.co.za>
Subject RE: Compile and Deploy JSPs - Tomcat 4.0
Date Thu, 23 Dec 2004 05:47:14 GMT
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:harry@mantheakis.freeserve.co.uk] 
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:antonypaul24@gmail.com]
> 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 
> <abhay.hiwarkar@ucs-solutions.co.za> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message