[opensuse] Tomcat and Java Environment Variables
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 All, Having finally got tomcat operational I have found that although the Tomcat script is supposed to be exporting CATALINA_HOME, etc, etc These variables seem not be set when working from the CLI. In fact, the java environment seems to be that defined by /etc/profiles.d/alljava.sh. Funambol requires J2EE_HOME to be set (at least for installation purposes) and to my mind it would be useful to use CATALINA_HOME to set this, Has anyone else installed tomcat, and are they experiencing a similar issue with 10.2. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGYULQasN0sSnLmgIRAjtgAJwKdb14EJ4ymC4pRHyai8rzPTlIXwCeKOHl Iybgo+ghyg/xg43jI7f5KGk= =2eBl -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hi,
If Tomcat is actually running then it is set. I run tomcat on SuSE
10.0 and 10.1. The environment is set for user tomcat. If you want to
setup something else it might be best to get a copy of tomcat from
apache and set up everything the way you like it.
HTH
On 6/2/07, G T Smith
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
All,
Having finally got tomcat operational I have found that although the Tomcat script is supposed to be exporting CATALINA_HOME, etc, etc These variables seem not be set when working from the CLI. In fact, the java environment seems to be that defined by /etc/profiles.d/alljava.sh.
Funambol requires J2EE_HOME to be set (at least for installation purposes) and to my mind it would be useful to use CATALINA_HOME to set this, Has anyone else installed tomcat, and are they experiencing a similar issue with 10.2.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFGYULQasN0sSnLmgIRAjtgAJwKdb14EJ4ymC4pRHyai8rzPTlIXwCeKOHl Iybgo+ghyg/xg43jI7f5KGk= =2eBl -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 04 June 2007 16:14:43 George Stoianov wrote:
Hi,
If Tomcat is actually running then it is set. I run tomcat on SuSE 10.0 and 10.1. The environment is set for user tomcat. If you want to setup something else it might be best to get a copy of tomcat from apache and set up everything the way you like it. HTH
On 6/2/07, G T Smith
wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
All,
Having finally got tomcat operational I have found that although the Tomcat script is supposed to be exporting CATALINA_HOME, etc, etc These variables seem not be set when working from the CLI. In fact, the java environment seems to be that defined by /etc/profiles.d/alljava.sh.
Funambol requires J2EE_HOME to be set (at least for installation purposes) and to my mind it would be useful to use CATALINA_HOME to set this, Has anyone else installed tomcat, and are they experiencing a similar issue with 10.2.
Hi. Which SUSE version are you using? If it's >= 9.3, try to use the tomcat from SUSE 10.2 (there should not be a problem) -- the runtime script is much better. The following variables should be accepted and recognized: CATALINA_HOME CATALINA_BASE CATALINA_OPTS CATALINA_TMPDIR JAVA_HOME JAVA_OPTS JPDA_TRANSPORT JPDA_ADDRESS JSSE_HOME CATALINA_PID TOMCAT_BASE_USER TOMCAT_BASE_GROUP you need to set them in /etc/sysconfig/j2ee Best, Daniel
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFGYULQasN0sSnLmgIRAjtgAJwKdb14EJ4ymC4pRHyai8rzPTlIXwCeKOHl Iybgo+ghyg/xg43jI7f5KGk= =2eBl -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- ------------------------------------- SUSE LINUX Products GmbH - Nürnberg - AG Nürnberg - HRB 16746 - GF: Markus Rex ------------------------------------- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Daniel Bornkessel wrote:
On Monday 04 June 2007 16:14:43 George Stoianov wrote:
Hi,
If Tomcat is actually running then it is set. I run tomcat on SuSE 10.0 and 10.1. The environment is set for user tomcat. If you want to setup something else it might be best to get a copy of tomcat from apache and set up everything the way you like it. HTH
On 6/2/07, G T Smith
wrote: All, Having finally got tomcat operational I have found that although the Tomcat script is supposed to be exporting CATALINA_HOME, etc, etc These variables seem not be set when working from the CLI. In fact, the java environment seems to be that defined by /etc/profiles.d/alljava.sh.
Funambol requires J2EE_HOME to be set (at least for installation purposes) and to my mind it would be useful to use CATALINA_HOME to set this, Has anyone else installed tomcat, and are they experiencing a similar issue with 10.2.
Hi. Which SUSE version are you using? If it's >= 9.3, try to use the tomcat from SUSE 10.2 (there should not be a problem) -- the runtime script is much better. The following variables should be accepted and recognized:
CATALINA_HOME CATALINA_BASE CATALINA_OPTS CATALINA_TMPDIR JAVA_HOME JAVA_OPTS JPDA_TRANSPORT JPDA_ADDRESS JSSE_HOME CATALINA_PID TOMCAT_BASE_USER TOMCAT_BASE_GROUP
you need to set them in /etc/sysconfig/j2ee
Best, Daniel
This is 10.2 64 bit version... The problem is this... I have checked the /etc/init.d/tomcat5 script and in principle it should be exporting all of the relevant variables to the environment.... I go to a xterm session... check for CATALINA_HOME, CATALINA_BASE etc variables using export -p and they not there, JAVA_HOME etc are as defined in the alljava.sh script.. Running scripts manually should set and export these variables but there is no change to them, the variables settings are being used within the startup script but not being exported to the environment as I would expect... Everything seems to be working but the status of these variables is a bit of puzzle... BTW I am exploring funambol at moment and it requires J2EE_HOME to be set (but thats a different story :-(). This seems to only require this variable to be set during installation as far as I can see so far. - -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGZEqHasN0sSnLmgIRAmi7AJ4315zGKmvqEE7Y+XDrhjeDj9/qawCfcpHL I4jmX72XCPOJ51gRiuwTFJc= =mOaA -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
defined in the alljava.sh script.. Running scripts manually should set and export these variables but there is no change to them, the variables settings are being used within the startup script but not being exported to the environment as I would expect... Everything seems to be working but the status of these variables is a bit of puzzle...
Should they be exported only for the tomcat user or all users? Which user are you logged in as? Can you switch to the tomcat user and check the env there?? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 George Stoianov wrote:
defined in the alljava.sh script.. Running scripts manually should set and export these variables but there is no change to them, the variables settings are being used within the startup script but not being exported to the environment as I would expect... Everything seems to be working but the status of these variables is a bit of puzzle...
Should they be exported only for the tomcat user or all users? Which user are you logged in as? Can you switch to the tomcat user and check the env there??
... this is one of those moments ... Doh! I worked out what is happening and my error, the variables are being passed to the sub processes spawned by the tomcat5 script, however no changes is being made to the current process environment. To export them to a current shell I need to add a script to /etc/profile.d to ensure that the relevant settings can be passed to things like installation programs that install outside of the tomcat environment. The script probably needs to be generated by the tomcat5 script so it reflects current settings... which could be fun.... -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGZG9ZasN0sSnLmgIRAop1AKDYZeeCkCHqSpET4EmmZ7PDdnO9PwCgyfkK y/GDsGfHO2FVSwprzeac1ME= =lTMV -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 6/4/07, G T Smith
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
George Stoianov wrote:
defined in the alljava.sh script.. Running scripts manually should set and export these variables but there is no change to them, the variables settings are being used within the startup script but not being exported to the environment as I would expect... Everything seems to be working but the status of these variables is a bit of puzzle...
Should they be exported only for the tomcat user or all users? Which user are you logged in as? Can you switch to the tomcat user and check the env there??
... this is one of those moments ... Doh!
I worked out what is happening and my error, the variables are being passed to the sub processes spawned by the tomcat5 script, however no changes is being made to the current process environment.
To export them to a current shell I need to add a script to /etc/profile.d to ensure that the relevant settings can be passed to things like installation programs that install outside of the tomcat environment. The script probably needs to be generated by the tomcat5 script so it reflects current settings... which could be fun....
As long as this is not your server but a hack machine it can be fun :), nevertheless I would advise you to install your own tomcat for your user and set things up, that way if something goes hay wire you will not have to dig very deep. Good luck!
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFGZG9ZasN0sSnLmgIRAop1AKDYZeeCkCHqSpET4EmmZ7PDdnO9PwCgyfkK y/GDsGfHO2FVSwprzeac1ME= =lTMV -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
G T Smith schrieb:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
George Stoianov wrote:
defined in the alljava.sh script.. Running scripts manually should set and export these variables but there is no change to them, the variables settings are being used within the startup script but not being exported to the environment as I would expect... Everything seems to be working but the status of these variables is a bit of puzzle...
Should they be exported only for the tomcat user or all users? Which user are you logged in as? Can you switch to the tomcat user and check the env there??
... this is one of those moments ... Doh!
I worked out what is happening and my error, the variables are being passed to the sub processes spawned by the tomcat5 script, however no changes is being made to the current process environment.
To export them to a current shell I need to add a script to /etc/profile.d to ensure that the relevant settings can be passed to things like installation programs that install outside of the tomcat environment. The script probably needs to be generated by the tomcat5 script so it reflects current settings... which could be fun....
Hi. source /etc/sysconfig/j2ee you set all variables to the values the tomcat script uses. With export CATALINA_HOME CATALINA_BASE JAVA_OPTS ... you export them for sub processes -- this is how the /etc/init.d/tomcat5 script works as well: Just look for an export command with a lot of variable names. Cheers, Daniel
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFGZG9ZasN0sSnLmgIRAop1AKDYZeeCkCHqSpET4EmmZ7PDdnO9PwCgyfkK y/GDsGfHO2FVSwprzeac1ME= =lTMV -----END PGP SIGNATURE-----
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Daniel Bornkessel wrote:
G T Smith schrieb: George Stoianov wrote:
defined in the alljava.sh script.. Running scripts manually should set and export these variables but there is no change to them, the variables settings are being used within the startup script but not being exported to the environment as I would expect... Everything seems to be working but the status of these variables is a bit of puzzle...
Should they be exported only for the tomcat user or all users? Which user are you logged in as? Can you switch to the tomcat user and check the env there??
... this is one of those moments ... Doh!
I worked out what is happening and my error, the variables are being passed to the sub processes spawned by the tomcat5 script, however no changes is being made to the current process environment.
To export them to a current shell I need to add a script to /etc/profile.d to ensure that the relevant settings can be passed to things like installation programs that install outside of the tomcat environment. The script probably needs to be generated by the tomcat5 script so it reflects current settings... which could be fun....
Hi.
source /etc/sysconfig/j2ee
you set all variables to the values the tomcat script uses. With
export CATALINA_HOME CATALINA_BASE JAVA_OPTS ...
you export them for sub processes -- this is how the /etc/init.d/tomcat5 script works as well: Just look for an export command with a lot of variable names.
Cheers, Daniel
Unfortunately, J2EE_HOME is not defined. This needs to be set for the funambol installation process to work, this is done from the CLI and requires the application server to be shutdown, and is not done in the tomcat environment. I have come across references to this variable and some additional variables being used for J2EE based development work. Fortunately, I have no immediate plans to do any such work so this is not particularly pressing. At the moment I am exploring configuration options for funambol and I probably need to look at JBOSS and JOnas at some point. Which means I will need to go through the installation process again, at which point I will revisit this. Thanks -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGZR2SasN0sSnLmgIRAqyyAJ9fLPvYI5jEKiLQXbB+6Jlyqu12VQCg4T+8 +wWHnMu/jpd0oF9z3wWt7ns= =l+VY -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Daniel Bornkessel
-
G T Smith
-
George Stoianov