简体   繁体   English

无法连接到tomcat7

[英]Unable to connect to tomcat7

I deployed a new version of a .war file and the tomcat7 is also running fine as status shows me:我部署了一个新版本的 .war 文件,tomcat7 也运行良好,状态显示给我:

root@s17298254:/var/lib/tomcat7/webapps# service tomcat7 status
 * Tomcat servlet engine is running with pid 11331

Now the question is that neither I am able to view the website, nor I am able to view the manager interface in my web browser.现在的问题是,我既无法查看网站,也无法在 Web 浏览器中查看管理器界面。 Please note that its in production environment that I am using this tomcat instance.请注意,我在生产环境中使用了这个 tomcat 实例。 What could be the reason?可能是什么原因?

I have tried many things like running tomcat as root user previlages(although a disaster recepie, but atleast to make things work temporarily), putting我已经尝试了很多事情,比如以 root 用户权限运行 tomcat(虽然是灾难接收者,但至少可以让事情暂时工作),把

useIPVHosts="true"

under <Connector> etc. Here is my catalina.out:<Connector>等下。这是我的 catalina.out:

Mar 12, 2014 7:04:24 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server:/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64:/usr/lib/jvm/java-6-openjdk-amd64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
Mar 12, 2014 7:04:25 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'xmlValidation' to 'false' did not find a matching property.
Mar 12, 2014 7:04:25 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'xmlNamespaceAware' to 'false' did not find a matching property.
Mar 12, 2014 7:04:25 AM org.apache.tomcat.util.digester.Digester endElement
WARNING:   No rules found matching 'Server/Service/Engine/Host/Logger'.
Mar 12, 2014 7:04:25 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-80"]
Mar 12, 2014 7:04:25 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Mar 12, 2014 7:04:25 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2038 ms
Mar 12, 2014 7:04:25 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 12, 2014 7:04:25 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.26
Mar 12, 2014 7:04:26 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/var/lib/tomcat7/webapps/camriders/WEB-INF/lib/servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Mar 12, 2014 7:04:27 AM org.apache.catalina.startup.TaglibUriRule body
INFO: TLD skipped. URI: http://www.springframework.org/tags is already defined
Mar 12, 2014 7:04:31 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext

It does not show me anything pathogenic.So what could be the cause that my website is now no longer working?它没有向我显示任何致病性。那么我的网站现在不再工作的原因可能是什么?

EDIT:编辑:

The error when i type in browser mywebsite.mydomain.net is:我在浏览器中输入 mywebsite.mydomain.net 时的错误是:

Firefox can't establish a connection to the server at mywebsite.mydomain.net. Firefox 无法与位于 mywebsite.mydomain.net 的服务器建立连接。 Similar with google chrome.与谷歌浏览器类似。

在 tomcat 7 中,在上下文元素下使用“xmlValidation”和“xmlNamespaceAware”。

<Context path="" docBase="ROOT" xmlValidation="false" xmlNamespaceAware="false"/>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM