配置"在没有发布的情况下提供模块时出错#34;

时间:2014-10-02 10:36:58

标签: eclipse tomcat spring-tool-suite

我最近使用“服务模块而不发布”选项配置我的tomcat 6.0,以避免在执行热代码替换时http会话结束。从那时起,我在启动服务器时遇到下一个错误:

GRAVE: WSSERVLET11: failed to parse runtime descriptor: XML reader error: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'K' (code 75) in prolog; expected '<' at [row,col,system-id]: [1,1,"jndi:/localhost/projectX/WEB-INF/wsdl/.svn/prop-base/WSprojectXService_schema1.xsd.svn-base"] XML reader error: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'K' (code 75) in prolog; expected '<' at [row,col,system-id]: [1,1,"jndi:/localhost/projectX/WEB-INF/wsdl/.svn/prop-base/WSprojectXService_schema1.xsd.svn-base"] at com.sun.xml.ws.streaming.XMLStreamReaderUtil.wrapException(XMLStreamReaderUtil.java:246) at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:70) at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextContent(XMLStreamReaderUtil.java:85) at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextElementContent(XMLStreamReaderUtil.java:75) at com.sun.xml.ws.server.SDDocumentImpl.create(SDDocumentImpl.java:77) at com.sun.xml.ws.server.EndpointFactory.categoriseMetadata(EndpointFactory.java:413) at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:139) at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:318) at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:337) at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:239) at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:131) at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:90) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardHost.start(StandardHost.java:840) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'K' (code 75) in prolog; expected '<' at [row,col,system-id]: [1,1,"jndi:/localhost/projectX/WEB-INF/wsdl/.svn/prop-base/WSprojectXService_schema1.xsd.svn-base"] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:639) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2052) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1134) at javax.xml.stream.util.StreamReaderDelegate.next(StreamReaderDelegate.java:60) at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:51) ... 25 more

如果没有“服务模块而不发布”选项,此错误从未发生过。它似乎试图解析一个svn内部文件,它正在获得一个解析异常。

提前致谢。

1 个答案:

答案 0 :(得分:0)

文件

的.svn /丙基/ WSprojectXService_schema1.xsd.svn基

不应导出到tomcat。

升级到最新版本的subversion。它只有一个.svn文件夹(在最旧的父文件夹中)而不是每个子文件夹一个(这就是你导出.svn子文件夹的原因)。

您可以尝试告诉eclipse不要导出.svn子文件夹,但我不知道该怎么做...

胜者。