LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-21-2003, 03:58 AM   #1
Manav
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Rep: Reputation: 0
Unable to start Tomcat 4 on Linux


Hi there,

We have installed tomcat 4 on Linux 8 as part of apache web application framework installation.

After installing tomcat 4 RPM. when I tried to start using "tomcat4 run", following error was displayed. I would appreciate quick replies. Thanks.

*********************************
Using CATALINA_BASE: /var/tomcat4
Using CATALINA_HOME: /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME: /opt/IBMJava2-131
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
java.io.FileNotFoundException: /var/tomcat4/conf/jk2.properties (Permission denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:78)
at org.apache.jk.server.JkMain.setPropertiesFile(JkMain.java:162)
at org.apache.jk.server.JkMain.init(JkMain.java:279)
at org.apache.jk.server.JkCoyoteHandler.init(JkCoyoteHandler.java:153)
at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1117)
at org.apache.catalina.core.StandardService.initialize(Unknown Source)
at org.apache.catalina.core.StandardServer.initialize(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
GlobalResourcesLifecycleListener: Exception processing Global JNDI Resources
javax.naming.NamingException: /var/tomcat4/conf/tomcat-users.xml.new (Permission denied)
at org.apache.naming.NamingContext.lookup(Unknown Source)
at org.apache.naming.NamingContext.lookup(Unknown Source)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(Unknown Source)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(Unknown Source)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(Unknown Source)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown Source)
at org.apache.catalina.core.StandardServer.start(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
Starting service Tomcat-Standalone
Apache Tomcat/4.1
javax.naming.NamingException: /var/tomcat4/conf/tomcat-users.xml.new (Permission denied)
at org.apache.naming.NamingContext.lookup(Unknown Source)
at org.apache.naming.NamingContext.lookup(Unknown Source)
at org.apache.catalina.realm.UserDatabaseRealm.start(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardEngine.start(Unknown Source)
at org.apache.catalina.core.StandardService.start(Unknown Source)
at org.apache.catalina.core.StandardServer.start(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
Catalina.start: LifecycleException: No UserDatabase component found under key UserDatabase
LifecycleException: No UserDatabase component found under key UserDatabase
at org.apache.catalina.realm.UserDatabaseRealm.start(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardEngine.start(Unknown Source)
at org.apache.catalina.core.StandardService.start(Unknown Source)
at org.apache.catalina.core.StandardServer.start(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
Stopping service Tomcat-Standalone
Catalina.stop: LifecycleException: Coyote connector has not been started
LifecycleException: Coyote connector has not been started
at org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1160)
at org.apache.catalina.core.StandardService.stop(Unknown Source)
at org.apache.catalina.core.StandardServer.stop(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
****************************************

Last edited by Manav; 08-21-2003 at 03:59 AM.
 
Old 08-21-2003, 06:16 AM   #2
MiscGeek
Member
 
Registered: Jan 2003
Location: Georgia, US
Distribution: RHEL WS4
Posts: 189

Rep: Reputation: 30
Re: Unable to start Tomcat 4 on Linux

Quote:
Originally posted by Manav
Hi there,

We have installed tomcat 4 on Linux 8 as part of apache web application framework installation.
I assume when you say Linux 8 you actually meant Red Hat 8? Red Hat != Linux.

Now that I've got that out of the way It sounds like you are trying to run tomcat as a normal user. That's probably why you are getting permission errors. You should run it as root. It will switch to the tomcat4 user when it starts.

If you are running Red Hat the easiest way to start and stop tomcat is with the service program.

As root, try the "/sbin/service tomcat4 start" to start tomcat, "/sbin/service tomcat4 stop" to stop it.

Mike
 
Old 08-21-2003, 06:27 AM   #3
Manav
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks Mike.
We were starting tomcat as root..
We did little of trouble shooting and could minimize errors to following; would appreciate, if we get help on this...

************
Using CATALINA_BASE: /var/tomcat4
Using CATALINA_HOME: /var/tomcat4
Using CATALINA_TMPDIR: /var/tomcat4/temp
Using JAVA_HOME: /opt/IBMJava2-131
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1
Initialization using: /WEB-INF/resources/enterprise.init
log4j:ERROR No appenders could be found for category (com.arsdigita.initializer.Script).
log4j:ERROR Please initialize the log4j system properly.
Initialization failed with error Initialization Script startup error! (root cause: Unable to create system wide log.).
com.arsdigita.initializer.InitializationException: Unable to create system wide log.
at com.arsdigita.logging.Initializer.startup(Initializer.java:168)
at com.arsdigita.initializer.Script.startup(Script.java:178)
at com.arsdigita.initializer.Script.startup(Script.java:148)
at com.arsdigita.dispatcher.InitializerServlet.init(InitializerServlet.java:71)
at javax.servlet.GenericServlet.init(GenericServlet.java)
at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown Source)
at org.apache.catalina.core.StandardWrapper.load(Unknown Source)
at org.apache.catalina.core.StandardContext.loadOnStartup(Unknown Source)
at org.apache.catalina.core.StandardContext.start(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardHost.start(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardEngine.start(Unknown Source)
at org.apache.catalina.core.StandardService.start(Unknown Source)
at org.apache.catalina.core.StandardServer.start(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
ERROR: INITIALIZATION FAILED. ACS SYSTEM NOT USEABLE. PLEASE CORRECT ERRORS ABOVE.
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=1/153 config=/var/tomcat4/conf/jk2.properties
*********************
 
Old 08-21-2003, 06:48 AM   #4
MiscGeek
Member
 
Registered: Jan 2003
Location: Georgia, US
Distribution: RHEL WS4
Posts: 189

Rep: Reputation: 30
Hmm, what is the "com.arsdigita.dispatcher.InitializerServlet", sounds like the problem may be in it, or it could be related to the "/WEB-INF/resources/enterprise.init".

The above errors sound like tomcat is having a problem setting up log4 J. Most of the time this has to do with it not finding the Log4J.properties file or what ever file you use to initialize it.

I've got to head out for a meeting in a few minutes. I will probably not be back until late this afternoon I hate to abandon you like this but, got to pay the bills

I'll check the board when I get back this afternoon though, in case your still having problems.

Mike
 
Old 08-21-2003, 11:44 PM   #5
Manav
LQ Newbie
 
Registered: Aug 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Tomcat 4 was installed following instruction @ http://www.helmuth.net/mitel-sme/Tom...v4.0-howto.htm

thx for the help.

Cheers !!
 
Old 08-22-2003, 05:59 AM   #6
MiscGeek
Member
 
Registered: Jan 2003
Location: Georgia, US
Distribution: RHEL WS4
Posts: 189

Rep: Reputation: 30
Okay, again I would take a look at the com.arsdigita.dispatcher.InitializerServlet and the enterprise.init file. It might just have an invalid path for the log4j parameters.

Mike
 
  


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
Tomcat Unable to Start - Exception PerfectReign Linux - Software 2 08-10-2006 05:24 PM
How many java Services will start while starting tomcat on mandrake linux naveenmadugula Linux - General 2 05-15-2005 11:52 PM
How to start Apache and Tomcat with Linux boot montejr Linux - Newbie 2 04-23-2004 02:03 PM
TOMCAT init script not working on startup -- tomcat 4.x / Mandrake Linux 8.0 jmartinph Mandriva 0 03-08-2004 01:31 AM
Unable to shut down tomcat MakingOfAGeek Linux - Newbie 1 10-26-2003 07:48 AM

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

All times are GMT -5. The time now is 01:05 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
Open Source Consulting | Domain Registration