问题描述
2011-3-2523:33:47org.apache.catalina.core.AprLifecycleListenerinit信息:LoadedApacheTomcatNativelibrary1.1.10.2011-3-2523:33:47org.apache.catalina.core.AprLifecycleListenerinit信息:APRcapabilities:IPv6[false],sendfile[true],acceptfilters[false],random[true].2011-3-2523:33:48org.apache.coyote.http11.Http11AprProtocolinit信息:InitializingCoyoteHTTP/1.1onhttp-90802011-3-2523:33:48org.apache.coyote.ajp.AjpAprProtocolinit信息:InitializingCoyoteAJP/1.3onajp-80092011-3-2523:33:48org.apache.catalina.startup.Catalinaload信息:Initializationprocessedin1530ms2011-3-2523:33:48org.apache.naming.NamingContextlookup警告:Unexpectedexceptionresolvingreferencejava.io.FileNotFoundException:C:ProgramFilesApacheSoftwareFoundationTomcat6.0conftomcat-users.xml.new(拒绝访问。)atjava.io.FileOutputStream.open(NativeMethod)atjava.io.FileOutputStream.<init>(FileOutputStream.java:179)atjava.io.FileOutputStream.<init>(FileOutputStream.java:131)atorg.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:521)atorg.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:104)atorg.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)atjavax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)atorg.apache.naming.NamingContext.lookup(NamingContext.java:793)atorg.apache.naming.NamingContext.lookup(NamingContext.java:140)atorg.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)atorg.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)atorg.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)atorg.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)atorg.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:703)atorg.apache.catalina.startup.Catalina.start(Catalina.java:566)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-3-2523:33:48org.apache.catalina.mbeans.GlobalResourcesLifecycleListenercreateMBeans严重:ExceptionprocessingGlobalJNDIResourcesjavax.naming.NamingException:C:ProgramFilesApacheSoftwareFoundationTomcat6.0conftomcat-users.xml.new(拒绝访问。)atorg.apache.naming.NamingContext.lookup(NamingContext.java:805)atorg.apache.naming.NamingContext.lookup(NamingContext.java:140)atorg.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)atorg.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)atorg.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)atorg.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)atorg.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:703)atorg.apache.catalina.startup.Catalina.start(Catalina.java:566)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-3-2523:33:48org.apache.catalina.core.StandardServicestart信息:StartingserviceCatalina2011-3-2523:33:48org.apache.catalina.core.StandardEnginestart信息:StartingServletEngine:ApacheTomcat/6.0.142011-3-2523:33:48org.apache.naming.NamingContextlookup警告:Unexpectedexceptionresolvingreferencejava.io.FileNotFoundException:C:ProgramFilesApacheSoftwareFoundationTomcat6.0conftomcat-users.xml.new(拒绝访问。)atjava.io.FileOutputStream.open(NativeMethod)atjava.io.FileOutputStream.<init>(FileOutputStream.java:179)atjava.io.FileOutputStream.<init>(FileOutputStream.java:131)atorg.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDatabase.java:521)atorg.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInstance(MemoryUserDatabaseFactory.java:104)atorg.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:140)atjavax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)atorg.apache.naming.NamingContext.lookup(NamingContext.java:793)atorg.apache.naming.NamingContext.lookup(NamingContext.java:153)atorg.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)atorg.apache.catalina.core.StandardService.start(StandardService.java:516)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:566)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-3-2523:33:48org.apache.catalina.realm.UserDatabaseRealmstart严重:ExceptionlookingupUserDatabaseunderkeyUserDatabasejavax.naming.NamingException:C:ProgramFilesApacheSoftwareFoundationTomcat6.0conftomcat-users.xml.new(拒绝访问。)atorg.apache.naming.NamingContext.lookup(NamingContext.java:805)atorg.apache.naming.NamingContext.lookup(NamingContext.java:153)atorg.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:253)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)atorg.apache.catalina.core.StandardService.start(StandardService.java:516)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:566)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-3-2523:33:48org.apache.catalina.startup.Catalinastart严重:Catalina.start:LifecycleException:NoUserDatabasecomponentfoundunderkeyUserDatabaseatorg.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:261)atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1037)atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)atorg.apache.catalina.core.StandardService.start(StandardService.java:516)atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)atorg.apache.catalina.startup.Catalina.start(Catalina.java:566)atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)atjava.lang.reflect.Method.invoke(Method.java:597)atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)2011-3-2523:33:48org.apache.catalina.startup.Catalinastart信息:Serverstartupin79ms是不是我的变量修改有问题,希望有会的强人指点一下,搞了很久很崩溃了,开始以为端口被占用,可是查了查没有,不过我还是改了可还是不行
解决方案
解决方案二:
引用楼主gaoqian8864的回复:
警告:Unexpectedexceptionresolvingreferencejava.io.FileNotFoundException:C:ProgramFilesApacheSoftwareFoundationTomcat6.0conftomcat-users.xml.new(拒绝访问。)
操作系统没有给Eclipse访问这个文件的权限。LZ可以下一个解压版的Tomcat,解压到非系统盘(如D盘)某目录中使用。
解决方案三:
引用1楼magong的回复:
引用楼主gaoqian8864的回复:警告:Unexpectedexceptionresolvingreferencejava.io.FileNotFoundException:C:ProgramFilesApacheSoftwareFoundationTomcat6.0conftomcat-users.xml.new(拒绝访问。)操作系统没有给……
顶一下
解决方案四:
引用楼主gaoqian8864的回复:
2011-3-2523:33:47org.apache.catalina.core.AprLifecycleListenerinit信息:LoadedApacheTomcatNativelibrary1.1.10.2011-3-2523:33:47org.apache.catalina.core.AprLifecycleListenerinit信息:APRc……
这样子啊··那系统在哪可以修改这个权限吗?
解决方案五:
java.io.FileNotFoundException:C:ProgramFilesApacheSoftwareFoundationTomcat6.0conftomcat-users.xml.new(拒绝访问。)
tomcat里面有tomcat-users.xml.new这个文件吗?我的只有tomcat-users.xml。。。。。。。