You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Me...@bluewave.com on 2002/07/12 18:35:32 UTC
classpath problem
All,
I have installed Tomcat 4.0.2. All examples work fine, jsp's and
servlets.
when i removed my old version of Tomcat / apache, i obviously saved all of
my existing apps. I have now pointed Tomcat to these by specifying new
Contexts in my server.xml. All is fine... nearly.
My problem is that my classpath is not being picked up. Reading the docs,
i found that $CATALINA_HOME/common/classes is where i should put my non
application specific, common classes. I have done this but to no avail,
these classes which should be visible to my apps according to the
documentation are not found and a NoClassDefFound error results.
I have tried putting my "common" classes in the following directories :
$CATALINA_HOME/common/classes
$CATALINA_HOME/classes
They are not picked up. Needless to say i have restarted the service,
rebooted and hit my computer many times.
Any help would be appreciated
Thanks
Mehdi
Re: classpath problem
Posted by Brian Wolf <br...@knowledgextensions.com>.
Andrew,
Thanks, it seems to have resolved itself. Not sure how, but I have noticed
a problem with conflicting jar files, ie in this case one was distributed
for JDK1.4 and another for JDK1.2
Brian
----- Original Message -----
From: "Andrew Conrad" <an...@msn.com>
To: "'Tomcat Users List'" <to...@jakarta.apache.org>
Sent: Friday, July 12, 2002 1:34 PM
Subject: RE: classpath problem
> Are these classes apart of a package? Did you build the package
> directory structure to match in the %CATALINA$\common\classes?
>
>
> Have you tried the $CATALINA$\shared\classes folder? How about a
> webapp's WEB-INF\classes folder? Testing these to see if you can get
> any of them to work might help you solve your problem.
>
>
> - Andrew
>
> -----Original Message-----
> From: Mehdi.Nejad@bluewave.com [mailto:Mehdi.Nejad@bluewave.com]
> Sent: Friday, July 12, 2002 12:36 PM
> To: tomcat-user@jakarta.apache.org
> Subject: classpath problem
>
>
> All,
>
> I have installed Tomcat 4.0.2. All examples work fine, jsp's and
> servlets.
>
> when i removed my old version of Tomcat / apache, i obviously saved all
> of
> my existing apps. I have now pointed Tomcat to these by specifying new
> Contexts in my server.xml. All is fine... nearly.
>
> My problem is that my classpath is not being picked up. Reading the
> docs,
> i found that $CATALINA_HOME/common/classes is where i should put my non
> application specific, common classes. I have done this but to no avail,
>
> these classes which should be visible to my apps according to the
> documentation are not found and a NoClassDefFound error results.
>
> I have tried putting my "common" classes in the following directories :
>
> $CATALINA_HOME/common/classes
> $CATALINA_HOME/classes
>
> They are not picked up. Needless to say i have restarted the service,
> rebooted and hit my computer many times.
>
> Any help would be appreciated
>
> Thanks
>
> Mehdi
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: classpath problem
Posted by Andrew Conrad <an...@msn.com>.
Are these classes apart of a package? Did you build the package
directory structure to match in the %CATALINA$\common\classes?
Have you tried the $CATALINA$\shared\classes folder? How about a
webapp's WEB-INF\classes folder? Testing these to see if you can get
any of them to work might help you solve your problem.
- Andrew
-----Original Message-----
From: Mehdi.Nejad@bluewave.com [mailto:Mehdi.Nejad@bluewave.com]
Sent: Friday, July 12, 2002 12:36 PM
To: tomcat-user@jakarta.apache.org
Subject: classpath problem
All,
I have installed Tomcat 4.0.2. All examples work fine, jsp's and
servlets.
when i removed my old version of Tomcat / apache, i obviously saved all
of
my existing apps. I have now pointed Tomcat to these by specifying new
Contexts in my server.xml. All is fine... nearly.
My problem is that my classpath is not being picked up. Reading the
docs,
i found that $CATALINA_HOME/common/classes is where i should put my non
application specific, common classes. I have done this but to no avail,
these classes which should be visible to my apps according to the
documentation are not found and a NoClassDefFound error results.
I have tried putting my "common" classes in the following directories :
$CATALINA_HOME/common/classes
$CATALINA_HOME/classes
They are not picked up. Needless to say i have restarted the service,
rebooted and hit my computer many times.
Any help would be appreciated
Thanks
Mehdi
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>