Mailinglist Archive: opensuse (5130 mails)

< Previous Next >
Problem with Tomcat 5.0
  • From: "George Stoianov" <gstoyanoff@xxxxxxxxx>
  • Date: Thu, 18 May 2006 11:32:26 -0400
  • Message-id: <e0b842610605180832r29b64041wdf0e68cabdbfc0dd@xxxxxxxxxxxxxx>
Hi guys,

I am having a problem with Tomcat on SuSE 10.0 namely it will not start:

WARNING: Unexpected exception resolving reference
java.io.FileNotFoundException:
/usr/share/tomcat5/conf/tomcat-users.xml.new (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:462)
at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:98)
at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:129)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
at org.apache.naming.NamingContext.lookup(NamingContext.java:791)
at org.apache.naming.NamingContext.lookup(NamingContext.java:151)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:155)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:125)
at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:97)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2306)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
May 18, 2006 10:58:43 AM
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
createMBeans

I have not made any changes to that file and the permissions on the
file which the error is complaining about are set to:

ls -l /srv/www/tomcat5/base/conf/
total 96
drwxr-xr-x 3 root root 4096 2006-05-08 19:33 Catalina
-rw-r--r-- 1 tomcat tomcat 6954 2005-09-12 22:20 catalina.policy
-rw-r--r-- 1 tomcat tomcat 2754 2005-09-12 22:20 catalina.properties
-rw-r--r-- 1 tomcat tomcat 778 2005-09-12 22:20 jk2.properties
-rw-r--r-- 1 tomcat tomcat 1128 2005-09-12 22:20 server-minimal.xml
-rw-r--r-- 1 tomcat tomcat 21367 2006-03-03 09:03 server.xml
-rw-r--r-- 1 tomcat tomcat 2254 2006-02-13 15:20 server.xml.new
-rw-r--r-- 1 tomcat tomcat 432 2006-05-10 08:48 tomcat-users.xml
-rw-r--r-- 1 tomcat tomcat 38929 2005-09-12 22:20 web.xml

the conf is a symlink with the following permissions:

ls -l /srv/www/tomcat5/base/conf
lrwxrwxrwx 1 root root 17 2005-11-08 10:12 /srv/www/tomcat5/base/conf
-> /etc/tomcat5/base

my base looks like this:

ls -l /srv/www/tomcat5/base/
total 4
lrwxrwxrwx 1 root root 17 2005-11-08 10:12 conf -> /etc/tomcat5/base
lrwxrwxrwx 1 root root 21 2005-11-08 10:12 logs -> /var/log/tomcat5/base
lrwxrwxrwx 1 root root 28 2005-11-08 10:12 temp ->
/var/cache/tomcat5/base/temp
drwxr-xr-x 11 root root 4096 2006-05-18 10:58 webapps
lrwxrwxrwx 1 root root 28 2005-11-08 10:12 work ->
/var/cache/tomcat5/base/work

I have 2 servers that have the same problem, is anyone else
experiencing this??? It used to work maybe a few days ago and I have
made some updates since then now it does not.

Thanks.
George

< Previous Next >
Follow Ups