Trouble with Tomcat on Solaris 10 zone


 
Thread Tools Search this Thread
Operating Systems Solaris Trouble with Tomcat on Solaris 10 zone
# 1  
Old 01-26-2010
Trouble with Tomcat on Solaris 10 zone

Trying to get tomcat 5.5.28 downloaded from apache.org running on a stock Solaris 10 zone. No matter what, I cannot get it to start. I've tried setting my JAVA_home to a jre 1.6, didn't work. Didn't work with the stock Java 1.4.2 install. What am I missing?

Code:
-bash-3.00# sh apache-tomcat-5.5.28/bin/startup.sh 
Using CATALINA_BASE:   /apache-tomcat-5.5.28
Using CATALINA_HOME:   /apache-tomcat-5.5.28
Using CATALINA_TMPDIR: /apache-tomcat-5.5.28/temp
Using JRE_HOME:        jre1.6.0_18/bin/java
Using CLASSPATH:       /apache-tomcat-5.5.28/bin/bootstrap.jar
-bash-3.00# sh apache-tomcat-5.5.28/bin/shutdown.sh  
Using CATALINA_BASE:   /apache-tomcat-5.5.28
Using CATALINA_HOME:   /apache-tomcat-5.5.28
Using CATALINA_TMPDIR: /apache-tomcat-5.5.28/temp
Using JRE_HOME:        jre1.6.0_18/bin/java
Using CLASSPATH:       /apache-tomcat-5.5.28/bin/bootstrap.jar
apache-tomcat-5.5.28/bin/catalina.sh: jre1.6.0_18/bin/java/bin/java: cannot execute

# 2  
Old 01-26-2010
jre1.6.0_18/bin/java is not a full path. Try unsetting JRE_HOME which should default to JAVA_HOME. Have JAVA_HOME be correctly set.
# 3  
Old 01-26-2010
OK, I unset JAVA_HOME and JRE_HOME.
Ran "-bash-3.00# export JAVA_HOME=/jre1.6.0_18/bin/java"

Tried starting up Tomcat which gave me no errors but it didn't start up. When I attempt to shutdown Tomcat, I get the below:

Code:
-bash-3.00# sh apache-tomcat-5.5.28/bin/shutdown.sh 
Using CATALINA_BASE:   /apache-tomcat-5.5.28
Using CATALINA_HOME:   /apache-tomcat-5.5.28
Using CATALINA_TMPDIR: /apache-tomcat-5.5.28/temp
Using JRE_HOME:        /jre1.6.0_18/bin/java
Using CLASSPATH:       /apache-tomcat-5.5.28/bin/bootstrap.jar
apache-tomcat-5.5.28/bin/catalina.sh: /jre1.6.0_18/bin/java/bin/java: cannot execute

# 4  
Old 01-26-2010
JAVA_HOME should point to the JAVA home directory, not the java command.
Try:
Code:
export JAVA_HOME=/jre1.6.0_18

# 5  
Old 01-26-2010
That did it! Thank you very much, jiliagre! I appreciate your help.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Solaris 11 zone has no external network access (except to Global Zone)

Hi, hoping someone can help, its been a while since I used Solaris. After creating a NGZ (non global zone), the NGZ can access the GZ (Global Zone) and the GZ can access the NGZ (using ssh, zlogin) However, the NGZ cannot access any other netwqork devices, it can't even see the default router ... (2 Replies)
Discussion started by: GazinLincoln
2 Replies

2. Solaris

Solaris 11 Global zone patching having Solaris 10 branded zone

I am planning to do solaris 11 global zone patching having solaris 10 branded zone. I have a doubts on step 8 specially Can someone clear my step 8 doubts or if anything wrong between step 1 to step 9 please correct that also as I have pretty good idea about Step 10 mean patching in solaris 10... (2 Replies)
Discussion started by: amity
2 Replies

3. UNIX for Advanced & Expert Users

Solaris 10: I forgot to detach a zone before zpool export. Uninstall zone?

Dear all, recently, I migrated a solaris zone from one host to another. The zone was inside of a zpool. The zpool cotains two volumes. I did the following: host1: $ zlogin zone1 shutdown -y -g0 -i0 #Zone status changes from running to installed $ zpool export zone1 host2: $ zpool... (2 Replies)
Discussion started by: custos
2 Replies

4. Solaris

Tomcat..Unable to deploy application remotely in tomcat

Hi, We have upgrade tomcat from 5.0.20 to 7.0.33 and made changes to server.xml file according to newer version.. how ever the upgrade went fine and now i am unable to deploy application remotely.. it is giving 403 access denied error.. we have seperate appbase directory mentioned in server.xml..... (0 Replies)
Discussion started by: phani4u
0 Replies

5. Shell Programming and Scripting

Automatic shutdown and startup of Tomcat in Solaris

Dear Experts , I want to stop and Start tomcat at the time of shutdown and startup of our server . I was trying to stop tomcat with following command # su - dm -c "/export/home/Finder/FinderWeb/jakarta-tomcat-3.3.1a/bin/shutdown.sh" but i am getting following error. Please suggest .... (1 Reply)
Discussion started by: Amit.saini333
1 Replies

6. Solaris

Solaris 10 local zone on Solaris 11 global zone

Hi, A quick question: Can Solaris 10 local zones be moved to a Solaris 11 global zone and work well? Thank you in advance! (5 Replies)
Discussion started by: aixlover
5 Replies

7. Solaris

war file not expanded (tomcat solaris)

hi .. my example.war file is not expanded in the webapps folder.. could u guide me why the file is not expanded when i restart tomcat... (1 Reply)
Discussion started by: senkerth
1 Replies

8. Shell Programming and Scripting

Trouble getting consistent PID of tomcat server from ps

Hello all, I am working on a script to automate the process of restarting some tomcat servers. The versions of tomcat are pretty old and it often happens that they don't shut down gracefully and the PID needs to be manually killed. I am having a bear of a time getting a consistent PID from ps... (1 Reply)
Discussion started by: dkaplowitz
1 Replies

9. Solaris

Solaris Zone : Non global Zone check failed

Hi All , I try to install some packages in my global zone... On the execution of the installion of the script it quits by saying the error "Non global zone check failed" Kindly help me in this regard Thanks in advance, jeganr (7 Replies)
Discussion started by: jegaraman
7 Replies
Login or Register to Ask a Question