You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Schwarz <sc...@power-netz.de> on 2005/07/20 16:49:43 UTC
Tomcat 5.5.9 does loads classes from the wrong webapp
Hi,
short: the classloader does load classes from a complete seperate
webapp, because
classes are the same and differ only by code versions.
with this setup in server.conf :
<Host name="servername.de">
<Alias name="bugzilla.servername.de">
<DefaultContext docBase="webapps/ticket" path="/"/>
</Alias>
<Alias name="www.servername.de"/>
<Context path="/"
docBase="webapps/webanwendung"
reloadable="false"
trusted="false" >
</Context>
<Context path="/beta"
docBase="webapps/webanwendungbeta"
reloadable="true"
trusted="false" >
</Context>
<Context path="/test"
docBase="webapps/test"
reloadable="true"
trusted="false" >
</Context>
...
</host>
and this dirtree:
/tomcat/webapps/webanwendung/WEB-INF/classes/package1
/tomcat/webapps/webanwendung/WEB-INF/classes/package2
/tomcat/webapps/webanwendung/WEB-INF/classes/package3
/tomcat/webapps/webanwendungbeta/WEB-INF/classes/package1
/tomcat/webapps/webanwendungbeta/WEB-INF/classes/package2
/tomcat/webapps/webanwendungbeta/WEB-INF/classes/package3
...
There are NO SYMLINKS in use, all "classes"-directories are
seperate.
With the same classnames and interfaces in each same named package
i.e.
webapps/webanwendungbeta/WEB-INF/classes/package1/Database.class
is loaded in webapps/webanwendung and vice versa.
It does not happen with every class. Best thing is, if i recompile
the class x in webapps/webanwendungenbeta/WEB-INF/classes ,
webanwendungenbeta does reload !! BUT does still use the other class
incarnation!
I use the lastest TC 5.5.9 . I had this problem with 5.0.28 too,
which was the reason to update to 5.5.9 .
Any suggestings?
m.Schwarz
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org