You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tim Moore <tm...@blackboard.com> on 2003/02/13 18:36:07 UTC
RE: Sharing classes from diferent wbeapps!
OK, first of all, that big classpath init param is probably totally unnecessary.
Two, there's no reason you couldn't package your servlets in a jar and put it in $CATALINA_HOME/shared/lib.
Three, if you really do want to leave them as individual class files, you could put them in $CATALINA_HOME/shared/classes.
Four, you'll need to make sure that any classes/jars that your servlet depends on are also in shared/lib or shared/classes, or else you'll get class loading errors.
--
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863
> -----Original Message-----
> From: Edson Alves Pereira [mailto:eapereira@panamericano.com.br]
> Sent: Thursday, February 13, 2003 1:01 PM
> To: 'tomcat-user@jakarta.apache.org'
> Subject: Sharing classes from diferent wbeapps!
>
>
> Hello dudes, i´m having some problems trying to share
> servlets from diferent webapps, i can´t put the classes which
> my second webapp need in $CATALINA/shared/lib, because they
> aren´t .jar they are servlets indeed and second webapp
> extends them, here is the snapshoot of my second webapp´s
> web.xml:
>
> <servlet>
> <servlet-name>intranet</servlet-name>
> <servlet-class>IN_Login</servlet-class>
>
> <init-param>
> <param-name>classpath</param-name>
> <param-value>
>
> ${CATALINA_HOME}/panfinance-app/WEB-INF/classes:
>
> ${CATALINA_HOME}/panfinance-app/WEB-INF/lib/appi.jar:
>
> ${CATALINA_HOME}/panfinance-app/WEB-INF/lib/jcServlet.jar:
>
> ${CATALINA_HOME}/panfinance-app/WEB-INF/lib/crimson.jar:
>
> ${CATALINA_HOME}/panfinance-app/WEB-INF/lib/jaxp.jar:
>
> ${CATALINA_HOME}/panfinance-app/WEB-INF/lib/jndi.jar:
>
> ${CATALINA_HOME}/panfinance-app/WEB-INF/lib/jstyle.jar:
>
> ${CATALINA_HOME}/panfinance-app/WEB-INF/lib/mail.jar:
>
> ${CATALINA_HOME}/panfinance-app/WEB-INF/lib/oreilly.jar:
>
> ${CATALINA_HOME}/panfinance-app/WEB-INF/lib/shell_term.jar:
>
> ${CATALINA_HOME}/panfinance-app/WEB-INF/lib/acme.jar:
>
> ${CATALINA_HOME}/panfinance-app/WEB-INF/lib/ojdbc14.jar:
>
> ${CATALINA_HOME}/panfinance-app/WEB-INF/lib/com.jar:
>
> ${CATALINA_HOME}/panfinance-app/WEB-INF/lib/conceptsoft.jar:
>
> ${CATALINA_HOME}/panfinance-app/WEB-INF/lib/tinySQL.jar</param-value>
> </init-param>
> </servlet>
>
> What i must do?
>
> With best wishes,
> Edson Alves Pereira
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org