Re: Error deploying CXF 2.0.2 to WebSphere 6.1.0.5

2007-10-12 Thread Jeff Yu

Hi, Willem

I checked the wsdl4j.jar, but it works fine with cxf-2.0 M1, which used 
the same version wsdl4j.jar as cxf-2.0 RC...
Any way, I will put it under endorsed folder and give it another shot 
next week


Thanks
Jeff


Jiang, Ning (Willem) wrote:

Hi Jeff,

I do not think the servlet2.5 API is the cause of the error. If I remembered right, 
you told me that you had tried to remove the servlet2.5 API from the war's lib and it was workable.


Form the stack trace, it looks like the exception is thrown by calling the 
WSDL4J extension.
Maybe you can try to put the WSDL4J jar in the endorse directory.

Willem.


-Original Message-
From: Jeff Yu [mailto:[EMAIL PROTECTED]
Sent: Fri 10/12/2007 18:33
To: cxf-user@incubator.apache.org
Subject: Re: Error deploying CXF 2.0.2 to WebSphere 6.1.0.5
 
Hi


Well, tried it again today, but without success, now I got exception as 
following:


I thought it might be caused by the servlet, as we are using the 
servlet-2.5, but the websphere6.1 supports servlet-2.4, I put the 
servlet in the endorsed folder, but still got the same error,
I also find this JIRA [1],  I have deployed the cxf-2.0M1 HelloWorld 
sample into the websphere6.1 successfully, but then from the 2.0RC, it 
failed.


Anyone else got it work, or what error it might be?

PS: I've already set the parent-last classloader in the websphere.

Thanks
Jeff

[1] https://issues.apache.org/jira/browse/CXF-714

[10/12/07 18:21:12:614 CST] 0044 ServletWrappe E   SRVE0100E: Did 
not realize  init() exception thrown by servlet cxf: 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'hello_world_xml_bare': Invocation of init method failed; 
nested exception is java.lang.IncompatibleClassChangeError

Caused by: java.lang.IncompatibleClassChangeError
at 
org.apache.cxf.wsdl11.WSDLServiceBuilder.copyExtensionAttributes(WSDLServiceBuilder.java:123)
at 
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:233)
at 
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:159)
at 
org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:117)
at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:188)
at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:244)
at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:135)
at 
org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractEndpointFactory.java:82)
at 
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:84)

at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:280)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:178)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:361)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:615)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1214)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1179)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:279)
at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360)
at 
org.apache.cxf.transport.servlet.CXFServlet.loadAdditionalConfig(CXFServlet.java:186)
at 
org.apache.cxf.transport.servlet.CXFServlet.loadSpringBus(CXFServlet.java:156)

at org.apache.cxf.transport.servlet.CXFServlet.init(CXFServlet.java:95)
at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:185)
at 

Re: Creating a Provider for a WSDL-first WS without annotations?

2007-10-12 Thread Willem Jiang
I don't find a way to set the Provider properties from JAXWS API. If you 
can tell the @ServiceMode's value from the script engine, I think you 
can easily pick up a annotated Provider template class.

Here is only 2 types service mode.

BTW, if you use the JaxWsServerFactoryBean to create the server. You can 
write your own class which extends JaxWsImplementorInfo for some 
provider property programming work.


Willem.

Javier Arauz wrote:

Hi,

I'm trying to develop an engine that allows me to script WS
consumerprovider implementations. I'm using CXF as my underlying WS
implementation.

For the consumer part I'm using Dispatch instances that delegate work to the
script engine code. So far, so good. However, for the provider part I've hit
a wall: I can't see a way of writing a generic (i.e. valid for any WS)
Provider that delegates work to the script engine, since according to the
JAX-WS documentation I need to provide annotations describing the service to
the Provider class file. Since annotations can't be set in run-time I can't
write my generic Provider.

I've thought of writing a Provider template that is completed with
annotations and compiled in runtime when a WS is invoked, but it sounds like
a cumbersome solution. Does anybody know if there is a programmatic way of
setting the Provider properties that these annotations set?

Regards,
/Javier

  


RE: Error deploying CXF 2.0.2 to WebSphere 6.1.0.5

2007-10-12 Thread Jiang, Ning (Willem)
Hi Jeff,

I do not think the servlet2.5 API is the cause of the error. If I remembered 
right, 
you told me that you had tried to remove the servlet2.5 API from the war's lib 
and it was workable.

Form the stack trace, it looks like the exception is thrown by calling the 
WSDL4J extension.
Maybe you can try to put the WSDL4J jar in the endorse directory.

Willem.


-Original Message-
From: Jeff Yu [mailto:[EMAIL PROTECTED]
Sent: Fri 10/12/2007 18:33
To: cxf-user@incubator.apache.org
Subject: Re: Error deploying CXF 2.0.2 to WebSphere 6.1.0.5
 
Hi

Well, tried it again today, but without success, now I got exception as 
following:

I thought it might be caused by the servlet, as we are using the 
servlet-2.5, but the websphere6.1 supports servlet-2.4, I put the 
servlet in the endorsed folder, but still got the same error,
I also find this JIRA [1],  I have deployed the cxf-2.0M1 HelloWorld 
sample into the websphere6.1 successfully, but then from the 2.0RC, it 
failed.

Anyone else got it work, or what error it might be?

PS: I've already set the parent-last classloader in the websphere.

Thanks
Jeff

[1] https://issues.apache.org/jira/browse/CXF-714

[10/12/07 18:21:12:614 CST] 0044 ServletWrappe E   SRVE0100E: Did 
not realize  init() exception thrown by servlet cxf: 
org.springframework.beans.factory.BeanCreationException: Error creating 
bean with name 'hello_world_xml_bare': Invocation of init method failed; 
nested exception is java.lang.IncompatibleClassChangeError
Caused by: java.lang.IncompatibleClassChangeError
at 
org.apache.cxf.wsdl11.WSDLServiceBuilder.copyExtensionAttributes(WSDLServiceBuilder.java:123)
at 
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:233)
at 
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:159)
at 
org.apache.cxf.wsdl11.WSDLServiceFactory.create(WSDLServiceFactory.java:117)
at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:188)
at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:244)
at 
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:135)
at 
org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractEndpointFactory.java:82)
at 
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:84)
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:280)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:178)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:361)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1214)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1179)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:279)
at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360)
at 
org.apache.cxf.transport.servlet.CXFServlet.loadAdditionalConfig(CXFServlet.java:186)
at 
org.apache.cxf.transport.servlet.CXFServlet.loadSpringBus(CXFServlet.java:156)
at org.apache.cxf.transport.servlet.CXFServlet.init(CXFServlet.java:95)
at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:185)
at 
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:316)
at 
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:341)
at 
com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at