You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Gerdau <mg...@technosis.de> on 2003/04/25 07:40:20 UTC

Re: Moved classes to Common Dir

>I moved some classes from my webApp's web-inf directory, to the Tomcat
>Common directory so that another webApp could share the same classes.  But,
>now I'm getting errors when I start Tomcat.
>
>Shouldn't it have been this simple?  What did I miss?

According to
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
classes shared between webapps should be put into
$(TOMCAT_HOME)/shared/lib.

Best,
Michael
--
 Vote against SPAM - see http://www.politik-digital.de/spam/
 Michael Gerdau       email: mgd@technosis.de
 Help stamp out vandalism, or I'll break all your windows.
 GPG/PGP-keys available on request or at public keyserver



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


RE: Moved classes to Common Dir

Posted by neal <ne...@yahoo.com>.
Oops ... meant to say that load order was common and then shared.

-----Original Message-----
From: neal [mailto:nealcabage@yahoo.com]
Sent: Thursday, April 24, 2003 10:55 PM
To: Tomcat Users List
Subject: RE: Moved classes to Common Dir


Well, I thought I read that class loading order is classes and then shared
... so either way it seems that wouldn't matter ... but for what its worth I
also tried using shared.  Of course, these are classes (not a jar) so I
placed them into common/classes and shared/classes, rather than the
respective lib directories.  It still didn't work though.  :(


-----Original Message-----
From: Michael Gerdau [mailto:mgd@technosis.de]
Sent: Thursday, April 24, 2003 10:40 PM
To: Tomcat Users List
Subject: Re: Moved classes to Common Dir


>I moved some classes from my webApp's web-inf directory, to the Tomcat
>Common directory so that another webApp could share the same classes.  But,
>now I'm getting errors when I start Tomcat.
>
>Shouldn't it have been this simple?  What did I miss?

According to
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
classes shared between webapps should be put into
$(TOMCAT_HOME)/shared/lib.

Best,
Michael
--
 Vote against SPAM - see http://www.politik-digital.de/spam/
 Michael Gerdau       email: mgd@technosis.de
 Help stamp out vandalism, or I'll break all your windows.
 GPG/PGP-keys available on request or at public keyserver



---------------------------------------------------------------------
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


RE: Moved classes to Common Dir

Posted by neal <ne...@yahoo.com>.
Well, I thought I read that class loading order is classes and then shared
... so either way it seems that wouldn't matter ... but for what its worth I
also tried using shared.  Of course, these are classes (not a jar) so I
placed them into common/classes and shared/classes, rather than the
respective lib directories.  It still didn't work though.  :(


-----Original Message-----
From: Michael Gerdau [mailto:mgd@technosis.de]
Sent: Thursday, April 24, 2003 10:40 PM
To: Tomcat Users List
Subject: Re: Moved classes to Common Dir


>I moved some classes from my webApp's web-inf directory, to the Tomcat
>Common directory so that another webApp could share the same classes.  But,
>now I'm getting errors when I start Tomcat.
>
>Shouldn't it have been this simple?  What did I miss?

According to
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
classes shared between webapps should be put into
$(TOMCAT_HOME)/shared/lib.

Best,
Michael
--
 Vote against SPAM - see http://www.politik-digital.de/spam/
 Michael Gerdau       email: mgd@technosis.de
 Help stamp out vandalism, or I'll break all your windows.
 GPG/PGP-keys available on request or at public keyserver



---------------------------------------------------------------------
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