Could someone give me some help on this?
I have a service which is started up with the system
properties as following:
java -DLogFileDir=c:\test\logs -DDataSource=MyDataSource com.bambi.MyService
Now I need to convert the above service into a web service by using soap
under Tomcat. My question
service with system properties
Could someone give me some help on this?
I have a service which is started up with the system
properties as following:
java -DLogFileDir=c:\test\logs -DDataSource=MyDataSource
com.bambi.MyService
Now I need to convert the above service into a web service by using
Thanks.
-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 9:15 AM
To: Tomcat Users List
Subject: RE: Deploy a Web service with system properties
Hi,
You can at any point in any of your classes use
System.setProperty(LogFileDir, c:\test\logs
Hi all,
Sorry if this is a really dumb question, but how/where do I
set system properties when using Tomcat 4.1.24? I've searched
around but found nothing obvious.
Is it in an xml file rather than a .properties file?
Is it in the Java JDK?
Best regards
Chris
If by system properties you mean JVM (Java Virtual Machine) settings, then
you can do this by setting
the CATALINA_OPTS variable in the catalina.sh (unix, linux) or catalina.bat
(win32) file in the /bin directory of your
Tomcat installation.
-Original Message-
From: Chris Ward [mailto
Thanks. That's just what I needed. I thought I'd done it at some
point in the past!
Best regards
Chris
If by system properties you mean JVM (Java Virtual Machine)
settings, then you can do this by setting the CATALINA_OPTS
variable in the catalina.sh (unix, linux) or catalina.bat
(win32
srinivas reddy [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I am using tomcat 4.1.24. I have a couple of
questions.
1. Online documentation about class loader says,
System class loader operates on CLASSPATH. I have
included j2ee.jar in my CLASSPATH, but tomcat is not
--- Bill Barker [EMAIL PROTECTED] wrote:
srinivas reddy [EMAIL PROTECTED] wrote
in message
news:[EMAIL PROTECTED]
Hi,
I am using tomcat 4.1.24. I have a couple of
questions.
1. Online documentation about class loader says,
System class loader operates on CLASSPATH. I have
Howdy,
I found this documentation at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
.
Did I misunderstand it or it says what I am thinking?
You misunderstood it.
Why is using j2ee.jar with tomcat is not recommended?
Because it contains duplicate older versions of
At 08:48 AM 8/21/2003, you wrote:
1. Online documentation about class loader says,
System class loader operates on CLASSPATH. I have
included j2ee.jar in my CLASSPATH, but tomcat is
not
picking it up. Why is it so?
Wherever you saw these docs, they are wrong. Tomcat
ignores the
Hi,
I am using tomcat 4.1.24. I have a couple of
questions.
1. Online documentation about class loader says,
System class loader operates on CLASSPATH. I have
included j2ee.jar in my CLASSPATH, but tomcat is not
picking it up. Why is it so?
2. When I use tomcat, system property
Howdy,
But what do I have to do if I would like to set more than one system
property?
export JAVA_OPTS='-DpropName1=propValue1 -DpropName2=propValue2' ???
Yes, as many as you want just like that.
Yoav Shapira
This e-mail, including any attachments, is a confidential business
Hello
I'd like to know how I can set system properties when starting Tomcat 4.1.
I mean those properties that I can get from within a JSP file as:
System.getProperty(CONFIG_HOME)
Thank you in advance for any hint.
Christian
Tim Funk wrote:
http://jakarta.apache.org/tomcat/faq/misc.html#properties
-Tim
Thank you Tim for pointing me to the right place.
But what do I have to do if I would like to set more than one system
property?
export JAVA_OPTS='-DpropName1=propValue1 -DpropName2=propValue2' ???
Regards,
http://jakarta.apache.org/tomcat/faq/misc.html#properties
-Tim
Christian Hauser wrote:
Hello
I'd like to know how I can set system properties when starting Tomcat 4.1.
I mean those properties that I can get from within a JSP file as:
System.getProperty(CONFIG_HOME)
Thank you in advance for any
Hi all,
The system properties seems to be global in the tomcat JVM which means that
a webapps can get the property of an other. This is annoying when you use
two
different version of the same web app where properties have different value.
Is it a normal behavior ?
Thanks.
Olivier
Yes. System properties are set for the JVM not each individual web
application.
http://java.sun.com/docs/books/tutorial/essential/system/properties.html
If you require properties specific to your web application, you should use
Servlet initialization parameters or ServletContext Initialization
Thats why its a System property. Its global to the JVM. If you want
individual configuration options for your webapp then either:
- Place them in web.xml as init parameters
- Use JNDI and set the config items in server.xml (or appropriate)
-Tim
Olivier Jouny wrote:
Hi all,
The system
Hi list,
I have several web applications running. All of them have some properties
equal. They are also important in order to the web applications working
appropriatly. Is there a way at TC startup time to set these properties
(just Strings) and in case the properties are not found to let TC
Assuming that you are using TC 4.x (TC 3.3 has a different way of doing
this), then you create a file called setenv.(bat|sh) (of course, bat for
Windows, sh for *nix). In this file you set the environment variable
CATALINA_OPTS to define the system properties that you need.
[EMAIL PROTECTED
System properties at TC
19.06.2003 09:45 startup
Please respond
Subject
Re: Set System properties at TC
19.06.2003 09:45 startup
This looks pretty recent...is it?
John
On Thu, 19 Jun 2003 07:05:04 -0400, Tim Funk [EMAIL PROTECTED] wrote:
http://jakarta.apache.org/tomcat/faq/misc.html#properties
-Tim
[EMAIL PROTECTED] wrote:
Yes I am running Tomcat 4.1.18.
Where does this file need to be located that TC is reading it
Yup. I recently committed the FAQ to jakarta-tomcat-site. For the short term,
I will probably try to make a mass update once a week or every other week
based on questions, gaps, (and my own knowledge of the solution). I already
have a list of updates I want to make. (I save a lot of potential
]
cc
Please respond to Subject
Tomcat Users Re: Set System properties at TC
Cool!
John
On Thu, 19 Jun 2003 09:23:47 -0400, Tim Funk [EMAIL PROTECTED] wrote:
Yup. I recently committed the FAQ to jakarta-tomcat-site. For the short
term, I will probably try to make a mass update once a week or every
other week based on questions, gaps, (and my own knowledge of the
Hi,
I am using Java Web Services Developer Pack to expose methods using SOAP.
The problem is I want to read a property file location in my program. If the
program is of application type, this can be implemented by setting system
property using -D searcher.home = command line argument.
My
-Original Message-
From: Sreedhar, Dantam [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 7:53 AM
To: Tomcat Users List
Subject: Configuring System properties
Hi,
I am using Java Web Services Developer Pack to expose methods using
SOAP.
The problem is I want to read a property file
From: Shapira, Yoav [EMAIL PROTECTED]
Sent: Friday, February 07, 2003 6:02 AM
Subject: RE: Configuring System properties
Howdy,
If you want to go the same route, simply add -Dsearcher.home=... to the
JAVA_OPTS variable in $CATALINA_HOME/bin/catalina.sh. It will be
available via
On Fri, 7 Feb 2003, Will Hartung wrote:
Do all of the webapps see the same System Properties?
Yes, if they're running in the same JVM.
I can't imagine why
not (assuming they share a JVM), but with all of the isolation that's
enforced between the webapps, it gives one pause to consider
Where are the system properties used by tomcat documented somewhere? Are there any
others besides catalina.home and catalina.base?
Thanks,
Ralph
CATALINA_HOME/bin/catalina.bat or catalina.sh has the full list.
John
-Original Message-
From: Ralph Goers [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 2:23 PM
To: Tomcat Users List
Subject: tomcat system properties
Where are the system properties used
Hi all,
Is it possible to change system properties from within' a JSP page.
Regards
Richard Wooding
--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]
What system properties are you referring to?
prabhakar
Is it possible to change system properties from within' a JSP page.
--
To unsubscribe: mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]
to define these enviornment variables
in tomcat ? I especially like the environment variables(or
system properties) can be defined to one particular application.
Thanks,
Leland
_
Send and receive Hotmail on your
Craig,
I was wondering if there is an optimal way of doing the following in TomCat?
If you have the time to briefly describe such
Thanks
Miles
(I prefer to store global application
objects in
the servlet context, so that they are easily visible to all servlets
and
JSP
pages in
Miles Daffin wrote:
Craig,
I was wondering if there is an optimal way of doing the following in TomCat?
If you have the time to briefly describe such
Thanks
Miles
(I prefer to store global application
objects in
the servlet context, so that they are easily visible to all
Hi guys,
From the looks of things, it is just the way it is, although I was
hoping
the there would be some way to put stuff in the web.xml file, maybe in
the
servlet tag like:
system-property
namemyproperty/name
value42/value
/system-property
Anyone think this is a good idea,
Miles Daffin wrote:
As long as this property value is never broadcast
i.e. System.setProperty("myProperty", "42");
System properties, in the sense that we are talking about the
java.lang.System
class, are global to the entire JVM. Therefore, even if
From the looks of things, it is just the way it is, although I was hoping
the there would be some way to put stuff in the web.xml file, maybe in the
servlet tag like:
system-property
namemyproperty/name
value42/value
/system-property
Anyone think this is a good idea, or am I talking
On Friday 17 November 2000 14:27, you wrote:
Hi,
I was wondering if it is possible to pass properties to Tomcat. I have
some classes which read various system properties in their static
initializers, and this works fine when using these classes on the command
line using "java -Dpro
, it is nicer to say "java
-Ddb.properties=/home/stuart/db.properties". As the classes are not
servlets, servletContext.getResource() is not really an option.
I could not find anything about TOMCAT_OPTS on the web site, persumably this
is an environment variable, what format do you put system
of the
connection pooling in one place, including the actions of reading the system
properties file. Yeah, all the stuff is in process, no separate database
access server.
From the looks of things, it is just the way it is, although I was hoping
the there would be some way to put stuff
John
Thanks for that, will look into further and let you know.
Stuart
-Original Message-
From: John Ellis [mailto:[EMAIL PROTECTED]]
Sent: 17 November 2000 17:44
To: [EMAIL PROTECTED]
Subject: Re: System properties
According to the dtd:
http://java.sun.com/j2ee/dtds/web-app_2.2.dtd
is entry is (the dtd description did not specifically
say how to get these values back -- I am assuming System.getProperties())? Does
anyone know if more current version of tomcat support it? Will future versions?
You would not really want to use system properties for this in the first place.
What wo
45 matches
Mail list logo