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
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,
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.
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
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
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
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).
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
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
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
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
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
.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
.
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
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
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
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
). 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
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
-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
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
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
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
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
.
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
.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
-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
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
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
]]
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
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
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
* 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
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
-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
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
: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
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
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
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
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
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
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
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
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
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
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
]
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
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
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
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
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
"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
68 matches
Mail list logo