当前位置: 代码迷 >> Java Web开发 >> 关于Vista启动TOMCAT错误问题java.io.IOException: Cannot rename original ...
  详细解决方案

关于Vista启动TOMCAT错误问题java.io.IOException: Cannot rename original ...

热度:969   发布时间:2008-10-01 01:46:38.0
关于Vista启动TOMCAT错误问题java.io.IOException: Cannot rename original file to
刚刚安装了Vista

配置好SSH

发生如下错误

解决方法如下:(最后)

2008-9-30 17:25:11 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal

performance in production environments was not found on the

java.library.path: D:\Program Files\Java\jdk1.6.0\bin;D:\Program

Files\Apache Software Foundation\Tomcat 6.0\bin
2008-9-30 17:25:12 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-8080
2008-9-30 17:25:12 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 668 ms
2008-9-30 17:25:12 org.apache.naming.NamingContext lookup
警告: Unexpected exception resolving reference
java.io.IOException: Cannot rename original file to D:\Program

Files\Apache Software Foundation\Tomcat 6.0\conf\tomcat-users.xml.old
    at org.apache.catalina.users.MemoryUserDatabase.save

(MemoryUserDatabase.java:582)
    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.nextElementInterna

l(NamingContextBindingsEnumeration.java:113)
    at org.apache.naming.NamingContextBindingsEnumeration.next

(NamingContextBindingsEnumeration.java:71)
    at

org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBe

ans(GlobalResourcesLifecycleListener.java:137)
    at

org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBe

ans(GlobalResourcesLifecycleListener.java:109)
    at

org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycle

Event(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:589)
    at org.apache.catalina.startup.Bootstrap.start

(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main

(Bootstrap.java:413)
2008-9-30 17:25:12

org.apache.catalina.mbeans.GlobalResourcesLifecycleListener

createMBeans
严重: Exception processing Global JNDI Resources
javax.naming.NamingException: Cannot rename original file to

D:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\tomcat-

users.xml.old
    at org.apache.naming.NamingContext.lookup

(NamingContext.java:805)
    at org.apache.naming.NamingContext.lookup

(NamingContext.java:140)
    at

org.apache.naming.NamingContextBindingsEnumeration.nextElementInterna

l(NamingContextBindingsEnumeration.java:113)
    at org.apache.naming.NamingContextBindingsEnumeration.next

(NamingContextBindingsEnumeration.java:71)
    at

org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBe

ans(GlobalResourcesLifecycleListener.java:137)
    at

org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBe

ans(GlobalResourcesLifecycleListener.java:109)
    at

org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycle

Event(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:589)
    at org.apache.catalina.startup.Bootstrap.start

(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main

(Bootstrap.java:413)
2008-9-30 17:25:12 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2008-9-30 17:25:12 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.16
2008-9-30 17:25:12 org.apache.naming.NamingContext lookup
警告: Unexpected exception resolving reference
java.io.IOException: Cannot rename original file to D:\Program

Files\Apache Software Foundation\Tomcat 6.0\conf\tomcat-users.xml.old
    at org.apache.catalina.users.MemoryUserDatabase.save

(MemoryUserDatabase.java:582)
    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:589)
    at org.apache.catalina.startup.Bootstrap.start

(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main

(Bootstrap.java:413)
2008-9-30 17:25:12 org.apache.catalina.realm.UserDatabaseRealm start
严重: Exception looking up UserDatabase under key UserDatabase
javax.naming.NamingException: Cannot rename original file to

D:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\tomcat-

users.xml.old
    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:589)
    at org.apache.catalina.startup.Bootstrap.start

(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main

(Bootstrap.java:413)
2008-9-30 17:25:12 org.apache.catalina.startup.Catalina start
严重: 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:589)
    at org.apache.catalina.startup.Bootstrap.start

(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main

(Bootstrap.java:413)
2008-9-30 17:25:12 org.apache.catalina.startup.Catalina start
信息: Server startup in 191 ms


java.io.IOException: Cannot rename original file to D:\Program

Files\Apache Software Foundation\Tomcat 6.0\conf\tomcat-users.xml.old
由此可见是因为 JAVA IO 出的错误

解决方法 :
找到D:\Program Files\Apache Software Foundation\Tomcat 6.0\conf
把conf文件夹设置为完全控制(右键属性-安全-找到当前登录名-下面选择完全控

制)
保存就可以了
在启动TOMCAT
搜索更多相关主题的帖子: TOMCAT  Vista  java  Cannot  IOException  

----------------解决方案--------------------------------------------------------
朋友,我老师特别对我们说,不要用vista系统来做这个,我都改拉
----------------解决方案--------------------------------------------------------
这个应该是vista所谓的权限限置惹的祸吧。
跑不起那个庞然大物
----------------解决方案--------------------------------------------------------
建议你还是装回xp
----------------解决方案--------------------------------------------------------
  相关解决方案