tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From _Seb_ <scesb...@gmail.com>
Subject Webapps outside webapps directory cannot access shared/classes
Date Fri, 22 Sep 2006 08:39:25 GMT

Hi,

I have several webapps that need to access a shared properties configuration
file. To do so I put this file in shared/classes. I works well, I don't know
if this the right way to do, if you have better ways to do so you can tell
them to me.

Now I have to conditionnaly launch my webapps at tomcat startup. To do so, I
put my webapps outside of webapps dir and launch them with a context file in
conf/Catalina/localhost. Then if I don't want to launch a webapp I rename
the myContext.xml into myContext.bak. For this too I don't know if there is
a better way, so I there is one ...

My current problem is that when I launch my webapps like this they cannot
access shared/classes. I retrieve my configuration file with
getClassLoader().getResourceAsStream. When my webapps was in the webapps dir
this worked but now that I launch them with a context file it does not. If I
put my files in common/classes it works but before moving them I would like
to know if this behavior is normal or if this is a bug

Thanx

Seb
-- 
View this message in context: http://www.nabble.com/Webapps-outside-webapps-directory-cannot-access-shared-classes-tf2316609.html#a6443284
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message