cancel
Showing results for 
Search instead for 
Did you mean: 

FileNotFoundException: startup under different user

targa2000
Champ in-the-making
Champ in-the-making
on Windows XP

installed Alfresco 3.2 EE with tomcat under admin user.  Trying to run program under a user without admin rights, a number of errors of displayed on startup related to files not being found.  

Are there issues with installing 3.2EE with one user and running it with another user?   Does a user starting the progam need admin rights? 

Any suggestions?

error messages:

java.io.FileNotFoundException: C:\ALFRES~1\ALFRES~4\tomcat\logs\catalina.2010-01-29.log (Zugriff verweigert)
        at java.io.FileOutputStream.openAppend(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
        at java.io.FileWriter.<init>(FileWriter.java:61)
        at org.apache.juli.FileHandler.open(FileHandler.java:259)
        at org.apache.juli.FileHandler.<init>(FileHandler.java:59)
        at org.apache.juli.FileHandler.<init>(FileHandler.java:50)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:404)
        at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:348)
        at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:239)
        at java.util.logging.LogManager$2.run(LogManager.java:268)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:266)
        at java.util.logging.LogManager.getLogManager(LogManager.java:249)
        at java.util.logging.Logger.<init>(Logger.java:220)
        at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:958)
        at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:955)
        at java.util.logging.LogManager$1.run(LogManager.java:181)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.<clinit>(LogManager.java:158)
        at java.util.logging.Logger.getLogger(Logger.java:273)
        at sun.management.snmp.util.MibLogger.<init>(MibLogger.java:57)
        at sun.management.snmp.util.MibLogger.<init>(MibLogger.java:42)
        at sun.management.jmxremote.ConnectorBootstrap.<clinit>(ConnectorBootstrap.java:760)
        at sun.management.Agent.startAgent(Agent.java:135)
        at sun.management.Agent.startAgent(Agent.java:239)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\ALFRES~1\ALFRES~4\tomcat\logs\localhost.2010-01-29.log (Zugriff verweigert)
        at java.io.FileOutputStream.openAppend(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
        at java.io.FileWriter.<init>(FileWriter.java:61)
        at org.apache.juli.FileHandler.open(FileHandler.java:259)
        at org.apache.juli.FileHandler.<init>(FileHandler.java:59)
        at org.apache.juli.FileHandler.<init>(FileHandler.java:50)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:404)
        at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:348)
        at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:239)
        at java.util.logging.LogManager$2.run(LogManager.java:268)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:266)
        at java.util.logging.LogManager.getLogManager(LogManager.java:249)
        at java.util.logging.Logger.<init>(Logger.java:220)
        at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:958)
        at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:955)
        at java.util.logging.LogManager$1.run(LogManager.java:181)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.<clinit>(LogManager.java:158)
        at java.util.logging.Logger.getLogger(Logger.java:273)
        at sun.management.snmp.util.MibLogger.<init>(MibLogger.java:57)
        at sun.management.snmp.util.MibLogger.<init>(MibLogger.java:42)
        at sun.management.jmxremote.ConnectorBootstrap.<clinit>(ConnectorBootstrap.java:760)
        at sun.management.Agent.startAgent(Agent.java:135)
        at sun.management.Agent.startAgent(Agent.java:239)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\ALFRES~1\ALFRES~4\tomcat\logs\manager.2010-01-29.log (Zugriff verweigert)
        at java.io.FileOutputStream.openAppend(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
        at java.io.FileWriter.<init>(FileWriter.java:61)
        at org.apache.juli.FileHandler.open(FileHandler.java:259)
        at org.apache.juli.FileHandler.<init>(FileHandler.java:59)
        at org.apache.juli.FileHandler.<init>(FileHandler.java:50)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:404)
        at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:348)
        at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:239)
        at java.util.logging.LogManager$2.run(LogManager.java:268)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:266)
        at java.util.logging.LogManager.getLogManager(LogManager.java:249)
        at java.util.logging.Logger.<init>(Logger.java:220)
        at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:958)
        at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:955)
        at java.util.logging.LogManager$1.run(LogManager.java:181)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.<clinit>(LogManager.java:158)
        at java.util.logging.Logger.getLogger(Logger.java:273)
        at sun.management.snmp.util.MibLogger.<init>(MibLogger.java:57)
        at sun.management.snmp.util.MibLogger.<init>(MibLogger.java:42)
        at sun.management.jmxremote.ConnectorBootstrap.<clinit>(ConnectorBootstrap.java:760)
        at sun.management.Agent.startAgent(Agent.java:135)
        at sun.management.Agent.startAgent(Agent.java:239)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\ALFRES~1\ALFRES~4\tomcat\logs\admin.2010-01-29.log (Zugriff verweigert)
        at java.io.FileOutputStream.openAppend(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
        at java.io.FileWriter.<init>(FileWriter.java:61)
        at org.apache.juli.FileHandler.open(FileHandler.java:259)
        at org.apache.juli.FileHandler.<init>(FileHandler.java:59)
        at org.apache.juli.FileHandler.<init>(FileHandler.java:50)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:404)
        at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:348)
        at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:239)
        at java.util.logging.LogManager$2.run(LogManager.java:268)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:266)
        at java.util.logging.LogManager.getLogManager(LogManager.java:249)
        at java.util.logging.Logger.<init>(Logger.java:220)
        at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:958)
        at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:955)
        at java.util.logging.LogManager$1.run(LogManager.java:181)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.<clinit>(LogManager.java:158)
        at java.util.logging.Logger.getLogger(Logger.java:273)
        at sun.management.snmp.util.MibLogger.<init>(MibLogger.java:57)
        at sun.management.snmp.util.MibLogger.<init>(MibLogger.java:42)
        at sun.management.jmxremote.ConnectorBootstrap.<clinit>(ConnectorBootstrap.java:760)
        at sun.management.Agent.startAgent(Agent.java:135)
        at sun.management.Agent.startAgent(Agent.java:239)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\ALFRES~1\ALFRES~4\tomcat\logs\host-manager.2010-01-29.log (Zugriff verweigert)
        at java.io.FileOutputStream.openAppend(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
        at java.io.FileWriter.<init>(FileWriter.java:61)
        at org.apache.juli.FileHandler.open(FileHandler.java:259)
        at org.apache.juli.FileHandler.<init>(FileHandler.java:59)
        at org.apache.juli.FileHandler.<init>(FileHandler.java:50)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:404)
        at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:348)
        at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:239)
        at java.util.logging.LogManager$2.run(LogManager.java:268)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:266)
        at java.util.logging.LogManager.getLogManager(LogManager.java:249)
        at java.util.logging.Logger.<init>(Logger.java:220)
        at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:958)
        at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:955)
        at java.util.logging.LogManager$1.run(LogManager.java:181)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.util.logging.LogManager.<clinit>(LogManager.java:158)
        at java.util.logging.Logger.getLogger(Logger.java:273)
        at sun.management.snmp.util.MibLogger.<init>(MibLogger.java:57)
        at sun.management.snmp.util.MibLogger.<init>(MibLogger.java:42)
        at sun.management.jmxremote.ConnectorBootstrap.<clinit>(ConnectorBootstrap.java:760)
        at sun.management.Agent.startAgent(Agent.java:135)
        at sun.management.Agent.startAgent(Agent.java:239)
