tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Pyeron" <jpye...@pdinc.us>
Subject Issues on startup for tomcat 5.5 on RHEL 5.5
Date Tue, 07 Dec 2010 15:53:18 GMT
I am not sure what happened but something changed in the last week and now
tomcat does not want to start up. All my googling points to a selinux or
permission problem. I have reviewed audit.log and verified that the tomcat user
can write, modify and delete file in the directoy. Any suggestion would be
appreciated.

The permissions on /usr/share/tomcat5/conf/ are 775 and owned by root.tomcat.

cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)

cat /var/log/tomcat5/catalina.out
Using CATALINA_BASE:   /usr/share/tomcat5
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp Using JRE_HOME:
Dec 7, 2010 10:13:35 AM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in
production environments was not found on the java.library.path:
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm
/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.6.0-openjdk
-1.6.0.0.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:
/lib:/usr/lib
Dec 7, 2010 10:13:35 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080 Dec 7, 2010 10:13:35 AM
org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 502 ms Dec 7, 2010 10:13:35 AM
org.apache.naming.NamingContext lookup
WARNING: Unexpected exception resolving reference
java.io.IOException: IOException writing to
/usr/share/tomcat5/conf/tomcat-users.xml.new
        at
org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:554)
        at
org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUser
DatabaseFactory.java:104)
        at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java
:140)
        at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
        at
org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingCon
textBindingsEnumeration.java:113)
        at
org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnu
meration.java:71)
        at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalR
esourcesLifecycleListener.java:137)
        at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalR
esourcesLifecycleListener.java:109)
        at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(Globa
lResourcesLifecycleListener.java:81)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja
va:120)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:693)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Dec 7, 2010 10:13:35 AM
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans
SEVERE: Exception processing Global JNDI Resources
javax.naming.NamingException: IOException writing to
/usr/share/tomcat5/conf/tomcat-users.xml.new
        at org.apache.naming.NamingContext.lookup(NamingContext.java:805)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
        at
org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingCon
textBindingsEnumeration.java:113)
        at
org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnu
meration.java:71)
        at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalR
esourcesLifecycleListener.java:137)
        at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalR
esourcesLifecycleListener.java:109)
        at
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(Globa
lResourcesLifecycleListener.java:81)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja
va:120)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:693)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Dec 7, 2010 10:13:35 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 7, 2010 10:13:35 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23 Dec 7, 2010 10:13:35 AM
org.apache.naming.NamingContext lookup
WARNING: Unexpected exception resolving reference
java.io.IOException: IOException writing to
/usr/share/tomcat5/conf/tomcat-users.xml.new
        at
org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:554)
        at
org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUser
DatabaseFactory.java:104)
        at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java
:140)
        at
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
        at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1006)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Dec 7, 2010 10:13:35 AM org.apache.catalina.realm.UserDatabaseRealm start
SEVERE: Exception looking up UserDatabase under key UserDatabase
javax.naming.NamingException: IOException writing to
/usr/share/tomcat5/conf/tomcat-users.xml.new
        at org.apache.naming.NamingContext.lookup(NamingContext.java:805)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
        at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1006)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Dec 7, 2010 10:13:35 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  No UserDatabase component found under key UserDatabase
        at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:261)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1006)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Dec 7, 2010 10:13:35 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 73 ms


cat /etc/tomcat5/tomcat-users.xml
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="role1" password="tomcat" roles="role1"/> </tomcat-users>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message