LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-22-2009, 05:02 AM   #1
chainer
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Rep: Reputation: 0
Opensuse 10.3 Tomcat Problem


I installed the Lamp Package from the Opensuse 10.3 DVD and all Tomcat 5.5 Packages. When I want to start Tomcat it says it failed to start,
because the java home directory is not set.
I want to set it, but the owner of the tomcat file is root, when I set the Path in /etc/profiles it won't be set before I type source /etc/profiles in terminal and I have to do it every time when I start Opensuse new. But if i set it in the home directory of my user in the .bashrc i cannot start Tomcat with rctomcat55 start because the user doesn't have the right to do this. If I changed the user to root again the java_home path entry in bashrc couldn't be used anymore.
Any suggestions ?
 
Old 01-22-2009, 05:44 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Why don't you create a script to launch tomcat and set JAVA_HOME inside?
 
Old 01-22-2009, 05:52 AM   #3
chainer
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Tomcat Script

Hmm good idea, but is there a way to set the JAVA_HOME path in the script without editing the bashrc or profile file ?
Sadly the next problem occured. I start Tomcat after setting JAVA_HOME and open the Browser on port 8080 it shows me a white page. Any idea what caused that problem?
 
Old 01-22-2009, 06:04 AM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
You can set JAVA_HOME in any script, it does not need to be in bashrc or profile.
What do you expect to be on port 8080?
 
Old 01-22-2009, 06:10 AM   #5
chainer
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Agrouf View Post
You can set JAVA_HOME in any script, it does not need to be in bashrc or profile.
What do you expect to be on port 8080?
Ok, thanks for your help. I just realized there was no tomcat webapps package delivered with the other packages of tomcat which are on the Suse CD-Rom, or I just didn't find it. I wanted to see the index.jsp, which is actually not there, because of the missing webapps package i think.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fresh tomcat 5.5 install not showing tomcat homepage laggerific Linux - Software 0 10-26-2007 04:28 PM
How to make Tomcat 4.0.1 and Tomcat 5.0.28 coexist in one server? g18397 Linux - Software 0 05-16-2006 04:16 AM
Tomcat problem roger600 Linux - Software 1 10-12-2005 07:12 AM
Problem of Tomcat chinaundead Linux - Software 6 03-29-2004 07:35 PM
TOMCAT init script not working on startup -- tomcat 4.x / Mandrake Linux 8.0 jmartinph Mandriva 0 03-08-2004 02:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration