You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by "Gattaz, Olivier" <og...@adonix.fr> on 2001/01/18 11:36:20 UTC

how to share packages between many web-apps ?

Bonjour,

I develop five web applications which shares many utilities, and I do'nt
want to duplicate the classes in each webapps/xxx/WEB-INF/classes/.

How can I set the standard web-app classloader to give it a specific
classpath ? Is it a capability of the node "loader" of the "server.xml"
file ?

note: I use "jakarta-tomcat-4.0-b1".

Olivier Gattaz.



Re: how to share packages between many web-apps ?

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
"Gattaz, Olivier" wrote:

> Bonjour,
>

NOTE:  This and other Tomcat-related questions are best discussed on the
TOMCAT-USER mailing list.

>
> I develop five web applications which shares many utilities, and I do'nt
> want to duplicate the classes in each webapps/xxx/WEB-INF/classes/.
>
> How can I set the standard web-app classloader to give it a specific
> classpath ? Is it a capability of the node "loader" of the "server.xml"
> file ?
>

To share Java classes across web apps with Tomcat 4.0, you must place them in
JAR files under $CATALINA_HOME/lib.  That is the sole purpose of this directory,
and the appropriate "class path" (actually, the appropriate hierarchy of class
loaders) is assembled automatically.

If you do not wish to share them, place the JAR files under WEB-INF/lib for each
individual web app.

>
> note: I use "jakarta-tomcat-4.0-b1".
>
> Olivier Gattaz.
>

Craig McClanahan



RE: how to share packages between many web-apps ?

Posted by Vladimir Kroz <vl...@sentry-com.co.il>.
use %TOMCAT_HOME%\classes folder to store such classes

-----Original Message-----
From: Gattaz, Olivier [mailto:ogattaz@adonix.fr]
Sent: Thursday, January 18, 2001 12:36 PM
To: 'general@jakarta.apache.org'
Subject: how to share packages between many web-apps ?



Bonjour,

I develop five web applications which shares many utilities, and I do'nt
want to duplicate the classes in each webapps/xxx/WEB-INF/classes/.

How can I set the standard web-app classloader to give it a specific
classpath ? Is it a capability of the node "loader" of the "server.xml"
file ?

note: I use "jakarta-tomcat-4.0-b1".

Olivier Gattaz.



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