I
icedogchi
I have been all over the place looking for a solution to my problem and
have so far come up empty handed.
I am running Apache Tomcat/5.0.28 on Windows and I have deployed an
application to it.
The application needs to read a system property to load it's
configuration files.
So far, I have done the following in the
%catalina_home%/bin/catalina.bat file:
1) set CATALINA_OPTS=-Denvironment=preview
2) set CATALINA_OPTS=-D"environment=preview"
3) set CATALINA_OPTS=-D'environment=preview'
None of these appear to make it to my application.
I have also done:
1) set JAVA_OPTS=-Denvironment=preview
2) set JAVA_OPTS=-D"environment=preview"
3) set JAVA_OPTS=-D'environment=preview'
and again, my application never finds that the system property has been
set.
I have tried starting tomcat as a service, and I have started Tomcat
from the command line. Even when I check the manager at
(http://<server>/manager/serverinfo) no system properties are
displayed.
This can't be this difficult to do, but I sure can't figure it out.
Would someone please post the super secret method to set a System
property in Tomcat so that my web application can see it?
Thanks!
have so far come up empty handed.
I am running Apache Tomcat/5.0.28 on Windows and I have deployed an
application to it.
The application needs to read a system property to load it's
configuration files.
So far, I have done the following in the
%catalina_home%/bin/catalina.bat file:
1) set CATALINA_OPTS=-Denvironment=preview
2) set CATALINA_OPTS=-D"environment=preview"
3) set CATALINA_OPTS=-D'environment=preview'
None of these appear to make it to my application.
I have also done:
1) set JAVA_OPTS=-Denvironment=preview
2) set JAVA_OPTS=-D"environment=preview"
3) set JAVA_OPTS=-D'environment=preview'
and again, my application never finds that the system property has been
set.
I have tried starting tomcat as a service, and I have started Tomcat
from the command line. Even when I check the manager at
(http://<server>/manager/serverinfo) no system properties are
displayed.
This can't be this difficult to do, but I sure can't figure it out.
Would someone please post the super secret method to set a System
property in Tomcat so that my web application can see it?
Thanks!