How to start tomcat with 2 jdk?


 
Thread Tools Search this Thread
Operating Systems Solaris How to start tomcat with 2 jdk?
# 8  
Old 02-08-2010
Hmm, could be a problem with the owner and access mode of files. You started tomcat as root earlier, so the logfiles are most likely owner by root, especially catalina.out in /usr/local/tomcat5/logs.
# 9  
Old 02-08-2010
Are there any scripts that you can find in the /etc/rc.* directories?
# 10  
Old 02-08-2010
you need to update your PATH so that you can find the correct version of java.
# 11  
Old 02-09-2010
Now, my path is already set ok.
Code:
echo $PATH
/usr/sbin:/usr/bin:/usr/jdk/instances/jdk1.6.0/bin:/bin:/usr/local/tomcat5/bin:/usr/sfw/bin:/usr/ccs/bin

Quote:
Originally Posted by pupp
you need to update your PATH so that you can find the correct version of java.


---------- Post updated at 11:23 PM ---------- Previous update was at 10:44 PM ----------

I find another application startup script at /etc/rc3.d. That application uses old java jre and iPlanet web server.


Quote:
Originally Posted by incredible
Are there any scripts that you can find in the /etc/rc.* directories?


---------- Post updated 02-09-10 at 12:11 AM ---------- Previous update was 02-08-10 at 11:23 PM ----------

Thanks for your advice. I've changed all permission to the new user a/c under tomcat5 folder already. Not sure why tomcat cannot startup after exported the JAVA_HOME, PATH, JDK paths.

Quote:
Originally Posted by hergp
Hmm, could be a problem with the owner and access mode of files. You started tomcat as root earlier, so the logfiles are most likely owner by root, especially catalina.out in /usr/local/tomcat5/logs.


---------- Post updated at 03:02 AM ---------- Previous update was at 12:11 AM ----------

I could startup tomcat & jdk properly now.
And new port is set in server.xml (since 8080 is used by other appl.) But the page could not be displayed in The UNIX and Linux Forums - Learn UNIX and Linux from Experts
# 12  
Old 02-11-2010
Hi

This works for me on XP Home SP2.

That it fails for you on some machines and works on others points to a
configuration issue with those machines (maybe the Java 6 install?) rather than
a Tomcat issue or an issue with the service wrapper.

The tomcat users list is the best place to get further help with this issue.

Or you can try this.

If you Google a little or browse tomcat-user mailing list you'll discover that
I'm not the only one to experience this very same problem. It is for sure a
configuration-related issue, but the fact that it involves only Tomcat and only
on jdk 1.6 (with jdk 1.5 it works fine on the same machine) and that at least a
few people who are long-time Tomcat users have not been able so far to fix it,
should suggest to keep the bug open and investigate further. Bear in mind that
not many people have started using jdk 1.6, and those who are may be using
Tomcat 6, so it may end up that many more cases show up in the next weeks.

Thanks

Hannan Saleemi
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

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

2. HP-UX

jdk

How can i see if jdk is installed or not on my system. I am on HP UX B.11.31 (3 Replies)
Discussion started by: bang_dba
3 Replies

3. UNIX for Advanced & Expert Users

Is it Possible to Start Tomcat Manager using command prompt!

Hi All, wget http://<username>:<password>@<hostname>:<port>/manager/list -O - -q using this command i can able to stop , start , reload everything i can able to do once i start the tomcat , now i have some doubt legends. 1. Is this is a secure way using wget to start, stop, reload the... (0 Replies)
Discussion started by: anishkumarv
0 Replies

4. Ubuntu

JDK path

Hello, I have installed the default JDK from Software centre, but when i type whereis JDK on the terminal.. i don't see any path :mad: i need JDk to install a tool ... Hurry!!! please HELP:confused::confused: (4 Replies)
Discussion started by: paramad
4 Replies

5. Solaris

Jdk 1.6 Installtion

How to install the jdk 1.6 in the solaris sparc 10 64bit. Any patch is required for jdk 1.6 for solaris (2 Replies)
Discussion started by: saktiviji
2 Replies

6. Web Development

Allow multiple users to start/stop tomcat

Hi, I have the user who runs tomcat: tomcat:tomcats I want to have another user who will be able to start and stop tomcat process. Is this possible? Thanks, Bianca (1 Reply)
Discussion started by: potro
1 Replies

7. Shell Programming and Scripting

How to check for and start the Tomcat using a script

Hello Everyone,. I am a novice with shell scripting and have written some minor shell scripts to copy files and such that. Now I have a requirement to write a shell script to go check if Tomcat running in the same server is up or not, if not then run the Tomcat startup script. Then put this... (4 Replies)
Discussion started by: bhaire
4 Replies

8. UNIX for Dummies Questions & Answers

JDK Installation

I'm trying to install JDK (Java Development tools) and i get this: WARNING: The <SUNWj6dev> package "JDK 6.0 Dev. Tools (1.6.0)" is a prerequisite package and should be installed. WARNING: The <SUNWj6rtx> package "JDK 6.0 64-bit Runtime Env. (1.6.0)" is a prerequisite package and should be... (0 Replies)
Discussion started by: idan_cn
0 Replies

9. Shell Programming and Scripting

Problem with Unix script to start remote Tomcat

I have Tomcat installed on a Unix box and I need to start it remotely from another Unix box. Tomcat is started using a script. When this script is run locally everything is fine. When I run the same script from remote box, tomcat starts but the command running the script does not terminate.:( ... (2 Replies)
Discussion started by: shrgh
2 Replies

10. UNIX for Dummies Questions & Answers

find jdk 1.3.1

Hello, I try to find the file jdk-1.3.1_03-fcs.rpm (pre-requisite for Oracle Applications 11.5.8) for Linux x86 but it doesn't available anywhere... Maybe here, somebody have it ? :o Rgds (1 Reply)
Discussion started by: madmat
1 Replies
Login or Register to Ask a Question