geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas" <dava...@gmail.com>
Subject Re: Web Services Support in Axis2 Failed
Date Thu, 22 Mar 2007 23:04:20 GMT
Let's start from the beginning :) There is a schema for the J2EE 5.0
web services stuff. cxf folks initially check in that xsd in their
tree and ran jaxb codegen and used it. when they cut their last
release during an audit they figured out that the license was not
compatible. So they did the next best thing which is to check in the
generated code in their tree. Eventually Jarek committed code in
geronimo-cxf that needed these classes. So when i ported Jarek's code
i wanted the code to look as much as possible like the cxf one so it's
easy to maintain etc...but i did not check in the jaxb generated code
into axis2. i checked it into modules/geronimo-axis2. Jason Dillon and
others rightfully pinged us a couple of times to get rid of the
generated code. During the 2nd day of the hackathon, David Jencks
pointed me to the schema in our private svn project and told me the
name of the artifact that we publish off that project. that jar
contains the xbeans generated code for the same schema. When we were
talking Jarek mentioned that he does not really need that jaxb
genrated code from cxf and he could switch to the xbeans as well. So i
made the change.

Please try this tiny fix. that should take care of it.

thanks,
dims

Index: modules/geronimo-axis2-builder/src/main/java/org/apache/geronimo/axis2/builder/Axis2Builder.java
===================================================================
--- modules/geronimo-axis2-builder/src/main/java/org/apache/geronimo/axis2/builder/Axis2Builder.java
   (revision 521511)
+++ modules/geronimo-axis2-builder/src/main/java/org/apache/geronimo/axis2/builder/Axis2Builder.java
   (working copy)
@@ -42,6 +42,7 @@
 import org.apache.geronimo.xbeans.javaee.ServiceImplBeanType;
 import org.apache.geronimo.xbeans.javaee.ServiceRefHandlerChainsType;
 import org.apache.geronimo.xbeans.javaee.WebserviceDescriptionType;
+import org.apache.geronimo.xbeans.javaee.WebservicesDocument;
 import org.apache.geronimo.xbeans.javaee.WebservicesType;

 import javax.xml.bind.JAXBException;
@@ -85,7 +86,7 @@
         Map<String, PortInfo> map = null;

         try {
-            WebservicesType wst = WebservicesType.Factory.parse(in);
+            WebservicesType wst =
WebservicesDocument.Factory.parse(in).getWebservices();

             for (WebserviceDescriptionType desc :
wst.getWebserviceDescriptionArray()) {
                 String wsdlFile = null;


On 3/22/07, Lin Sun <linsun.unc@gmail.com> wrote:
> Hi Dims,
>
> Could you shed some light on why you decided to move from JAXB to
> XBeans?    I don't quite understand it and the previous JAXB stuff seems
> working fine.
>
> Thanks,
>
> Lin
>
> Lasantha Ranaweera wrote:
> > Finally found what is going on here. This is not only for the Tomcat
> > version of the server. This happens for the Axis2 version of the JXWS
> > implementations (both Jetty & Tomcat).
> >
> > I suspect this is due to the new XBeans usage (after removing JAXB
> > classes) of the Axis2Builder class and it causes
> > parseWebServiceDescriptor() method returns 0 list of web services. I am
> > wondering why it gives 0 list of webservices line 88 of
> > Axis2Builder.java class (may be my XBeans knowledge is pretty poor to
> > identify it). Help please....
> >
> > Thanks,
> > Lasantha
> >
> > Lasantha Ranaweera wrote:
> >> Folks,
> >>
> >> I have been trying to run the web services test siute with latest
> >> tomcat server and getting following error in the test suite console
> >> causing failing the whole test suite. Any updates please?
> >>
> >> Thanks,
> >> Lasantha
> >>
> >> org.apache.geronimo.common.DeploymentException: POJO web service:
> >> POJOServlet not configured by any web service builder
> >>        at
> >> org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:452)
> >>
> >>        at
> >> org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder$$FastClassByCGLIB$$6f85ec2c.invoke(<generated>)
> >>
> >>        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> >>        at
> >> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> >>
> >>        at
> >> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127)
> >>
> >>        at
> >> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
> >>
> >>        at
> >> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> >>        at
> >> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
> >>
> >>        at
> >> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> >>
> >>        at
> >> org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$85e5118d.addGBeans(<generated>)
> >>
> >>        at
> >> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:165)
> >>
> >>        at
> >> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$$FastClassByCGLIB$$d0c31844.invoke(<generated>)
> >>
> >>        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> >>        at
> >> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> >>
> >>        at
> >> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127)
> >>
> >>        at
> >> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
> >>
> >>        at
> >> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> >>        at
> >> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
> >>
> >>        at
> >> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> >>
> >>        at
> >> org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$85e5118d.addGBeans(<generated>)
> >>
> >>        at
> >> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:607)
> >>
> >>        at
> >> org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)
> >>
> >>        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> >>        at
> >> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> >>
> >>        at
> >> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127)
> >>
> >>        at
> >> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
> >>
> >>        at
> >> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> >>        at
> >> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
> >>
> >>        at
> >> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> >>
> >>        at
> >> org.apache.geronimo.j2ee.deployment.CorbaGBeanNameSource$$EnhancerByCGLIB$$bd128ba2.buildConfiguration(<generated>)
> >>
> >>        at
> >> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302)
> >>        at
> >> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124)
> >>        at
> >> org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
> >>
> >>        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> >>        at
> >> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> >>
> >>        at
> >> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127)
> >>
> >>        at
> >> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:855)
> >>
> >>        at
> >> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
> >>        at
> >> org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342)
> >>        at
> >> org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.invoke(<generated>)
> >>
> >>        at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> >>        at
> >> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> >>
> >>        at
> >> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:127)
> >>
> >>        at
> >> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:855)
> >>
> >>        at
> >> org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
> >>        at
> >> org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.java:168)
> >>
> >>        at
> >> com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
> >>
> >>        at
> >> com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
> >>        at
> >> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
> >>
> >>        at
> >> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
> >>        at
> >> javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1408)
> >>
> >>        at
> >> javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
> >>
> >>        at
> >> javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1245)
> >>
> >>        at java.security.AccessController.doPrivileged(Native Method)
> >>        at
> >> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1348)
> >>
> >>        at
> >> javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:782)
> >>
> >>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>        at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>
> >>        at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>
> >>        at java.lang.reflect.Method.invoke(Method.java:585)
> >>        at
> >> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> >>        at sun.rmi.transport.Transport$1.run(Transport.java:153)
> >>        at java.security.AccessController.doPrivileged(Native Method)
> >>        at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> >>        at
> >> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
> >>        at
> >> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
> >>
> >>        at java.lang.Thread.run(Thread.java:595)
> >>
> >>
> >>
> >
> >
>
>


-- 
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

Mime
View raw message