Setting environment variables in server.xml.

2005-10-04 Thread David Kerber
If I'm reading it correctly, according to the docs, I should be able to set an environment variable in server.xml, like the built-in example: Environment name=simpleValue type=java.lang.Integer value=30/ Unfortunately, I can't get this to work; I can't read in simpleValue, or the ones I

Re: Setting environment variables in server.xml.

2005-10-04 Thread andy gordon
David, Just in case you haven't done this yet, have you checked to see if the environment variable shows up as a catalina:type=Environment MBean? if so you should be able to access it. Hope this helps. - andy gordon David Kerber [EMAIL PROTECTED] wrote: If I'm reading it correctly,

Re: Setting environment variables in server.xml.

2005-10-04 Thread David Kerber
Nope, never heard of that one. I'll see if I can figure out how to get at that type. andy gordon wrote: David, Just in case you haven't done this yet, have you checked to see if the environment variable shows up as a catalina:type=Environment MBean? if so you should be able to access it.

Re: Setting environment variables in server.xml.

2005-10-04 Thread andy gordon
if you are using 5.5x you can look at the mbean with jmxproxy which is part of the manager app. David Kerber [EMAIL PROTECTED] wrote:Nope, never heard of that one. I'll see if I can figure out how to get at that type. andy gordon wrote: David, Just in case you haven't done this yet, have

Re: CGI : environment variables

2005-01-11 Thread Pierrick Brihaye
Hi, Mark Thomas a crit : Everything is OK when passShellEnvironment is used with the JDK 1.4/Windows 98 unfriendly version 5.5.4. Great ! 5.5.4 runs quite happily for me on JDK 1.4 (heck I do all of my 5.5.x development work on a 1.4 JDK). Can't say the same for Windows 98 - I use XP. 5.5.4

CGI : environment variables

