WebService's CXF comment error (i)

Source: Internet
Author: User
Tags parse error apache tomcat

CXF Annotation of WebService


1, detailed error such as the following

Usage:java Org.apache.catalina.startup.Catalina [-config {pathname}] [-nonaming] {-help | start | stop}2014-5-4 22 : 42:12 org.apache.catalina.core.AprLifecycleListener init info: Loaded APR based Apache Tomcat Native Library 1.1.27 using AP R version 1.4.6.2014-5-4 22:42:12 org.apache.catalina.core.AprLifecycleListener init info: APR Capabilities:ipv6 [true], Sendfile [true], accept filters [FALSE], random [true].2014-5-4 22:42:14 Org.apache.catalina.core.AprLifecycleListener Initializessl Info: OpenSSL successfully initialized (OpenSSL 1.0.1d 5 Feb 2013) 2014-5-4 22:42:15 Org.apache.coyote.AbstractProtocol init info: Initializing protocolhandler ["http-apr-8686"]2014-5-4 22:42:15 Org.apache.coyote.AbstractProtocol init info: Initializing protocolhandler ["ajp-apr-8009"]2014-5-4 22:42:15 Org.apache.catalina.startup.Catalina Load Info: Initialization processed in 4063 ms2014-5-4 22:42:15 Org.apache.catalina.core.StandardService startinternal Info: Starting service catalina2014-5-4 22:42:15 Org.apache.Catalina.core.StandardEngine startinternal Info: Starting Servlet engine:apache tomcat/7.0.412014-5-4 22:42:16 Org.apache.catalina.loader.WebappClassLoader validatejarfile Info: validatejarfile (D:\MyEclipse\workspace\ Webservice\webroot\web-inf\lib\geronimo-servlet_2.5_spec-1.1.2.jar)-jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:javax/servlet/servlet.class2014-5-4 22:42:16 Org.apache.catalina.loader.WebappClassLoader Validatejarfile Information: Validatejarfile (D:\MyEclipse\workspace\Webservice\WebRoot\WEB-INF\lib\geronimo-servlet_3.0_ Spec-1.0.jar)-jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:javax/servlet/servlet.class2014-5-4 22:42:16 Org.apache.tomcat.util.digester.Digester fatalerror Serious : Parse Fatal Error at line-column 3:the markup in the document following the root element must be Well-formed.org.xml . Sax. Saxparseexception:the markup in the document following the root element must is well-formed.at com.sun.org.apache.xerces. Internal.util.eRrorhandlerwrapper.createsaxparseexception (errorhandlerwrapper.java:195) at Com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError (errorhandlerwrapper.java:174) at Com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError (xmlerrorreporter.java:388) at Com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError (xmlscanner.java:1411) at Com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl$trailingmiscdriver.next ( xmldocumentscannerimpl.java:1418) at Com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next ( xmldocumentscannerimpl.java:648) at Com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument ( xmldocumentfragmentscannerimpl.java:510) at Com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse ( xml11configuration.java:807) at Com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse ( xml11configuration.java:737) at Com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (xmlparser.java:107) atCom.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (abstractsaxparser.java:1205) at Com.sun.org.apache.xerces.internal.jaxp.saxparserimpl$jaxpsaxparser.parse (saxparserimpl.java:522) at Org.apache.tomcat.util.digester.Digester.parse (digester.java:1537) at ORG.APACHE.CATALINA.STARTUP.CONTEXTCONFIG.PARSEWEBXML (contextconfig.java:1883) at Org.apache.catalina.startup.ContextConfig.webConfig (contextconfig.java:1252) at Org.apache.catalina.startup.ContextConfig.configureStart (contextconfig.java:878) at Org.apache.catalina.startup.ContextConfig.lifecycleEvent (contextconfig.java:376) at Org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (lifecyclesupport.java:119) at Org.apache.catalina.util.LifecycleBase.fireLifecycleEvent (lifecyclebase.java:90) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5269) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150) at org.apache.catalina.core.containerbase$ Startchild.call (containerbase.java:1559)At Org.apache.catalina.core.containerbase$startchild.call (containerbase.java:1549) at Java.util.concurrent.futuretask$sync.innerrun (futuretask.java:303) at Java.util.concurrent.FutureTask.run ( futuretask.java:138) at Java.util.concurrent.threadpoolexecutor$worker.runtask (threadpoolexecutor.java:886) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:908) at Java.lang.Thread.run ( thread.java:619) 2014-5-4 22:42:16 org.apache.catalina.startup.ContextConfig parsewebxml severity: Parse Error in application Web. xml file at Jndi:/localhost/webservice/web-inf/web.xmlorg.xml.sax.saxparseexception:the markup in the document Following the root element must be well-formed.at Com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException (Errorhandlerwrapper.java : 195) at Com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError (errorhandlerwrapper.java:174) at Com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError (xmlerrorreporter.java:388)At Com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError (xmlscanner.java:1411) at Com.sun.org.apache.xerces.internal.impl.xmldocumentscannerimpl$trailingmiscdriver.next ( xmldocumentscannerimpl.java:1418) at Com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next ( xmldocumentscannerimpl.java:648) at Com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument ( xmldocumentfragmentscannerimpl.java:510) at Com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse ( xml11configuration.java:807) at Com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse ( xml11configuration.java:737) at Com.sun.org.apache.xerces.internal.parsers.XMLParser.parse (xmlparser.java:107) at Com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse (abstractsaxparser.java:1205) at Com.sun.org.apache.xerces.internal.jaxp.saxparserimpl$jaxpsaxparser.parse (saxparserimpl.java:522) at Org.apache.tomcat.util.digester.Digester.parse (digester.java:1537) at Org.apACHE.CATALINA.STARTUP.CONTEXTCONFIG.PARSEWEBXML (contextconfig.java:1883) at Org.apache.catalina.startup.ContextConfig.webConfig (contextconfig.java:1252) at Org.apache.catalina.startup.ContextConfig.configureStart (contextconfig.java:878) at Org.apache.catalina.startup.ContextConfig.lifecycleEvent (contextconfig.java:376) at Org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (lifecyclesupport.java:119) at Org.apache.catalina.util.LifecycleBase.fireLifecycleEvent (lifecyclebase.java:90) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5269) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150) at org.apache.catalina.core.containerbase$ Startchild.call (containerbase.java:1559) at Org.apache.catalina.core.containerbase$startchild.call ( containerbase.java:1549) at Java.util.concurrent.futuretask$sync.innerrun (futuretask.java:303) at Java.util.concurrent.FutureTask.run (futuretask.java:138) at java.util.concurrent.threadpoolexecutor$ Worker.runtask (Threadpoolexecutor.java:886) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:908) at Java.lang.Thread.run (thread.java:619) 2014-5-4 22:42:16 org.apache.catalina.startup.ContextConfig parsewebxml Serious: occurred at line 32014-5-4 22:42:17 org.apache.catalina.startup.ContextConfig configurestart Critical: Marking this AP Plication unavailable due to previous error (s) 2014-5-4 22:42:17 Org.apache.catalina.core.StandardContext startinternal severity: Error getconfigured2014-5-4 22:42:17 Org.apache.catalina.util.SessionIdGenerator Createsecurerandom Info: Creation of SecureRandom instance for session ID generation using [sha1prng] took [173] milliseconds .2014-5-4 22:42:17 org.apache.catalina.core.StandardContext startinternal severity: Context [/webservice] startup failed due To previous errors2014-5-4 22:42:17 org.apache.catalina.startup.HostConfig deploydirectory info: Deploying Web Application directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\docs2014-5-4 22:42:17 org.apache.catalina.stArtup. Hostconfig deploydirectory Info: Deploying Web application Directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\ Examples2014-5-4 22:42:18 org.apache.catalina.core.ApplicationContext Log information: contextlistener:contextinitialized () 2014-5-4 22:42:18 org.apache.catalina.core.ApplicationContext Log information: sessionlistener:contextinitialized () 2014-5-4 22:42:18 org.apache.catalina.core.ApplicationContext Log information: contextlistener:attributeadded (' Org.apache.jasper.compiler.TldLocationsCache ', ' [email protected] ') 2014-5-4 22:42:18 Org.apache.catalina.startup.HostConfig deploydirectory Info: Deploying Web application Directory D:\MyEclipse\ Apache-tomcat-7.0.41\webapps\host-manager2014-5-4 22:42:18 Org.apache.catalina.startup.HostConfig Deploydirectory Info: Deploying Web application Directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\manager2014-5-4 22:42:18 org.apache.catalina.startup.HostConfig deploydirectory Info: Deploying Web application Directory D:\MyEclipse\ apache-tomcat-7.0.41\webapps\root2014-5-4 22:42:18 Org.apache.coyote.AbstractProtocol Start info: Starting Protocolhandler ["http-apr-8686"]2014-5-4 22:42:18 Org.apache.coyote.AbstractProtocol Start Info: Starting Protocolhandler ["ajp-apr-8009"]2014-5-4 22:42:18 Org.apache.catalina.startup.Catalina Start Information: Server Startup in 3269 MS

2. Cause of error

There are two close tabs

</web-app>  </web-app>


3. Solution

Remove a close tag

WebService's CXF comment error (i)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.