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.
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
context-param
param-nameclasspath/param-name
param-value/my/webapp/conf/param-value
/context-param
but this seems
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
context-param
param-nameclasspath/param-name
param-value/my/webapp/conf/param-value
/context-param
but
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
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
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:
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
-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