tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tam, Michael" <m...@PFC.Forestry.CA>
Subject RE: ARG! Moved all my classes into a pakcage and now jsp's cannot findthem
Date Mon, 28 Oct 2002 23:50:46 GMT
When you invoke the servlet, you probably need to name the servlet the full
name e.g. com.syrrx.changemgmt.myservlet.

It maybe easier it you provide the servlet-mapping in your deployment
descriptor such that the url can be named in a shorter form.

Hope this help.


-----Original Message-----
From: Carson, Chuck []
Sent: Monday, October 28, 2002 3:21 PM
To: Tomcat Users List
Subject: RE: ARG! Moved all my classes into a pakcage and now jsp's
cannot findthem

Okay, I have placed changemgmt.jar into WEB-INF/lib, restarted tomcat. I
saw this in the log
file:localhost2002-10-28.log:WebappLoader[/changemgmt]: Deploy JAR
/WEB-INF/lib/changemgmt.jar to

When I submit a jsp form that calls this servlet it throws a class not
found exp. and it then makes the servlet unavailable:
Marking servlet AddNewChange as unavailable

The servlet is in a package called com.syrrx.changemgmt, in the jsp file
I import com.syrrx.changemgmt.*. This servlet worked fine when it
existed as a standalone class in WEB-INF/classes

Any ideas what is wrong?


-----Original Message-----
From:	Wendy Smoak []
Sent:	Mon 10/28/2002 2:58 PM
To:	'Tomcat Users List'
Subject:	RE: ARG! Moved all my classes into a pakcage and now
jsp's cannot	findthem
> I added TOMCAT_HOME/webapps/changemgmt/WEB-INF/classes/changemgmt.jar
> my classpath and the server classpath.

Your .jar file belongs in the 'lib' subdirectory under WEB-INF, not in
'classes' subdirectory.

You shouldn't have to mess with the CLASSPATH... I've never had to.  I
drop .jar files into $TOMCAT_HOME/webapps/context/WEB-INF/lib and the
classes they contain are automagically available.

Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

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

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

View raw message