博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
WebService之CXF注解报错(一)
阅读量:6079 次
发布时间:2019-06-20

本文共 9436 字,大约阅读时间需要 31 分钟。

WebService之CXF注解

1、详细报错例如以下

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信息: Loaded APR based Apache Tomcat Native library 1.1.27 using APR version 1.4.6.2014-5-4 22:42:12 org.apache.catalina.core.AprLifecycleListener init信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].2014-5-4 22:42:14 org.apache.catalina.core.AprLifecycleListener initializeSSL信息: OpenSSL successfully initialized (OpenSSL 1.0.1d 5 Feb 2013)2014-5-4 22:42:15 org.apache.coyote.AbstractProtocol init信息: Initializing ProtocolHandler ["http-apr-8686"]2014-5-4 22:42:15 org.apache.coyote.AbstractProtocol init信息: Initializing ProtocolHandler ["ajp-apr-8009"]2014-5-4 22:42:15 org.apache.catalina.startup.Catalina load信息: Initialization processed in 4063 ms2014-5-4 22:42:15 org.apache.catalina.core.StandardService startInternal信息: Starting service Catalina2014-5-4 22:42:15 org.apache.catalina.core.StandardEngine startInternal信息: Starting Servlet Engine: Apache Tomcat/7.0.412014-5-4 22:42:16 org.apache.catalina.loader.WebappClassLoader validateJarFile信息: 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信息: 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严重: Parse Fatal Error at line 26 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 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严重: 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严重: Occurred at line 26 column 32014-5-4 22:42:17 org.apache.catalina.startup.ContextConfig configureStart严重: Marking this application unavailable due to previous error(s)2014-5-4 22:42:17 org.apache.catalina.core.StandardContext startInternal严重: Error getConfigured2014-5-4 22:42:17 org.apache.catalina.util.SessionIdGenerator createSecureRandom信息: 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严重: Context [/Webservice] startup failed due to previous errors2014-5-4 22:42:17 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\docs2014-5-4 22:42:17 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\examples2014-5-4 22:42:18 org.apache.catalina.core.ApplicationContext log信息: ContextListener: contextInitialized()2014-5-4 22:42:18 org.apache.catalina.core.ApplicationContext log信息: SessionListener: contextInitialized()2014-5-4 22:42:18 org.apache.catalina.core.ApplicationContext log信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@1efc208')2014-5-4 22:42:18 org.apache.catalina.startup.HostConfig deployDirectory信息: 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信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\manager2014-5-4 22:42:18 org.apache.catalina.startup.HostConfig deployDirectory信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\ROOT2014-5-4 22:42:18 org.apache.coyote.AbstractProtocol start信息: Starting ProtocolHandler ["http-apr-8686"]2014-5-4 22:42:18 org.apache.coyote.AbstractProtocol start信息: Starting ProtocolHandler ["ajp-apr-8009"]2014-5-4 22:42:18 org.apache.catalina.startup.Catalina start信息: Server startup in 3269 ms
2、错误原因

     有两个关闭标签

  

3、解决方法

    去掉一个关闭标签

转载地址:http://fyxgx.baihongyu.com/

你可能感兴趣的文章
pyhon 函数2
查看>>
Integer类型数据比较大小问题:(Integer定义的是对象,养成使用equals方法的好习惯)...
查看>>
不同系统里同一Customizing activity的显示差异分析
查看>>
WSFC SQL应用磁盘阵列替换
查看>>
国内首款智能网联无人迷你巴士在东南大学首发试运行,车内没有配置方向盘...
查看>>
复习while,case,if,for及各种判断脚本
查看>>
VIM安装 NERDTREE,SOLARIZED 插件
查看>>
AD账户UserAccountControl对应的值
查看>>
Exchange server 2010安装(二)
查看>>
关于移动硬盘/U盘不能自动分配盘符问题
查看>>
部署redis主从高可用集群
查看>>
more
查看>>
红客专用电脑安全工具箱 v 1.9
查看>>
Script:诊断MTS shared server
查看>>
DNS主从服务器中域(zone)文件类型不一致问题的解决方法
查看>>
shell进阶
查看>>
图文解释XCode常用快捷键的使用
查看>>
超详细XP蓝屏代码大全
查看>>
leopard 10.5 安装全程[总结]
查看>>
Unity 协程运行时的监控和优化
查看>>