Hi, Is there a problem in using the BeanDeserializerFactory and BeanSerializerFactory in JBoss 4.0.2? When I deployed my service the .wsdd showed that the MetaDataBeanSerializerFactory was being used by default. I wanted to use the BeanSerializerFactory instead and I wrote a ws4ee-deployment.xml file. I just copied the type-mappings from the .wsdd and replaced the MetaDataBeanSerializer/DeSerializer Factories with the fully qualified name of BeanSerializerFactory. I got an exception (in JBoss 4.0.2 but not in JBoss 4.0.1).
| 13:51:13,622 ERROR [ServiceDeployer] Cannot startup webservice for: sidrpc-ejb.jar | org.jboss.deployment.DeploymentException: Cannot deploy webservice; - nested throwable: (org.jboss. | xis.deployment.wsdd.WSDDException: java.lang.ClassCastException | java.lang.ClassCastException | at org.jboss.axis.encoding.ser.BaseSerializerFactory.createFactory(BaseSerializerFactory.ja | a:306) | at org.jboss.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDService.java:609) | at org.jboss.axis.deployment.wsdd.WSDDService.initTMR(WSDDService.java:294) | at org.jboss.axis.deployment.wsdd.WSDDService.<init>(WSDDService.java:272) | at org.jboss.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:255) | at org.jboss.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:120) | at org.jboss.axis.utils.Admin.processWSDD(Admin.java:153) | at org.jboss.axis.utils.Admin.process(Admin.java:248) | at org.jboss.webservice.AxisService.deployService(AxisService.java:351) | 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:324) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) | at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:272) | at $Proxy24.deployService(Unknown Source) | at org.jboss.webservice.ServiceDeployer.deployWebservices(ServiceDeployer.java:373) | at org.jboss.webservice.ServiceDeployerEJB.deployWebservices(ServiceDeployerEJB.java:103) | at org.jboss.webservice.ServiceDeployer.startWebservice(ServiceDeployer.java:233) | at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeployer.java:112) | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:324) | at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.jav | :138) | Here's my ws4ee-deployment.xml | <deployment | xmlns='http://xml.apache.org/axis/wsdd/' | xmlns:java='http://xml.apache.org/axis/wsdd/providers/java' | xmlns:soap='http://schemas.xmlsoap.org/soap/encoding/' | xmlns:xsi='http://www.w3.org/2000/10/XMLSchema-instance' | xmlns:xsd='http://www.w3.org/2001/XMLSchema'> | <typeMapping | qname='ns1:SidInput' xmlns:ns1='http://sidrpc.com' | type='java:com.sidrpc.SidInput' | serializer='org.apache.axis.encoding.ser.BeanSerializerFactory' | deserializer='org.apache.axis.encoding.ser.BeanDeserializerFactory' | encodingStyle=''> | </typeMapping> | | <typeMapping | qname='ns1:SidOutput' xmlns:ns1='http://sidrpc.com' | type='java:com.sidrpc.SidOutput' | serializer='org.apache.axis.encoding.ser.BeanSerializerFactory' | deserializer='org.apache.axis.encoding.ser.BeanDeserializerFactory' | encodingStyle=''> | </typeMapping> | | | </deployment> | Here's the .wsdd without a ws4ee-deployment.xml | <deployment | xmlns='http://xml.apache.org/axis/wsdd/' | xmlns:java='http://xml.apache.org/axis/wsdd/providers/java' | xmlns:soap='http://schemas.xmlsoap.org/soap/encoding/' | xmlns:xsi='http://www.w3.org/2000/10/XMLSchema-instance' | xmlns:xsd='http://www.w3.org/2001/XMLSchema'> | | <service name='sidrpc-ejb.jar#SidRPCPort' style='rpc' use='literal' provider='Handler'> | | <parameter name='webserviceID' value='sidrpc-ejb.jar#SidRPCPort' /> | <parameter name='handlerClass' value='org.jboss.webservice.server.InvokerProviderEJB' /> | | <operation name='concat' qname='ns1:concat' returnQName='result' returnType='ns1:SidOutput' xmlns:ns1='http://sidrpc.com' > | <parameter name='SidInput_1' qname='SidInput_1' mode='IN' type='ns1:SidInput' xmlns:ns1='http://sidrpc.com' /> | </operation> | | <typeMapping | qname='ns1:SidInput' xmlns:ns1='http://sidrpc.com' | type='java:com.sidrpc.SidInput' | serializer='org.jboss.webservice.encoding.ser.MetaDataBeanSerializerFactory' | deserializer='org.jboss.webservice.encoding.ser.MetaDataBeanDeserializerFactory' | encodingStyle=''> | <typeDesc> | <elementDesc fieldName='inputs' xmlName='inputs'/> | <elementOrder> | <element name='inputs'/> | </elementOrder> | </typeDesc> | </typeMapping> | | <typeMapping | qname='ns1:SidOutput' xmlns:ns1='http://sidrpc.com' | type='java:com.sidrpc.SidOutput' | serializer='org.jboss.webservice.encoding.ser.MetaDataBeanSerializerFactory' | deserializer='org.jboss.webservice.encoding.ser.MetaDataBeanDeserializerFactory' | encodingStyle=''> | <typeDesc> | <elementDesc fieldName='outputs' xmlName='outputs'/> | <elementOrder> | <element name='outputs'/> | </elementOrder> | </typeDesc> | </typeMapping> | | | </service> | </deployment> | | Thanks. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3876316#3876316 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3876316 ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user