Andrew,

Yes theses are parts of a package.  They are just common classes that I 
wish to use across multiple apps.  Im not sure what you mean by 

"Did you build the package directory structure to match in the 
%CATALINA$\common\classes?"

I did not change the packages at all, I copied them directly from my 
system classpath (where they were being picked up by a previous Tomcat 
install) *directly* into the $CATALINA_HOME/common/classes folder. ie : 
%CATALINA$\common\classes contains first level folders such as com, org, javax etc.

My install did not even have a $CATALINA$\shared\classes folder.. however as you 
suggested i created one, re-started and  again it 
did not work.

I have tried puttintg the reported missing class in my apps 
/WEB-INF/classes folder already, this is not where my problem is, i need 
the common classes to be picked up from one place as i dont want to 
compromise and copy these common classes into several apps 
/WEB-INF/classes directory.

Thanks :)


Mehdi





"Andrew Conrad" <[EMAIL PROTECTED]>
12/07/2002 18:34
Please respond to "Tomcat Users List"

 
        To:     "'Tomcat Users List'" <[EMAIL PROTECTED]>
        cc: 
        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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Friday, July 12, 2002 12:36 PM
To: [EMAIL PROTECTED]
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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



Reply via email to