We ran into an exact same problem. Our workarround hack classpath.bat and
classpath.sh works perfectly.
I also considered running down the ClassLoader route. That also works but
it felt more wrong.
I was just going to ask what the accepted way of doing this was but I think
I've got my answer.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Tom,
On 6/17/2009 7:43 AM, Tom Brown wrote:
> it is only configuration files - no jar changes.
If your code uses getResourceAsStream(), then the classpath will be
checked. The webapp's classpath will essentially be
WEB-INF/classes:WEB-INF/lib:CATALIN
Tom Brown wrote:
it is only configuration files - no jar changes. I am trying to get
these stripped from the war but thats a difficult process, i know i
can do it in about 5 seconds but its a 'process' thing and then the
war is 'different'
Is what i am asking not possible?
One can nest Loader
Is the difference only between configuration files, or between jar
files also?
I suggest to keep such configuration file outside of webapp - e.g. in
${tomcat}/lib/classes. So you'll have dev tomcat setup, prod tomcat
setup and one war file.
it is only configuration files - no jar changes.
Tom Brown wrote:
Why not use WEB-INF/lib directory?
quite a long story BUT that locations contains _default_ setting ie
those for dev and when it goes into prod i need to override those with
settings from the config directory - so i need to be able to
manipulate it on the fly so to speak whi
Why not use WEB-INF/lib directory?
quite a long story BUT that locations contains _default_ setting ie
those for dev and when it goes into prod i need to override those with
settings from the config directory - so i need to be able to manipulate
it on the fly so to speak while still being a
Tom Brown wrote:
On tomcat 6.0.18 i need to set the classpath of a webapp, its the only
webapp running inside this tomcat.
i believe i need to do something like the following in the web.xml
classpath
/my/webapp/conf
but this seems ignored so can anyone point me to the syntax of what
this i
Hi
On tomcat 6.0.18 i need to set the classpath of a webapp, its the only
webapp running inside this tomcat.
i believe i need to do something like the following in the web.xml
classpath
/my/webapp/conf
but this seems ignored so can anyone point me to the syntax of what this
is and where t