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 03:53:15 GMT

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

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

* The above exception is get from the browser when you trying to open url "http://localhost:8080/helloworld/services/hello_world?wsdl"
* The following excxeption is got from the command line:

client-servlet:
     [java] http://localhost:8080/helloworld/services/hello_world?wsdl
     [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_soap_http.SOAPService.<init>(SOAPServi
ce.java:36)
     [java]     at demo.hw.client.Client.main(Client.java:55)
     [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/hello_world?w
sdl'.: java.io.IOException: Server returned HTTP response code: 500 for URL: htt
p://localhost:8080/helloworld/services/hello_world?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.IOException: Server returned HTTP response code:
500 for URL: http://localhost:8080/helloworld/services/hello_world?wsdl
     [java]     at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Ht
tpURLConnection.java:1174)
     [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

> 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