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"
t;To: [EMAIL PROTECTED]
>Subject: Deploy a Web 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.MySe
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
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, lin
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
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
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
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 c
--- 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 CLAS
"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
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
"java.naming.facto
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 h
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 communicat
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
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,
Chri
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
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
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
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
sol
PROTECTED]>
cc
Please respond to Subject
"Tomcat Users Re: Set System
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 re
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 i
c
org>
Subject
Re: Set System properties at TC
19.06.2003
Re: Set System properties at TC
19.06.2003 09:45 startup
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 prop
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
i
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
> 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/ca
nformatics
>-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
S
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 qu
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 a
Where are the system properties used by tomcat documented somewhere? Are there any
others besides catalina.home and catalina.base?
Thanks,
Ralph
What system properties are you referring to?
prabhakar
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Is it possible to change system properties from within' a JSP page.
--
To
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]>
s where 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 Hotma
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 easi
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
>
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.
> >
> > 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
> > > myproperty
> > > 42
> > >
> > >
> > > Anyone think this is a good idea, or am I talking rubbish?
> >
> > It's a bad idea. Keep your web-apps encapsulated.
>
> Why would such a move, if it were possible, break encapsulation?
>
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:
> >
> >
> > myproperty
> > 42
> >
> >
> > Anyone think this is a good idea, or am I talking rubbish?
>
> It
particular web app which I agree means your web apps are less likely to have
name clashes with parameters they set, as is the case with System
properties, hence more encapsulated.
Stu
-Original Message-
From: Jim Rudnicki [mailto:[EMAIL PROTECTED]]
Sent: 20 November 2000 03:11
To: [EMAIL PROTECTED
> 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:
>
>
> myproperty
> 42
>
>
> Anyone think this is a good idea, or am I talking rubbish?
It's a bad idea. Keep your web-ap
(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 plac
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
d I had
> thought that is should be possible to encapsulate all the details 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,
he details 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
/SOAP type thing,
then you initialise that task in any way you see fit - the servlet engine
just talks to it when it wants to. If you're doing this, you may well want to
look seriously at EJB.
> I could not find anything about TOMCAT_OPTS on the web site, persumably
> this is an e
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 pro
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
>
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
-Dproperty=value". However I am not sure how to
51 matches
Mail list logo