我正在尝试在 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.