RE: Error while trying to stop and start the tomcat
Aparna, I'm not well versed with Sun Solaris. The only thing I can think of is did you add it to the .profile of the user you are trying to start Tomcat with? If not, that is your problem. Here is an example of my .bash_profile for my user to user Tomcat: PS=":" for i in /usr/local/openejb/openejb-0.9.1/lib/*.jar do CLASSPATH=${CLASSPATH}${PS}${i} done for i in /usr/local/openejb/openejb-0.9.1/dist/*.jar do CLASSPATH=${CLASSPATH}${PS}${i} done CLASSPATH=${CLASSPATH}:.:/usr/local/share/development export CLASSPATH export APACHE_HOME=/usr/local/apache2 export CATALINA_HOME=/usr/local/tomcat/tomcat-4.1.18 export JAVA_HOME=/usr/java/jdk1.3.1_07 export J2EE_HOME=/usr/java/j2sdkee1.3.1 export MYSQL_HOME=/usr/local/mysql/mysql-3.23.55-max export NPX_PLUGIN_PATH=$JAVA_HOME/jre/plugin/i386/ns600 export OPENEJB_HOME=/usr/local/openejb/openejb-0.9.1 PATH=$JAVA_HOME/bin:$J2EE_HOME/bin:$CATALINA_HOME/bin:$MYSQL_HOME/bin:$O PENEJB_HOME/bin:$PATH:$HOME/bin Hopefully this helps, Jeremy -Original Message- From: Aparna Narla [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:36 AM To: 'Tomcat Users List' Subject: RE: Error while trying to stop and start the tomcat Hi Jeremy, Thanks for the prompt reply . unfortunately i tried doing all that you mentioned but did'nt help. I have downloaded the j2sdk-1_4_1_02-solaris-sparcv9.tar.Z executable and unpacked it and added the packages SUNWj3dmx SUNWj3dvx SUNWj3rtx . Then Automatically it has created the folder /usr/j2se. In .profile file i added the path /usr/j2se/bin/sparcv9(this is where the executables are) then in JAVA_HOME=/usr/j2se . What is baffling me is when i look at the documentation it tells me to add the packages SUNWj3rt SUNWj3dev SUNWj3man SUNWj3dmo after unpacking the executable i downloaded. Any thing new i have to lookup or am i doing something wrong some where. Please help Aparna -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:04 AM To: 'Tomcat Users List' Subject: RE: Error while trying to stop and start the tomcat You can add "Environment Variables" such as "JAVA_HOME" to your .bash_profile in Linux or by right clicking the "My Computer" icon on your desktop and going to "Properties". ---Linux--- 1) Open your .bash_profile with your favorite text editor. 2) Add "export JAVA_HOME=/install/path/" (Replace "/intall/path/" with your path to your installation. Ex. /usr/java/java1.3.1_07/) ---Windows--- 1) Right-click "My Computer and go to "Properties" 2) Go to "Advanced" and then to "Environment Variables" 3) Under "System Variables", click "New..." and set "Variable Name" equal to "JAVA_HOME" and "Variable Value" equal to "Path to Installation" (Replace "Path to Installation" with the path to your SDK installation, not JRE. Ex. "C:\Java\Java2SDK\") Hope this helps, Jeremy -Original Message- From: Aparna Narla [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:00 AM To: 'Tomcat Users List' Subject: Re: Error while trying to stop and start the tomcat Hi, have recently updated the jdk 1.2 with jdk 1.4 which comes with installing j2se. I am trying to stop and start the tomcat service at $TOMCAT_HOME/bin/startup.sh i am getting the following error The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program Any suggestions on what i should be checking to correct this problem. Please Help. You help is much aprreciated. Aparna. -Original Message- From: Jacques Capesius [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 9:54 AM To: 'Tomcat Users List' Subject: RE: importing jdom.jar into Tomcat Shapira, Yoav wrote: > Howdy, > Put it in the WEB-INF/lib directory of the webapp where the JSP is. > And make sure that's the only copy of jdom in your server: take it > out of common/classes and server/lib. > > Yoav Shapira > Millennium ChemInformatics > awesome! that did the trick! thanks a million! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error while trying to stop and start the tomcat
Hi Jeremy, Thanks for the prompt reply . unfortunately i tried doing all that you mentioned but did'nt help. I have downloaded the j2sdk-1_4_1_02-solaris-sparcv9.tar.Z executable and unpacked it and added the packages SUNWj3dmx SUNWj3dvx SUNWj3rtx . Then Automatically it has created the folder /usr/j2se. In .profile file i added the path /usr/j2se/bin/sparcv9(this is where the executables are) then in JAVA_HOME=/usr/j2se . What is baffling me is when i look at the documentation it tells me to add the packages SUNWj3rt SUNWj3dev SUNWj3man SUNWj3dmo after unpacking the executable i downloaded. Any thing new i have to lookup or am i doing something wrong some where. Please help Aparna -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:04 AM To: 'Tomcat Users List' Subject: RE: Error while trying to stop and start the tomcat You can add "Environment Variables" such as "JAVA_HOME" to your .bash_profile in Linux or by right clicking the "My Computer" icon on your desktop and going to "Properties". ---Linux--- 1) Open your .bash_profile with your favorite text editor. 2) Add "export JAVA_HOME=/install/path/" (Replace "/intall/path/" with your path to your installation. Ex. /usr/java/java1.3.1_07/) ---Windows--- 1) Right-click "My Computer and go to "Properties" 2) Go to "Advanced" and then to "Environment Variables" 3) Under "System Variables", click "New..." and set "Variable Name" equal to "JAVA_HOME" and "Variable Value" equal to "Path to Installation" (Replace "Path to Installation" with the path to your SDK installation, not JRE. Ex. "C:\Java\Java2SDK\") Hope this helps, Jeremy -Original Message- From: Aparna Narla [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:00 AM To: 'Tomcat Users List' Subject: Re: Error while trying to stop and start the tomcat Hi, have recently updated the jdk 1.2 with jdk 1.4 which comes with installing j2se. I am trying to stop and start the tomcat service at $TOMCAT_HOME/bin/startup.sh i am getting the following error The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program Any suggestions on what i should be checking to correct this problem. Please Help. You help is much aprreciated. Aparna. -Original Message- From: Jacques Capesius [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 9:54 AM To: 'Tomcat Users List' Subject: RE: importing jdom.jar into Tomcat Shapira, Yoav wrote: > Howdy, > Put it in the WEB-INF/lib directory of the webapp where the JSP is. > And make sure that's the only copy of jdom in your server: take it > out of common/classes and server/lib. > > Yoav Shapira > Millennium ChemInformatics > awesome! that did the trick! thanks a million! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error while trying to stop and start the tomcat
You can add "Environment Variables" such as "JAVA_HOME" to your .bash_profile in Linux or by right clicking the "My Computer" icon on your desktop and going to "Properties". ---Linux--- 1) Open your .bash_profile with your favorite text editor. 2) Add "export JAVA_HOME=/install/path/" (Replace "/intall/path/" with your path to your installation. Ex. /usr/java/java1.3.1_07/) ---Windows--- 1) Right-click "My Computer and go to "Properties" 2) Go to "Advanced" and then to "Environment Variables" 3) Under "System Variables", click "New..." and set "Variable Name" equal to "JAVA_HOME" and "Variable Value" equal to "Path to Installation" (Replace "Path to Installation" with the path to your SDK installation, not JRE. Ex. "C:\Java\Java2SDK\") Hope this helps, Jeremy -----Original Message- From: Aparna Narla [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:00 AM To: 'Tomcat Users List' Subject: Re: Error while trying to stop and start the tomcat Hi, have recently updated the jdk 1.2 with jdk 1.4 which comes with installing j2se. I am trying to stop and start the tomcat service at $TOMCAT_HOME/bin/startup.sh i am getting the following error The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program Any suggestions on what i should be checking to correct this problem. Please Help. You help is much aprreciated. Aparna. -Original Message- From: Jacques Capesius [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 9:54 AM To: 'Tomcat Users List' Subject: RE: importing jdom.jar into Tomcat Shapira, Yoav wrote: > Howdy, > Put it in the WEB-INF/lib directory of the webapp where the JSP is. > And make sure that's the only copy of jdom in your server: take it > out of common/classes and server/lib. > > Yoav Shapira > Millennium ChemInformatics > awesome! that did the trick! thanks a million! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error while trying to stop and start the tomcat
Hi, have recently updated the jdk 1.2 with jdk 1.4 which comes with installing j2se. I am trying to stop and start the tomcat service at $TOMCAT_HOME/bin/startup.sh i am getting the following error The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program Any suggestions on what i should be checking to correct this problem. Please Help. You help is much aprreciated. Aparna. -Original Message- From: Jacques Capesius [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 9:54 AM To: 'Tomcat Users List' Subject: RE: importing jdom.jar into Tomcat Shapira, Yoav wrote: > Howdy, > Put it in the WEB-INF/lib directory of the webapp where the JSP is. > And make sure that's the only copy of jdom in your server: take it > out of common/classes and server/lib. > > Yoav Shapira > Millennium ChemInformatics > awesome! that did the trick! thanks a million! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]