You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Winters, Jason" <jw...@Inst.StrykerCorp.Com> on 2001/03/08 15:50:23 UTC

Classloader problems - multiple versions of JAR files

I'm having a problem with multiple versions of JAR files under different
applications in Tomcat 4.0b1.  We have two web applications running under
Tomcat.  Each application has a copy of a JAR file that was written
in-house.  Our webapps directory looks something like this:

webapps/alpha/WEB-INF/lib/myframework.jar
This version of the JAR file is at version 1.2.

webapps/beta/WEB-INF/lib/myframework.jar
This version of the JAR file is at version 1.3 and includes classes that did
not exist in version 1.2.  

When the beta application references a class from myframework.jar, it seems
to pull from version 1.2 of the JAR file.  If we try to reference a class
that didn't exist in version 1.2 we get NoClassDefFound exceptions.  If we
update the alpha application to use version 1.3 of myframework.jar
everything seems to work fine.  The myframework.jar file exists only in
webapps/xxxx/WEB-INF/lib directories.  It does not exist in the system
classpath, $CATALINA_HOME/lib, or $CATALINA_HOME/server/lib.

Does anyone have any idea why this happens and how to fix it?

Jason

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


Qn about JBuilder/Tomcat implementation

Posted by Arafat Mohamed <ab...@yahoo.com>.
Ladies and Gentlemen,

I have a qn about JBuilder and Tomcat. My company recently got JBuilder4
Enterprise. Although it's really nice, I prefer using emacs/JDE.

One really nice feature it has though is it's integration of Tomcat.
Basically, it's able to start a new instance of tomcat on the first
available port it finds. That speeds up testing (I don't have to stop
tomcat, restart, and then run my app to test). So I could have 3 different
instances of tomcat running, each on a different port.

I've tried to figure out how JBuilder does this, and I'll admit I'm not
smart enough to figure it out. I'm guessing I have to edit server.xml. But,
how do I run an application that isn't in /webapps and still have tomcat
find it?

So, could someone please point me in the right direction to duplicate this
without having to use JBuilder?

Thank you,
Arafat Mohamed


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