从Eclipse启动tomcat出错,好像是权限问题,请指教 (已解决)

软件和网站开发以及相关技术探讨
回复
头像
ydwfo
帖子: 30
注册时间: 2006-08-14 23:51
送出感谢: 0
接收感谢: 0

从Eclipse启动tomcat出错,好像是权限问题,请指教 (已解决)

#1

帖子 ydwfo » 2007-12-10 19:41

从Eclipse里启动我自己安装的tomcat,启动就报错.

代码: 全选

2007-12-10 18:32:09 org.apache.catalina.startup.Catalina load
警告: Can't load server.xml from /opt/tomcat/conf/server.xml
如果在终端里启动还是错,只有加sudo才能正常启动

代码: 全选

touch: 无法 touch ‘/opt/tomcat/logs/catalina.out’: Permission denied
./catalina.sh: 338: cannot create /opt/tomcat/logs/catalina.out: Permission denied
这个tomcat我是放在/opt下面的,我执行了sudo chmod 777 ./tomcat/*都还是不行,到底还要我怎样?

代码: 全选

总用量 33
drwxrwxrwx 2 root root   840 2007-12-10 16:05 bin
drwxrwxrwx 2 root root   280 2007-12-10 16:23 conf
drwxrwxrwx 2 root root   608 2007-12-10 16:05 lib
-rwxrwxrwx 1 root root 11358 2007-07-20 10:20 LICENSE
drwxrwxrwx 2 root root   288 2007-12-10 16:23 logs
-rwxrwxrwx 1 root root   556 2007-07-20 10:20 NOTICE
-rwxrwxrwx 1 root root  6656 2007-07-20 10:20 RELEASE-NOTES
-rwxrwxrwx 1 root root  5682 2007-07-20 10:20 RUNNING.txt
drwxrwxrwx 2 root root    80 2007-12-10 16:05 temp
drwxrwxrwx 7 root root   176 2007-07-20 10:20 webapps
drwxrwxrwx 3 root root    72 2007-12-10 16:23 work
最后问一下/opt到底有什么用,网上没有google到
ATI X1250 + 7.04-desktop-amd64
头像
ydwfo
帖子: 30
注册时间: 2006-08-14 23:51
送出感谢: 0
接收感谢: 0

#2

帖子 ydwfo » 2007-12-11 20:32

代码: 全选

sudo chmod -o+rwx *
其实我就是想问如何递归改变子文件的权限。
ATI X1250 + 7.04-desktop-amd64
头像
yexin218
帖子: 461
注册时间: 2007-08-22 17:36
来自: 澳门
送出感谢: 0
接收感谢: 0
联系:

#3

帖子 yexin218 » 2007-12-11 20:36

right!
我很敏捷,我是网上的蜘蛛;我很茫然,我是网中的猎物!
欢迎到我的Blog※代码回音※
superstar
帖子: 36
注册时间: 2006-06-08 11:12
送出感谢: 0
接收感谢: 0

#4

帖子 superstar » 2007-12-14 9:29

我也是不能从Eclipse启动Tomcat5.5
drwxrwx--- 3 tomcat55 adm 4096 2007-12-10 15:20 Catalina
-rw-r--r-- 1 root root 8270 2007-12-14 08:30 catalina.policy
-rwxrwx--- 1 tomcat55 adm 3114 2007-10-10 04:18 catalina.properties
-rwxrwx--- 1 tomcat55 adm 1157 2007-10-10 04:18 context.xml
-rwxrwx--- 1 tomcat55 adm 3606 2007-10-10 04:18 logging.properties
drwxrwx--- 2 tomcat55 adm 4096 2007-12-11 17:15 policy.d
-rwxrwx--- 1 tomcat55 adm 1678 2007-10-10 04:18 server-minimal.xml
-rwxrwxrwx 1 tomcat55 adm 19452 2007-12-14 08:43 server.xml
-rw-rw---- 1 tomcat55 adm 19336 2007-12-12 09:12 server.xml~
-rwxrwxr-x 1 tomcat55 adm 1 2007-12-10 17:11 server.xml.backup
-rwxrwxr-x 1 tomcat55 adm 19335 2007-12-14 08:43 server.xml.old
lrwxrwxrwx 1 root root 14 2007-12-10 15:20 tomcat5.5 -> /etc/tomcat5.5
-rw-r--r-- 1 tomcat55 nogroup 310 2007-12-14 08:30 tomcat-users.xml
-rwxrwx--- 1 tomcat55 adm 50409 2007-10-10 04:18 web.xml
错误提示:
2007/12/14 上午 09:29:49 org.apache.catalina.startup.Bootstrap main
警告: Bootstrap: command "/usr/share/tomcat5.5/conf/server.xml" does not exist.
mazzy1987
帖子: 1
注册时间: 2008-12-15 11:19
送出感谢: 0
接收感谢: 0

Re: 从Eclipse启动tomcat出错,好像是权限问题,请指教 (已解决)

#5

帖子 mazzy1987 » 2008-12-15 11:20

there is a bug in version 3.2.0 when setting context declaration mode to 'Server.xml', it is fixed in version 3.2.1 (http://www.eclipsetotale.com/tomcatPlugin.html).

换过就好。
回复

回到 “软件/网站开发”