cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "maomaode (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-574) Helloworld servlet failed
Date Mon, 23 Apr 2007 05:04:15 GMT

    [ https://issues.apache.org/jira/browse/CXF-574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12490804
] 

maomaode commented on CXF-574:
------------------------------

The above exception was due to the single bundle jar include the JBI stuff, In order to deploy
sample into tomcat, we must not use the single bundle jar, we must copy the jars in /cxf/modules/
and exclude *jbi*.jar, after that you will get the following exception:
client-servlet:
     [java] Exception in thread "main" javax.xml.ws.WebServiceException: org.apa
che.cxf.service.factory.ServiceConstructionException: Failed to create service.
     [java]     at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:101)

     [java]     at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(P
roviderImpl.java:55)
     [java]     at javax.xml.ws.Service.<init>(Service.java:57)
     [java]     at org.apache.hello_world_rpclit.SOAPServiceRPCLit.<init>(SOAPSe
rviceRPCLit.java:36)
     [java]     at demo.hwRPCLit.client.Client.main(Client.java:54)
     [java] Caused by: org.apache.cxf.service.factory.ServiceConstructionExcepti
on: Failed to create service.
     [java]     at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFa
ctory.java:68)
     [java]     at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFa
ctory.java:74)
     [java]     at org.apache.cxf.jaxws.ServiceImpl.initializePorts(ServiceImpl.
java:107)
     [java]     at org.apache.cxf.jaxws.ServiceImpl.<init>(ServiceImpl.java:99)
     [java]     ... 4 more
     [java] Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER
_ERROR: Problem parsing 'http://localhost:8080/helloworld/services/services/hell
o_world_rpclit?wsdl'.: java.io.FileNotFoundException: http://localhost:8080/hell
oworld/services/services/hello_world_rpclit?wsdl
     [java]     at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(Unknown Source)
     [java]     at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
     [java]     at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
     [java]     at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLMana
gerImpl.java:177)
     [java]     at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManag
erImpl.java:123)
     [java]     at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFa
ctory.java:66)
     [java]     ... 7 more
     [java] Caused by: java.io.FileNotFoundException: http://localhost:8080/hell
oworld/services/services/hello_world_rpclit?wsdl
     [java]     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Ht
tpURLConnection.java:1172)
     [java]     at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setu
pCurrentEntity(XMLEntityManager.java:973)
     [java]     at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.de
termineDocVersion(XMLVersionDetector.java:184)
     [java]     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration
.parse(XML11Configuration.java:798)
     [java]     at com.sun.org.apache.xerces.internal.parsers.XML11Configuration
.parse(XML11Configuration.java:764)
     [java]     at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XM
LParser.java:148)
     [java]     at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DO
MParser.java:250)
     [java]     at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.p
arse(DocumentBuilderImpl.java:292)
     [java]     ... 13 more
     [java] Java Result: 1


>From the exception we knew that it's the servlet URL not correct, the URL we expected
is "http://localhost:8080/helloworld/services/hello_world?wsdl"
But it is "http://localhost:8080/helloworld/services/services/hello_world?wsdl"
after change the URL in the build.xml, the demo passed.

> Helloworld servlet failed
> -------------------------
>
>                 Key: CXF-574
>                 URL: https://issues.apache.org/jira/browse/CXF-574
>             Project: CXF
>          Issue Type: Sub-task
>    Affects Versions: 2.0-RC
>            Reporter: maomaode
>             Fix For: 2.0-RC
>
>
> Following the steps in README in helloworld dir.
> How to reproduce:
> 1. ant
> 2. ant war
> 3. ant deploy -Dtomcat=true
> 4. ant client-servlet -Dbase.url=http://localhost:8080
> Got the exception:
> javax.servlet.ServletException: Servlet.init() for servlet cxf threw exception
> 	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> 	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> 	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> 	org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> 	org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> 	org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> 	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> 	java.lang.Thread.run(Thread.java:595)
> root cause
> org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line -1 in XML
document from class path resource [] is invalid; nested exception is org.xml.sax.SAXParseException:
Premature end of file.
> 	org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:359)
> 	org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
> 	org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
> 	org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
> 	org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:108)
> 	org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79)
> 	org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:100)
> 	org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
> 	org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:73)
> 	org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:61)
> 	org.apache.cxf.transport.servlet.CXFServlet.loadSpringBus(CXFServlet.java:141)
> 	org.apache.cxf.transport.servlet.CXFServlet.init(CXFServlet.java:95)
> 	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> 	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> 	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> 	org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> 	org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> 	org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> 	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> 	java.lang.Thread.run(Thread.java:595)
> root cause
> org.xml.sax.SAXParseException: Premature end of file.
> 	com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:236)
> 	com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:215)
> 	com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
> 	com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
> 	com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:230)
> 	com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798)
> 	com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
> 	com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
> 	com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250)
> 	com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
> 	org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76)
> 	org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:351)
> 	org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)
> 	org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280)
> 	org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131)
> 	org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:108)
> 	org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:79)
> 	org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:100)
> 	org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)
> 	org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:73)
> 	org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:61)
> 	org.apache.cxf.transport.servlet.CXFServlet.loadSpringBus(CXFServlet.java:141)
> 	org.apache.cxf.transport.servlet.CXFServlet.init(CXFServlet.java:95)
> 	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> 	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> 	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> 	org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> 	org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> 	org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> 	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> 	java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message