Ron Wheeler wrote:
>
> On 16/11/2010 4:15 PM, slocum wrote:
>> I recently converted from XFire to CXF. After a host of troubles, I
>> finally
>> got the app to run in my test environment. The problems are (a)
>> http://localhost/mywebservice/ never comes up, even though Soap calls
>> still
>> go through to the app, (b) the app is very unstable, often going down,
>> and
>> giving Soap calls a Tomcat 404 response in HTML, rather than the normal
>> operations response.
>>
>> Has anyone ever seen this before? What is wrong? What do I do?
>>
> We have not. CXF is extremely reliable.
> What are you getting in your logs?
>
> Ron
>
>
>
Hmm, now I'm getting a bunch of errors I wasn't before.
Here's the last entry in the log:
Nov 16, 2010 03:44:05 PM: WARN [main] Invocation of destroy method
'shutdown' failed on bean with name 'cxf':
org.springframework.beans.factory.BeanCreationNotAllowedException: Error
creating bean with name 'cmps.hibernateProperties': Singleton bean creation
not allowed while the singletons of this factory are in destruction (Do not
request a bean from a BeanFactory in a destroy method implementation!)
Nov 16, 2010 03:44:05 PM: ERROR [main] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'cmps.endPoint': Invocation of init method failed; nested
exception is javax.xml.ws.WebServiceException:
org.apache.cxf.service.factory.ServiceConstructionException: Failed to
create service.
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
... (much deleted for brevity)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException:
Failed to create service.
at
org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:93)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:373)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:503)
at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:242)
at
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:184)
at
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:148)
at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:183)
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:407)
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:314)
... 48 more
Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR:
Problem parsing 'classpath:cmps-1.0.wsdl'.: java.net.MalformedURLException:
unknown protocol: classpath
at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2111)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2303)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(WSDLReaderImpl.java:2335)
at
org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(WSDLManagerImpl.java:239)
at
org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(WSDLManagerImpl.java:186)
at
org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.java:91)
... 57 more
Caused by: java.net.MalformedURLException: unknown protocol: classpath
at java.net.URL.<init>(URL.java:574)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:650)
at
com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:186)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
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.DOMParser.parse(DOMParser.java:225)
at
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
at com.ibm.wsdl.xml.WSDLReaderImpl.getDocument(WSDLReaderImpl.java:2101)
... 62 more
My annotation in the WebserviceImpl class is:
@WebService(name = "CMPSServiceImpl",
serviceName = "CMPSWebService",
portName = "CMPSWebServiceHttpPort",
wsdlLocation="classpath:cmps-1.0.wsdl",
endpointInterface =
"com.digitalriver.cmps.ws.CMPSWebServicePortType",
targetNamespace = "http://ws.cmps.digitalriver.com")
which is what the MalformedURLException is from.
The problem I'm having is that this worked on another machine when I created
the WAR from Eclipse, but this machine creates the war by running a BASH
script that pulls the code from git and compiles it.
--
View this message in context:
http://cxf.547215.n5.nabble.com/Web-Service-bouncing-up-and-down-tp3268056p3268178.html
Sent from the cxf-user mailing list archive at Nabble.com.