2005-01-10 Thread Pierrick Brihaye
Hi, Using Tomcat 5.0.28 standalone on Windows 98. I'm trying to use CGI within Tomcat. First tests are very encouraging but... I'm afraid my environment variables are unknown to the .exe file when it is executed. Further tests with showenv.exe (http://www.kessels.com/Downloads/showenv/) seem

Re: CGI : environment variables

2005-01-10 Thread Pierrick Brihaye
Aswering to myself... Pierrick Brihaye a crit : I can't find any valuable help in the list archives. The passShellEnvironment init-parameter, which has a very promising name ;-), seems to be applicable to 4.1 releases only (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/cgi-howto.html).

Re: CGI : environment variables

2005-01-10 Thread Mark Thomas
Pierrick Brihaye wrote: Aswering to myself... Pierrick Brihaye a crit : I can't find any valuable help in the list archives. The passShellEnvironment init-parameter, which has a very promising name ;-), seems to be applicable to 4.1 releases only

Environment variables and Tomcat 5

2004-10-15 Thread Robert Harper
I have an application that calls some JNI native code that relies on certain environment variables being set. When Tomcat runs as a service it does not seem to get the variables. The The Apache Jakarta Tomcat 5.5 Servlet/JSP Container document states that these variables may be set

Re: Windows Environment Variables

2004-10-04 Thread Dov Rosenberg
The web.xml file is located in the /WEB-INF. Inside the web-app element you can add multiple context-param elements. Each context parameter has a name/value element nested inside. Like : web-app ... context-param param-nameDomainName/param-name param-valuedemo/param-value

Windows Environment Variables

2004-10-03 Thread Stuart Weston
Under the one Install of Apache Tomcat upon a Windows 2000 Server we would like to run multiple applications under the one tomcat service. But each application requires the same environment variable but to point at a different location. We have a REPORT60_PATH env variable but each application

Re: Windows Environment Variables

2004-10-03 Thread Dov Rosenberg
Why not add them as context variables in the web.xml? -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com On 10/3/04 9:48 PM, Stuart Weston [EMAIL PROTECTED] wrote: Under the one Install of Apache Tomcat upon a Windows 2000 Server we would like to run multiple applications

RE: Windows Environment Variables

2004-10-03 Thread Stuart Weston
. To: Tomcat Users List Subject: Re: Windows Environment Variables Why not add them as context variables in the web.xml? -- Dov Rosenberg Conviveon Corporation http://www.conviveon.com On 10/3/04 9:48 PM, Stuart Weston [EMAIL PROTECTED] wrote: Under the one Install of Apache Tomcat upon

Re: Help ---care ..........Environment Variables

2004-09-27 Thread Robert Bateman
ColdFusion MX installed on Netware 6.5 running Apache with Tomcat4, however it is not functioning. I need to know how to set environment variables to get ColdFusion to run in this environment. I tried to follow the following instructions from macromedia: HYPERLINK http://www.macromedia.com

How to get mod_jk2 to pass (environment?) variables

2004-08-18 Thread ohaya
of SSL-related information. What I'm thinking is that Apache is passing the variables, but probably mod_jk2 is not passing them to Tomcat. During my testing, I thought that I'd run across some information about setting environment variables or something similar in one of the configuration files

Howto? Access Global Environment Variables using JNDI

2004-03-18 Thread Geir Ove Skjærvik
Hello, I have tried to access Tomcat 5.0 (xx) Global Environment variables. I have the Integer simpleValue defined in the Tomcat Administrators panel under Environment Entries Here's my code: Context initContext = new InitialContext(); Context envContext = (Context)initContext.lookup(java:comp

how to set java-environment variables in catalina.sh

2004-02-24 Thread Peter Forster
hi, I want to start tomcat so it knows environment variables. in regular a java-programm, i do that with the -D option (java -DMY_ENV=$MY_ENV). i know i have to do this in the catalina.sh script. i just can't find the correct syntax. can anyone help me or point to a tutorial? thanks pete

Re: how to set java-environment variables in catalina.sh

2004-02-24 Thread Nathan Maves
I think either of these will work. I use the second one and it works fine for me #JAVA_OPTS=-Djava.awt.headless=true CATALINA_OPTS=-Djava.awt.headless=true Nathan Maves Sun Microsystems On Feb 24, 2004, at 8:28 AM, Peter Forster wrote: hi, I want to start tomcat so it knows environment

Re: how to set java-environment variables in catalina.sh

2004-02-24 Thread sushma
CATALINA_OPTS=-Djava.awt.headless=true Nathan Maves Sun Microsystems On Feb 24, 2004, at 8:28 AM, Peter Forster wrote: hi, I want to start tomcat so it knows environment variables. in regular a java-programm, i do that with the -D option (java -DMY_ENV=$MY_ENV). i know i have

environment variables

2004-02-09 Thread Marco Sottilaro
to set/unset some environment variables in the API methods using the C setenv/unsetenv functions. The values of these variables have to be different for each service-request process. There is a problem when I have several service-request processes running at the same time. These processes share

problems reading global environment variables.

2003-07-23 Thread David Chamberlin
I'm having problems reading global environment variables from a servlet running in a tomcat container. I'm creating a datasource and several environment variables through the tomcat admin screens and then trying to access them from my web application with no success. Any information

RE: problems reading global environment variables.

2003-07-23 Thread Shapira, Yoav
Howdy, try { m_repository = (String) m_envCtx.lookup(opensite.repository); Out of curiosity, do you get the same error if you lookup(/opensite.repository) ? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and

Re: problems reading global environment variables.

2003-07-23 Thread David Chamberlin
Nope, doesn't seem to have any effect, nor does: new InitialContext().lookup(java:comp/env/opensite.repository); - david. Shapira, Yoav wrote: Howdy, try { m_repository = (String) m_envCtx.lookup(opensite.repository); Out of curiosity, do you get

Environment variables, are they really needed??

2003-07-17 Thread Juan Nin
Maybe dumb question... All the tutorials, etc. I've seen talk about defining CATALINA_HOME, and JAVA_HOME as environment variables (and sometimes also CLASSPATH) I didn't define anything as environment variables, mine are just defined in workers.properties and tomcat4.conf In workers.properties

RE: Environment variables, are they really needed??

2003-07-17 Thread Shapira, Yoav
Howdy, This is a basic unix question, not specific to tomcat. Without going into technical details, I would say environment variables are one way to define these properties. There are other ways, e.g. in your configuration files. Yoav Shapira Millennium ChemInformatics -Original Message

Re: Environment variables, are they really needed??

2003-07-17 Thread Juan Nin
From: Shapira, Yoav [EMAIL PROTECTED] This is a basic unix question, not specific to tomcat. Without going into technical details, I would say environment variables are one way to define these properties. There are other ways, e.g. in your configuration files. yes, I know that, but I just

RE: Environment variables, are they really needed??

2003-07-17 Thread Shapira, Yoav
Howdy, yes, I know that, but I just wondered why everyone defines them as environment variables.. I see it more tidy to define them in configuration files... As you say, it's a personal preference. If you have many things using java, with many configuration files, it probably makes more sense

Re: Environment variables, are they really needed??

2003-07-17 Thread John Turner
comes in handy. John On Thu, 17 Jul 2003 15:03:09 -0300, Juan Nin [EMAIL PROTECTED] wrote: From: Shapira, Yoav [EMAIL PROTECTED] This is a basic unix question, not specific to tomcat. Without going into technical details, I would say environment variables are one way to define these properties

Re: Environment variables, are they really needed??

2003-07-17 Thread Ben Souther
. On Thursday 17 July 2003 01:58 pm, Shapira, Yoav wrote: Howdy, This is a basic unix question, not specific to tomcat. Without going into technical details, I would say environment variables are one way to define these properties. There are other ways, e.g. in your configuration files. Yoav

Re: Environment variables, are they really needed??

2003-07-17 Thread Justin Ruthenbeck
would say environment variables are one way to define these properties. There are other ways, e.g. in your configuration files. yes, I know that, but I just wondered why everyone defines them as environment variables.. I see it more tidy to define them in configuration files... just my opinion

Re: Environment variables

2003-06-16 Thread John Turner
It does not use catalina.bat. If you look in catalina.bat, you will see the same command line used in your menu shortcut. Change your menu target to include the -Dmy.var.name=my.var.param. John On Mon, 16 Jun 2003 11:45:23 +1000, Chisholm, Paul [EMAIL PROTECTED] wrote: I am using 4.1.24 in

Environment variables

2003-06-15 Thread Chisholm, Paul
I am using 4.1.24 in Win 2000. I pass an environment variable to Tomcat by adding set JAVA_OPTS=-Dmy.variable.name=... to catalina.bat and all is fine when I start Tomcat from a script that calls bin/startup.bat. However, if I start Tomcat from the menu item that is automatically created

Unsure how to set environment variables for win xp

2003-01-10 Thread Tammer Salem
). I can't get the servlet file to compile. I think my CLASSPATH and Path environment variables are messed up, because I keep on getting the following exceptions: = HelloWorld.java:2: package javax.servlet does not exist import javax.servlet.*; ^ HelloWorld.java:3

RE: Unsure how to set environment variables for win xp

2003-01-10 Thread Turner, John
To: Tomcat Users List Subject: Unsure how to set environment variables for win xp Hi, I'm having problems compiling my servlets. I know this is probably out of the domain of tomcat setup, but I decided to ask anyway. I have a servlet called (test.java) in a directory (D:\Program Files

Re: Unsure how to set environment variables for win xp

2003-01-10 Thread jmong
-classpath %CLASSPATH% %1 2. Then you run the batch file like compile.bat HelloWorld.java To actually set environment vars in XP, do the following 1. Right click on my computer 2. Select properties 3. Click on the Advanced tab 4. Click on Environment Variables 5. Define the necessary variables

Accessing Apache environment variables (or notes or IPC space) from within Tomcat

2002-12-02 Thread Aidan Fitzpatrick
I'm running a small authentication system that works within Apache and stores user information in Apache environment variables. I want to be able to pull out this data from within a Servlet. Pretty much exactly the same as this (unanswered?) question that was asked on the Tomcat development

Apache environment variables

2002-11-20 Thread Daniel Fisher
Hello, I'm using Apache1.3.26 and Tomcat/4.1.12-LE-jdk14 connected with mod_webapp. I am letting Apache handle SSL connections and I need to use some the the SSL environment variables in a JSP file. I added the following line to my httpd.conf file: SSLOptions +StdEnvVars +ExportCertData The apache

Environment variables in server.xml

2002-10-15 Thread Rodrigo Ruiz
Does Tomcat 4 still support environment variables into its server.xml file? We would like our tomcat instances to automatically choose their HTTP port from an environment variable. It worked in Tomcat 3.3, doing something like: TOMCAT_OPTS=-Dhttp.port=$HTTP_PORT and using ${http.port} in our

[OT] Linux environment variables

2002-09-09 Thread Giorgio Ponza
Hi guys. Sorry, i'm not expert in linux I need that some environment variables (like JAVA_HOME) are visible to a specified user Until today i worked with root, so i placed them in /etc/profile. I'd like now them are visible only for the specified user (also the installation is done by the user

RE: [OT] Linux environment variables

2002-09-09 Thread Turner, John
. John -Original Message- From: Giorgio Ponza [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 6:51 AM To: Tomcat Users List Subject: [OT] Linux environment variables Hi guys. Sorry, i'm not expert in linux I need that some environment variables (like JAVA_HOME

Re: [OT] Linux environment variables

2002-09-09 Thread Ben Souther
.bash_profile in each user's home directory will do it for you. - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, September 09, 2002 8:30 AM Subject: RE: [OT] Linux environment variables Depends on which shell you

Re: [OT] Linux environment variables

2002-09-09 Thread Ignacio Cárdenas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi! Hi guys. Sorry, i'm not expert in linux I need that some environment variables (like JAVA_HOME) are visible to a specified user Until today i worked with root, so i placed them in /etc/profile. I'd like now them are visible only

passing environment variables to Tomcat

2002-07-29 Thread Chen, Dean (Zhun)
Hi, I'm using Tomcat 4.0.3, we need to pass an environment variable to Tomcat. In essence, we are trying to define the environment variable, i.e.: DEV, QA, PROD, etc. Currently, we do this by modifying the catalina.sh and add this to the runtime command -Dweb.env=$WEB_ENV \ However, can

RE: passing environment variables to Tomcat

2002-07-29 Thread Shapira, Yoav
Millennium ChemInformatics -Original Message- From: Chen, Dean (Zhun) [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 10:29 AM To: 'Tomcat Users List' Subject: passing environment variables to Tomcat Hi, I'm using Tomcat 4.0.3, we need to pass an environment variable to Tomcat

RE: passing environment variables to Tomcat

2002-07-29 Thread Greg Waehner
]] Sent: Monday, July 29, 2002 10:29 AM To: 'Tomcat Users List' Subject: passing environment variables to Tomcat Hi, I'm using Tomcat 4.0.3, we need to pass an environment variable to Tomcat. In essence, we are trying to define the environment variable, i.e.: DEV, QA, PROD, etc. Currently, we do

SSL environment variables from apache mod_ssl

2002-05-22 Thread G . Kersten
I desperately need the SSL environment variables like HTTPS or HTTPS_KEYSIZE, which should be delivered from mod_ssl to the JSP engine, after Apache has established a HTTPS connection. Especially I have to check the actual key size. In tomcat-ssl-howto.html it is described how to adjust

RE: Passing environment variables from apache request

2002-04-09 Thread Joakim Ahlén
that states the usage of the directive with its arguments... //Jocke -Original Message- From: Nikolaus Rath [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 6:26 PM To: [EMAIL PROTECTED] Subject: Passing environment variables from apache request Hello! In my servlet i

Re: Passing environment variables from apache request

2002-04-09 Thread Nikolaus Rath
* Joakim Ahlén [EMAIL PROTECTED] wrote: Hello! In my servlet i need access to some environment variables defined by an apache module for the request. How can i access them? I am using tomcat 3.3 and mod_jk. After looking at the mod_jk source, i found the JkEnvVar directive. It seems

how to Set the j2ee sdk Environment Variables

2002-03-12 Thread sdy
hi All I'm new to j2ee. I install j2ee sdk on my lnux 7.2 server . According to sun's document J2EE(TM) SDK Installation,I set local environment successfully.But when I set the GLOBEL ENVIRONMENT,I only can find the profile in /etc,but there isn't any introduction to how to edit

AW: HOW-TO: Persistent Environment Variables

2002-03-11 Thread Ralph Einfeldt
-Ursprüngliche Nachricht- Von: C Cayetano [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 11. März 2002 09:09 An: Tomcat Users List Betreff: HOW-TO: Persistent Environment Variables All, How/Where do I set the environment variables so that they remain, even logged off. I

SV: HOW-TO: Persistent Environment Variables

2002-03-11 Thread Simon Elfving
2002 09:18 Till: Tomcat Users List Ämne: AW: HOW-TO: Persistent Environment Variables -Ursprüngliche Nachricht- Von: C Cayetano [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 11. März 2002 09:09 An: Tomcat Users List Betreff: HOW-TO: Persistent Environment Variables All, How

AW: HOW-TO: Persistent Environment Variables

2002-03-11 Thread Ralph Einfeldt
:09 An: Tomcat Users List Betreff: HOW-TO: Persistent Environment Variables snip/ How/Where do I set the environment variables so that they remain, even logged off. I currently login as 'root', set the variables using: snip/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional

HOW-TO: Persistent Environment Variables

2002-03-10 Thread C Cayetano
All, How/Where do I set the environment variables so that they remain, even logged off. I currently login as 'root', set the variables using: eg. TOMCAT_HOME=/usr/local/tomcat403 export TOMCAT_HOME OS: Solaris 8 I then log off and log back in and the variables aren't there. Using 'env

Sending Environment Variables from Apache to Tomcat

2002-02-21 Thread Laurie Young
Hi How do I send my Apache Environment Variables from my apache server, to the tomcat servlets? I had a look on the web and found a page that seemd to imply I had to rewrite the Jserv module and part of tomcat, but I think it was refering to quite an old version of apache/tomcat I am running

Re: Getting apache environment variables into Tomcat

2001-10-18 Thread Nicholas Blachford
Dmitri Colebatch wrote: what's wrong with request.getServerPort() from the ServletRequest interface? I know the server port, it's the Client port I want. -- Nicholas Blachford mailto:[EMAIL PROTECTED] Ministar nepretpostavljenih okolnosti The vast majority of trouble is caused by

Re: Getting apache environment variables into Tomcat

2001-10-18 Thread Dmitri Colebatch
oh, sorry... mis-interpreted the question. Although I'm not lost as to what you're trying to do... hope you figure it out though (o: cheers dim On Thu, 18 Oct 2001, Nicholas Blachford wrote: Dmitri Colebatch wrote: what's wrong with request.getServerPort() from the

Re: Getting apache environment variables into Tomcat

2001-10-17 Thread Dmitri Colebatch
what's wrong with request.getServerPort() from the ServletRequest interface? hth dim On Wed, 17 Oct 2001, Han Ming Ong wrote: Dear Nicholas, Did you ever get an answer to this? We would love to hear it please? Thanks, ohmson Hi all, I've set up Tomcat 4.01 and Apache 1.3.19

SSL environment variables in Tomcat 4.0?

2001-09-21 Thread Matias Bahlenberg
Hi, How do I obtain information of the Apache additional environment variables: SSL_CLIENT_CERT and SSL_SERVER_CERT in Tomcat 4.0? I am using Tomcat 4.0 (final release) as servlet-container, connected via mod_webapp (WarpConnector) to Apache Web Server 1.3.19. The Apache Server

Re: SSL environment variables in Tomcat 4.0?

2001-09-21 Thread tom cat
Does anyone knows if the connector mod_webapp supports the additional environment variables? - If so...how? - If not...is there another connector, which supports SSL variables? Can mod_jk be used as a connector between Apache 1.3.* and Tomcat 4.0? Matias Hi Matias, I'm clueless about all

Re: SSL environment variables in Tomcat 4.0?

2001-09-21 Thread jean-frederic clere
Matias Bahlenberg wrote: Hi, How do I obtain information of the Apache additional environment variables: SSL_CLIENT_CERT and SSL_SERVER_CERT in Tomcat 4.0? I am using Tomcat 4.0 (final release) as servlet-container, connected via mod_webapp (WarpConnector) to Apache Web Server 1.3.19

Newbie - Setting environment variables??

2001-09-12 Thread Joel Fowler
I'm using a package that requires that I have a DISPLAY variable set Tomcat's environment. I've attempted to export this variable before running startup.sh as well as including: export DISPLAY=localhost:0.0 in a .tomcatrc file. Neither approach seems to have accomplished this. How do I place

Please help: Problems building tomcat b7, environment variables not recognized

2001-08-24 Thread Levent Gündogdu
Hi everyone, I installed and compiled all prerequisites for tc b7 but when starting the build process, I get the following error: [...] build-static: [copy] Could not find file /var/asf/asf.current/tomcat/tomcat.build.b7/jakarta-tomcat-4.0-b7-src/catalina/${jndi.home}/lib/jndi.jar to

Re: Please help: Problems building tomcat b7, environment variables not recognized

2001-08-24 Thread Levent Guendogdu
] Reply-To: [EMAIL PROTECTED] To: Jakarta Tomcat User Maillinglist [EMAIL PROTECTED] Subject: Please help: Problems building tomcat b7, environment variables not recognized Hi everyone, I installed and compiled all prerequisites for tc b7 but when starting the build process, I get the following

RE: Accessing environment variables

2001-05-15 Thread William Kaufman
15, 2001 2:08 PM To: [EMAIL PROTECTED] Subject: Accessing environment variables I have a question which is somewhat off topic... Is there a way to access my environment varibables(ex. TOMCAT_HOME) from my servlets running in tomcat? I just need to somehow return the path

RE: Accessing environment variables

2001-05-15 Thread Ross Merritt
PROTECTED]] Sent: Tuesday, May 15, 2001 3:08 PM To: [EMAIL PROTECTED] Subject: Accessing environment variables I have a question which is somewhat off topic... Is there a way to access my environment varibables(ex. TOMCAT_HOME) from my servlets running in tomcat? I just need to somehow return

RE: Accessing environment variables

2001-05-15 Thread Courtney, James
Java system properties are different from environment variables as you probably know. If you look at your start up script (tomcat.sh) you will see that the command is executed with a -Dtomcat.home=${TOMCAT_HOME}. The -D parameter is how you set environment properties for Java at run time

Setting UNIX Environment Variables

2001-01-29 Thread O'Daniel, Chris
Hello All I need some UNIX environment variables to be available to my servlets. Using JServ I can add the following lines to the the jserv.properties file: # CLASSPATH environment value passed to the JVM # Syntax: wrapper.classpath=[path] (String) wrapper.path=/home/db2inst2/sqllib/bin

Re: Setting UNIX Environment Variables

2001-01-29 Thread Denis Haskin
"O'Daniel, Chris" wrote: I need some UNIX environment variables to be available to my servlets. Using JServ I can add the following lines to the the jserv.properties file: [...] I need to provide the same environment to my servlets running in Tomcat. Does anyone have any s