我们将.WAR文件放在Tomcat的webapp文件夹中后发生此错误。然后我们尝试转到以下链接:
http:// localhost:port / ProjectName / console
但是发生了404错误。当我们停止Tomcat服务器重新启动它时,我们无法再启动Tomcat服务器。发生以下情况表明:
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\Administrator>"C:\Program Files\Apache Software Foundation\Tomcat 8.0\b
in\Tomcat8.exe"
11-Sep-2014 19:02:44.775 INFO [main] org.apache.catalina.core.AprLifecycleListen
er.init Loaded APR based Apache Tomcat Native library 1.1.31 using APR version 1
.4.8.
11-Sep-2014 19:02:44.779 INFO [main] org.apache.catalina.core.AprLifecycleListen
er.init APR capabilities: IPv6 [true], sendfile [true], accept filters [false],
random [true].
11-Sep-2014 19:02:45.201 SEVERE [main] org.apache.tomcat.util.digester.Digester.
startElement Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.loader.VirtualWebappLoade
r
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRu
le.java:116)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1
184)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startEle
ment(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.
emptyElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1457)
at org.apache.catalina.startup.Catalina.load(Catalina.java:551)
at org.apache.catalina.startup.Catalina.load(Catalina.java:599)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)
11-Sep-2014 19:02:45.217 WARNING [main] org.apache.catalina.startup.Catalina.loa
d Catalina.start using conf/server.xml: Error at (215, 187) : org.apache.catalin
a.loader.VirtualWebappLoader
11-Sep-2014 19:02:45.243 SEVERE [main] org.apache.tomcat.util.digester.Digester.
startElement Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.loader.VirtualWebappLoade
r
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRu
le.java:116)
at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1
184)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startEle
ment(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.
emptyElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1457)
at org.apache.catalina.startup.Catalina.load(Catalina.java:551)
at org.apache.catalina.startup.Catalina.start(Catalina.java:613)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)
11-Sep-2014 19:02:45.258 WARNING [main] org.apache.catalina.startup.Catalina.loa
d Catalina.start using conf/server.xml: Error at (215, 187) : org.apache.catalin
a.loader.VirtualWebappLoader
11-Sep-2014 19:02:45.261 SEVERE [main] org.apache.catalina.startup.Catalina.star
t Cannot start server. Server instance is not configured.
C:\Users\Administrator>
我也注意到这一行错误:
11-Sep-2014 19:02:45.258 WARNING [main] org.apache.catalina.startup.Catalina.loa
d Catalina.start using conf/server.xml: Error at (215, 187) : org.apache.catalin
a.loader.VirtualWebappLoader
但是当我们检查文件是否丢失时,文件仍然存在。
我们错过了什么吗?
注意:
答案 0 :(得分:0)
您在评论中提供的链接指向Worklight 5.0.6,而您使用的是Worklight 6.2;您应该使用Worklight版本的正确说明。这里:http://www-01.ibm.com/support/knowledgecenter/SSZH4A_6.2.0/com.ibm.worklight.deploy.doc/admin/c_manually_configuring_app_server.html?lang=en
此外,我认为这可能只是使用错误的URL的问题。
在Worklight 6.2中,Worklight Console URL实际上是http://domain:port/worklightconsole
试试这个网址。