回1楼nashlei的帖子
这个试过了,不得行。
用的是系统自带的tomcat,是否需要自己重新安装呢?
-------------------------
ReCentos主机,请问怎么发布war包啊
完整的server.xml如下(已删除部分注释),求支援
<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
<Listener className="org.apache.catalina.core.JasperListener" />
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Host name="114.215.157.97" appBase="/var/tomcat/tomcat-7/webapps/moas"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="." />
<Context path="/moas" docBase="." />
</Host>
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
</Realm>
</Engine>
</Service>
</Server>
-------------------------
回4楼nashlei的帖子
重启过,端口也改过,都不行
-------------------------
回6楼nashlei的帖子
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
WARNING: Unknown default host [localhost] for connector [Connector[HTTP/1.1-8080]]
貌似有错的样子,这又是啥情况呢?
上面的server.xml这样改了也有问题
<Engine name="Catalina" defaultHost="localhost">
→
<Engine name="Catalina" defaultHost="114.215.157.97">
-------------------------
ReCentos主机,请问怎么发布war包啊
好吧,我2了,之前是因为没有开放8080端口。
开放之后,是出现404的错误,还是没能解决...
-------------------------
ReCentos主机,请问怎么发布war包啊
问题解决了,是系统自带的tomcat的问题,我重新安装了一个就可以了
真是坑啊