You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ferrari Laura <La...@TILAB.COM> on 2005/05/03 11:37:15 UTC

servlet/jps: servlet is Ok but jsp NoClassDefFoundError

 

I am working with Tomcat 5.0

 

In a working webapp \ondemand (with only jsp) I added a servlet.

The servlet work correctly but the jsp is not able to find the
lib/engine.jar (where the its classes are defined).

Without Servlet the JSP works.

With servlet I can not have my index.jsp

 

I tried to put the jar related to servlet in common/lib, but is the
same, the servlet works, but not the jsp.

Any idea?

Thanks.

Regards.

Laura Ferrari



Gruppo Telecom Italia - Direzione e coordinamento di Telecom Italia S.p.A.

====================================================================
CONFIDENTIALITY NOTICE
This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please send an e_mail to
MailAdmin@tilab.com. Thank you
====================================================================

Re: servlet/jps: servlet is Ok but jsp NoClassDefFoundError

Posted by Jason Bainbridge <jb...@gmail.com>.
On 5/3/05, Ferrari Laura <La...@tilab.com> wrote:
> 
> 
> I am working with Tomcat 5.0
> 
> In a working webapp \ondemand (with only jsp) I added a servlet.
> 
> The servlet work correctly but the jsp is not able to find the
> lib/engine.jar (where the its classes are defined).

NoClassDefFoundError means that more than one matching class is found
in the classpath so your servlet's jar must contain a class that your
JSP's jar does or something related to that.

Regards,
-- 
Jason Bainbridge
http://kde.org - webmaster@kde.org
Personal Site - http://jasonbainbridge.com

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


Re: servlet/jps: servlet is Ok but jsp NoClassDefFoundError

Posted by Anoop kumar V <an...@gmail.com>.
Does your servlet do anything like modify tomcat properties etc?? 
Seems liek an unusual problem to me - one that I have not encoutered!!

-Anoop

On 5/3/05, Ferrari Laura <La...@tilab.com> wrote:
> 
> 
> 
> I am working with Tomcat 5.0
> 
> In a working webapp \ondemand (with only jsp) I added a servlet.
> 
> The servlet work correctly but the jsp is not able to find the
> lib/engine.jar (where the its classes are defined).
> 
> Without Servlet the JSP works.
> 
> With servlet I can not have my index.jsp
> 
> I tried to put the jar related to servlet in common/lib, but is the
> same, the servlet works, but not the jsp.
> 
> Any idea?
> 
> Thanks.
> 
> Regards.
> 
> Laura Ferrari
> 
> Gruppo Telecom Italia - Direzione e coordinamento di Telecom Italia S.p.A.
> 
> ====================================================================
> CONFIDENTIALITY NOTICE
> This message and its attachments are addressed solely to the persons
> above and may contain confidential information. If you have received
> the message in error, be informed that any use of the content hereof
> is prohibited. Please return it immediately to the sender and delete
> the message. Should you have any questions, please send an e_mail to
> MailAdmin@tilab.com. Thank you
> ====================================================================
> 
> 


-- 
Thanks and best regards,
Anoop