Hi Dan,
We could see the root cause for this issue.It happens only when the App
Server is installed in a folder path which has a space(in any of the
folder names).We tried it on JBoss which resulted in the same exception.
1) What version of CXF?
We are using CXF 2.0.3
wsdl location is WEB-INF/wsdl/Auth.wsdl
2) What are you using for the wsdlLocation? ("WEB-INF/foo.wsdl", or
just "foo.wsdl", or....)
We use the cxf-servlet.xml file for the configuration.
3)How are you configuring the wsdl location? (@WebService annotation, in
a xml config file, etc..)
Can you please let me know how this can be resolved while having spaces in
the foder names.
thanks and regards,
Bharath
Daniel Kulp <[EMAIL PROTECTED]> wrote on 04/09/2008 04:08:34 PM:
>
> Couple questions:
>
> 1) What version of CXF?
>
> 2) What are you using for the wsdlLocation? ("WEB-INF/foo.wsdl", or
> just "foo.wsdl", or....)
>
> 3) How are you configuring the wsdl location? (@WebService annotation,
> in a xml config file, etc..)
>
> Dan
>
>
>
> On Tuesday 08 April 2008, bharath_t19 wrote:
> > We are trying to deploy our CXF application on WebSphere 6.1 and we
> > see the following problem
> >
> > ServletWrappe E SRVE0100E: Did not realize init() exception thrown
> > by servlet cxf:
> > org.springframework.beans.factory.BeanCreationException: Error
> > creating bean with name 'AuthenticationService': Invocation of init
> > method failed; nested exception is
> > java.lang.IncompatibleClassChangeError Caused by:
> > java.lang.IncompatibleClassChangeError
> > at
> > org.apache.cxf.wsdl11.WSDLServiceBuilder.copyExtensionAttributes(WSDLS
> >erviceBuilder.java:117) at
> > org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuil
> >der.java:218) at
> > org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuil
> >der.java:150) at
> > org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.jav
> >a:117)
> >
> >
> > This was fixed by following the instruction in the CXF App Server
> > Guide.
> >
> > But now we see the following exception.Looks like its seaching the
> > XSDs in the server root folder instead of searching for them relative
> > to the wsdl files.All the wsdl files are under the web-inf folder of
> > the webapplication and the XSDs imported in the WSDLs go in to the
> > same directory.We see the same exception when we try both the options
> > in the App Server Guide.
> >
> > 1)put jar in the endorsed folder
> > 2)Add your own class loader
> >
> > 00000018 ServletWrappe E SRVE0100E: Did not realize init()
> > exception thrown by servlet cxf:
> > org.springframework.beans.factory.BeanCreationException: Error
> > creating bean with name 'AuthenticationService': Invocation of init
> > method failed; nested exception is
> > org.apache.cxf.service.factory.ServiceConstructionException: Failed to
> > create service.
> > Caused by:
> > org.apache.cxf.service.factory.ServiceConstructionException: Failed to
> > create service.
> > at
> > org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(WSDLServiceFactory.jav
> >a:83) at
> > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServi
> >ceFromWSDL(ReflectionServiceFactoryBean.java:256) at
> > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initialize
> >ServiceModel(ReflectionServiceFactoryBean.java:331) at
> > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(Ref
> >lectionServiceFactoryBean.java:151) at
> > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServi
> >ceFactoryBean.java:93) at
> > org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoin
> >t(AbstractWSDLBasedEndpointFactory.java:74) at
> > org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.jav
> >a:108) at
> > org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryB
> >ean.java:147) at
> > org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:288) at
> > org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:228) at
> > org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:179) at
> > org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:341) at
> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> >ava:64) at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> >orImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:615)
> > at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
> >actory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1
> >240) at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
> >actory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1205)
> > at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
> >actory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171) at
> > org.springframework.beans.factory.support.AbstractAutowireCapableBeanF
> >actory.createBean(AbstractAutowireCapableBeanFactory.java:425) at
> > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObj
> >ect(AbstractBeanFactory.java:251) at
> > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
> >.getSingleton(DefaultSingletonBeanRegistry.java:156) at
> > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(
> >AbstractBeanFactory.java:248) at
> > org.spriFSe
> >rvlet.java:145) at
> > org.apache.cxf.transport.servlet.CXFServlet.loadSpringBus(CXFServlet.j
> >ava:113) at
> > org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.java:63
> >) at
> > org.apache.cxf.transport.servlet.AbstractCXFServlet.init(AbstractCXFSe
> >rvlet.java:86) at
> > com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.jav
> >a:185) at
> > com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.j
> >ava:316) at
> > com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapp
> >er.java:1119) at
> > com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWra
> >pper.java:149) at
> > com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServl
> >etWrapper(WebExtensionProcessor.java:99) at
> > com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.java:74
> >1) at
> > com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.
> >java:421) at
> > com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebAp
> >p.java:274) at
> > com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:271) at
> > com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.j
> >ava:88) at
> > com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.ja
> >va:157) at
> > com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:653
> >) at
> > com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.
> >java:606) at
> > com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContaine
> >rImpl.java:333) at
> > com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerI
> >mpl.java:549) at
> > com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrIm
> >pl.java:1295) at
> > com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjec
> >tStart(DeployedApplicationImpl.java:1129) at
> > com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleIm
> >pl.java:567) at
> > com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApp
> >licationImpl.java:814) at
> > com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(Appli
> >cationMgrImpl.java:948) at
> > com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(App
> >licationMgrImpl.java:2114) at
> > com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run
> >(WsComponentImpl.java:340) at
> > com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498) Caused by:
> > javax.wsdl.WSDLException: WSDLException (at
> > /wsdl:definitions/wsdl:types/xsd:schema): faultCode=PARSER_ERROR:
> > Problem parsing 'IntegrationFault.xsd'.:
> > java.io.FileNotFoundException: C:\Program
> > Files\IBM\WebSphere\AppServer\profiles\AppSrv01\IntegrationFault.xsd
> > (The system cannot find the file specified.)
>
>
>
> --
> J. Daniel Kulp
> Principal Engineer, IONA
> [EMAIL PROTECTED]
> http://www.dankulp.com/blog
>