29.01.2010 14:25:57 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
29.01.2010 14:25:57 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1148 ms
29.01.2010 14:25:57 org.apache.naming.NamingContext lookup
WARNUNG: Unexpected exception resolving reference
java.io.FileNotFoundException: C:\ALFRES~1\ALFRES~4\tomcat\conf\tomcat-users.xml.new (Zugriff verweigert)
        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:521)
        at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:104)
        at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
        at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
        at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
        at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
        at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
        at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
        at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        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:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
29.01.2010 14:25:57 org.apache.catalina.mbeans.GlobalResourcesLifecycleListener createMBeans
SCHWERWIEGEND: Exception processing Global JNDI Resources
javax.naming.NamingException: C:\ALFRES~1\ALFRES~4\tomcat\conf\tomcat-users.xml.new (Zugriff verweigert)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:805)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
        at org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
        at org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
        at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
        at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
        at org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        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:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
29.01.2010 14:25:57 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
29.01.2010 14:25:57 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
29.01.2010 14:25:57 org.apache.naming.NamingContext lookup
WARNUNG: Unexpected exception resolving reference
java.io.FileNotFoundException: C:\ALFRES~1\ALFRES~4\tomcat\conf\tomcat-users.xml.new (Zugriff verweigert)
        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:521)
        at org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:104)
        at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)
        at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
        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:1037)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        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:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
29.01.2010 14:25:57 org.apache.catalina.realm.UserDatabaseRealm start
SCHWERWIEGEND: Exception looking up UserDatabase under key UserDatabase
javax.naming.NamingException: C:\ALFRES~1\ALFRES~4\tomcat\conf\tomcat-users.xml.new (Zugriff verweigert)
        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:1037)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        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:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
29.01.2010 14:25:57 org.apache.catalina.startup.Catalina start
SCHWERWIEGEND: 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:1037)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        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:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
29.01.2010 14:25:57 org.apache.catalina.startup.Catalina start
INFO: Server startup in 265 ms
1 REPLY 1

mrogers
Star Contributor
Star Contributor
The user running alfresco does not need admin rights unless they want to use restricted resources like unix's ports under 1000.     However if you start up alfresco as one user it will create the content store and log files as that user.   If you then switch user it must have access to the content created by the first user.  

You should probably run alfresco with its own account only so you can secure the content store properly.