我使用的ubuntu 9.10和我使用包管理器安装的Java和Tomcat。当我去运行startup.sh,它首先抱怨catalina.out的不在那里,而不是被写入。我固定的,并没有抱怨有关(不包括在安装??为什么),现在,它的抱怨不是server.xml中有,当我关闭服务器。下面是从命令行我的输出:

user@desktop:/usr/share/tomcat6$ ./bin/startup.sh 
Using CATALINA_BASE:   /usr/share/tomcat6
Using CATALINA_HOME:   /usr/share/tomcat6
Using CATALINA_TMPDIR: /usr/share/tomcat6/temp
Using JRE_HOME:       /usr/lib/jvm/java-6-sun-1.6.0.15
user@desktop:/usr/share/tomcat6$ ./bin/shutdown.sh
Using CATALINA_BASE:   /usr/share/tomcat6
Using CATALINA_HOME:   /usr/share/tomcat6
Using CATALINA_TMPDIR: /usr/share/tomcat6/temp
Using JRE_HOME:       /usr/lib/jvm/java-6-sun-1.6.0.15
Dec 11, 2009 4:42:57 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop: 
java.io.FileNotFoundException: /usr/share/tomcat6/conf/server.xml (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:407)
    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:597)
    at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:337)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
user@desktop:/usr/share/tomcat6$

我真的很新的到tomcat所以这可能是一个愚蠢的问题,但为什么没有一个样品的server.xml中新安装Tomcat的?我可以把那里关起来......哪怕它只是一个存根和+1任何一个谁可以给我解释一下这个文件的结构?

有帮助吗?

解决方案

尝试使用位于server.xml中:

/etc/tomcat6/server.xml

server.xml中为应用程序服务器的配置文件。它包含了像什么端口的东西是服务器要听的,这里是正在部署的应用程序,以及其他相关的东西。

其他提示

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top