我正在尝试在Centos6服务器上安装OpenEMM。我已经正确安装了Tomcat和Java SDK,并且当我自己启动它时,Tomcat在8080运行正常,但是当我启动OpenEMM时,它不能在端口8080上的Tomcat中打开 - 我收到错误
Firefox无法与服务器建立连接 WWW [myurl] .COM:8080
当我从ssh命令行启动OpenEMM时,我得到以下内容。我没有sendmail工作,所以我已经禁用它。从服务器的响应中可以看出它正在启动。
$ bin/openemm.sh start
Start /home/openemm/bin/scripts/bav-update.py .. done.
Start /home/openemm/bin/scripts/bav-trigger.py .. done.
Start /home/openemm/bin/scripts/bavd.py .. done.
Start /home/openemm/bin/bav -L INFO .. done.
Start python /home/openemm/bin/scripts/recovery.py .. done.
Start /home/openemm/bin/scripts/update.py account bounce .. done.
Start /home/openemm/bin/scripts/pickdist.py .. done.
Start /home/openemm/bin/scripts/semu.py .. done.
Start /home/openemm/bin/scripts/slrtscn.py .. done.
Starting up Tomcat ......
Check Java installation :OK
Check Tomcat installation :OK
Using CATALINA_BASE: /home/openemm
Using CATALINA_HOME: /opt/openemm/tomcat
Using CATALINA_TMPDIR: /home/openemm/temp
Using JRE_HOME: /opt/openemm/java
Using CLASSPATH: /opt/openemm/tomcat/bin/bootstrap.jar:/opt/openemm/tomcat/bin/tomcat-juli.jar
当我停止OpenEMM时,我得到以下内容。有趣的是,停止序列表明Tomcat没有运行。这里发生了什么?
$ bin/openemm.sh stop
No Tomcat is running.
Stop scripts/slrtscn.py program .. done.
Stop scripts/semu.py program .. done.
Stop scripts/pickdist program .. done.
Stop scripts/update.py program .. done.
Stop bin/bav program with signal 15 .. done.
Stop bin/bav program with signal 9 .. done.
Stop scripts/bavd program .. done.
Stop scripts/bav-trigger program with signal 15 .. done.
Stop scripts/bav-update program with signal 15 .. done.
以下是来自/ home / openemm / tomcat / logs文件夹的日志:
来自catalina.2013-10-12.log:
Oct 12, 2013 9:00:22 AM org.apache.catalina.startup.Catalina load
WARNING: Catalina.start using conf/server.xml: Error at (24, 78) : org.apache.catalina.mbeans.ServerLifecycleListener
Oct 12, 2013 9:00:22 AM org.apache.tomcat.util.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.mbeans.ServerLifecycleListener
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:116)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1176)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:506)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1347)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2768)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:846)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:775)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1210)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:628)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1449)
at org.apache.catalina.startup.Catalina.load(Catalina.java:582)
at org.apache.catalina.startup.Catalina.start(Catalina.java:646)
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.start(Bootstrap.java:357)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:491)
Oct 12, 2013 9:00:22 AM org.apache.catalina.startup.Catalina load
WARNING: Catalina.start using conf/server.xml: Error at (24, 78) : org.apache.catalina.mbeans.ServerLifecycleListener
Oct 12, 2013 9:00:22 AM org.apache.catalina.startup.Catalina start
SEVERE: Cannot start server. Server instance is not configured.
答案 0 :(得分:1)
我假设您的意思是Apache Tomcat 8.0.0-RC1。注意RC3是可用的,RC4应该在下周出来(假设我可以跟踪并快速修复剩下的一个问题)。
问题是您正在使用Tomcat 6.0.x中的server.xml文件(或可能更早),并且它包含对在以后版本中删除的组件的引用。你最好从Tomcat 8开始使用干净的server.xml并添加你需要的东西。
另一个选项是一次修复每个错误,直到Tomcat启动。第一个错误的修复是完全删除了ServerLifecycleListener。