| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 3157 人关注过本帖
标题:关于Vista启动TOMCAT错误问题java.io.IOException: Cannot rename original ...
只看楼主 加入收藏
qiming7gbbs
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2008-10-1
收藏
 问题点数:0 回复次数:4 
关于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
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
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


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 
2008-10-01 01:46
恋轩念伊人
Rank: 5Rank: 5
来 自:湖南衡阳
等 级:贵宾
威 望:19
帖 子:643
专家分:0
注 册:2008-2-23
收藏
得分:0 
朋友,我老师特别对我们说,不要用vista系统来做这个,我都改拉

我不是一个随便的人,我随便起来不是人我哦。信不?
2008-10-06 18:17
huwangvs
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:34
帖 子:764
专家分:0
注 册:2007-2-4
收藏
得分:0 
这个应该是vista所谓的权限限置惹的祸吧。
跑不起那个庞然大物
2008-10-07 09:17
guoxhvip
Rank: 8Rank: 8
来 自:聖西羅南看臺
等 级:贵宾
威 望:44
帖 子:4052
专家分:135
注 册:2006-10-8
收藏
得分:0 
建议你还是装回xp

愛生活 && 愛編程
2008-10-07 22:57
快速回复:关于Vista启动TOMCAT错误问题java.io.IOException: Cannot rename ori ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.054541 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved