Just fyi, I finally managed to get tomcat running from a dir with spaces
in it (had to hack the catalina.sh script a bit) and it seems to work
fine with the latest CXF code. I deployed a bunch of wars with wsdl's
and imports and such and they all seemed to work.
Dan
On Wednesday 09 April 2008, Daniel Kulp wrote:
> Any chance you can try with CXF 2.0.5? I know I fixed a BUNCH of
> issues with URL's with spaces in them a little while ago. It MAY have
> been for 2.0.4, but definitely 2.0.5.
>
> Meanwhile, I'll try testing some stuff here. I cannot even get tomcat
> to start from a dir with a space in it to test this. :-(
>
>
> Dan
>
> On Wednesday 09 April 2008, Bharath Thippireddy wrote:
> > 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
> > > >(W SDLS erviceBuilder.java:117) at
> > > > org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServi
> > > >ce Buil der.java:218) at
> > > > org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServi
> > > >ce Buil der.java:150) at
> > > > org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFacto
> > > >ry .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>(WSDLServiceFacto
> > > >ry .jav a:83) at
> > > > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buil
> > > >dS ervi ceFromWSDL(ReflectionServiceFactoryBean.java:256) at
> > > > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.init
> > > >ia lize ServiceModel(ReflectionServiceFactoryBean.java:331) at
> > > > org.apache.cxf.service.factory.ReflectionServiceFactoryBean.crea
> > > >te (Ref lectionServiceFactoryBean.java:151) at
> > > > org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxW
> > > >sS ervi ceFactoryBean.java:93) at
> > > > org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createE
> > > >nd poin t(AbstractWSDLBasedEndpointFactory.java:74) at
> > > > org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBe
> > > >an .jav a:108) at
> > > > org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFa
> > > >ct oryB ean.java:147) at
> > > > org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:28
> > > >8) at
> > > > org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:22
> > > >8) 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(NativeMethodAccessor
> > > >Im pl.j ava:64) at
> > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
> > > >Ac cess orImpl.java:43) at
> > > > java.lang.reflect.Method.invoke(Method.java:615) at
> > > > org.springframework.beans.factory.support.AbstractAutowireCapabl
> > > >eB eanF
> > > > actory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory
> > > >.j ava:1 240) at
> > > > org.springframework.beans.factory.support.AbstractAutowireCapabl
> > > >eB eanF
> > > > actory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java
> > > >:1 205) at
> > > > org.springframework.beans.factory.support.AbstractAutowireCapabl
> > > >eB eanF
> > > > actory.initializeBean(AbstractAutowireCapableBeanFactory.java:11
> > > >71 ) at
> > > > org.springframework.beans.factory.support.AbstractAutowireCapabl
> > > >eB eanF
> > > > actory.createBean(AbstractAutowireCapableBeanFactory.java:425)
> > > > at
> > > > org.springframework.beans.factory.support.AbstractBeanFactory$1.
> > > >ge tObj ect(AbstractBeanFactory.java:251) at
> > > > org.springframework.beans.factory.support.DefaultSingletonBeanRe
> > > >gi stry .getSingleton(DefaultSingletonBeanRegistry.java:156) at
> > > > org.springframework.beans.factory.support.AbstractBeanFactory.ge
> > > >tB ean( AbstractBeanFactory.java:248) at
> > > > org.spriFSe
> > > >rvlet.java:145) at
> > > > org.apache.cxf.transport.servlet.CXFServlet.loadSpringBus(CXFSer
> > > >vl et.j ava:113) at
> > > > org.apache.cxf.transport.servlet.CXFServlet.loadBus(CXFServlet.j
> > > >av a:63 ) at
> > > > org.apache.cxf.transport.servlet.AbstractCXFServlet.init(Abstrac
> > > >tC XFSe rvlet.java:86) at
> > > > com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapp
> > > >er .jav a:185) at
> > > > com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWra
> > > >pp er.j ava:316) at
> > > > com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(Servle
> > > >tW rapp er.java:1119) at
> > > > com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(Serv
> > > >le tWra pper.java:149) at
> > > > com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.creat
> > > >eS ervl etWrapper(WebExtensionProcessor.java:99) at
> > > > com.ibm.ws.webcontainer.webapp.WebApp.getServletWrapper(WebApp.j
> > > >av a:74 1) at
> > > > com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(W
> > > >eb App. java:421) at
> > > > com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish
> > > >(W ebAp p.java:274) at
> > > > com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:2
> > > >71 ) at
> > > > com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebG
> > > >ro up.j ava:88) at
> > > > com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualH
> > > >os t.ja va:157) at
> > > > com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.ja
> > > >va
> > > >
> > > >:653 ) at
> > > >
> > > > com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebCont
> > > >ai ner. java:606) at
> > > > com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebCo
> > > >nt aine rImpl.java:333) at
> > > > com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebCont
> > > >ai nerI mpl.java:549) at
> > > > com.ibm.ws.runtime.component.ApplicationMgrImpl.start(Applicatio
> > > >nM grIm pl.java:1295) at
> > > > com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeploye
> > > >dO bjec tStart(DeployedApplicationImpl.java:1129) at
> > > > com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedMo
> > > >du leIm pl.java:567) at
> > > > com.ibm.ws.runtime.component.DeployedApplicationImpl.start(Deplo
> > > >ye dApp licationImpl.java:814) at
> > > > com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication
> > > >(A ppli cationMgrImpl.java:948) at
> > > > com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.r
> > > >un (App licationMgrImpl.java:2114) at
> > > > com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializ
> > > >er .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
> > > >.x sd (The system cannot find the file specified.)
> > >
> > > --
> > > J. Daniel Kulp
> > > Principal Engineer, IONA
> > > [EMAIL PROTECTED]
> > > http://www.dankulp.com/blog
--
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog