码迷,mamicode.com
首页 > 编程语言 > 详细

java.io.FileNotFoundException: /opt/apache-tomcat-7.0.57/conf/server.xml (权限不够)

时间:2015-01-02 16:04:52      阅读:324      评论:0      收藏:0      [点我收藏+]

标签:linux   ubuntu   64位   tomcat   

1 错误描述

youhaidong@youhaidong:~$ cd /opt/apache-tomcat-7.0.57
youhaidong@youhaidong:/opt/apache-tomcat-7.0.57$ bin/startup.sh
Using CATALINA_BASE:   /opt/apache-tomcat-7.0.57
Using CATALINA_HOME:   /opt/apache-tomcat-7.0.57
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.57/temp
Using JRE_HOME:        /usr/lib/jvm/jdk1.7.0_71/jre
Using CLASSPATH:       /opt/apache-tomcat-7.0.57/bin/bootstrap.jar:/opt/apache-tomcat-7.0.57/bin/tomcat-juli.jar
touch: 无法创建"/opt/apache-tomcat-7.0.57/logs/catalina.out": 权限不够
bin/catalina.sh: 385: bin/catalina.sh: cannot create /opt/apache-tomcat-7.0.57/logs/catalina.out: Permission denied
youhaidong@youhaidong:/opt/apache-tomcat-7.0.57$ bin/shutdown.sh
Using CATALINA_BASE:   /opt/apache-tomcat-7.0.57
Using CATALINA_HOME:   /opt/apache-tomcat-7.0.57
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.57/temp
Using JRE_HOME:        /usr/lib/jvm/jdk1.7.0_71/jre
Using CLASSPATH:       /opt/apache-tomcat-7.0.57/bin/bootstrap.jar:/opt/apache-tomcat-7.0.57/bin/tomcat-juli.jar
一月 02, 2015 3:23:28 下午 org.apache.catalina.startup.Catalina stopServer
严重: Catalina.stop: 
java.io.FileNotFoundException: /opt/apache-tomcat-7.0.57/conf/server.xml (权限不够)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:146)
	at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:466)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:370)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:457)

youhaidong@youhaidong-ThinkPad-Edge-E545:/opt/apache-tomcat-7.0.57$ 

2 错误原因


3 解决办法

java.io.FileNotFoundException: /opt/apache-tomcat-7.0.57/conf/server.xml (权限不够)

标签:linux   ubuntu   64位   tomcat   

原文地址:http://blog.csdn.net/you23hai45/article/details/42341585

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!