-----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