How to make wsconsume generate Serializable classes from WebService (WS) WSDL in JBoss EAP?
Issue
- How to make wsconsume generate Serializable classes from WebService (WS) WSDL in JBoss EAP?
- I'm getting an error : java.lang.RuntimeException: WFLYEJB0054: Failed to marshal EJB parameters
and the cause is: java.io.NotSerializableException for a class that is generated from WSDL file. -
I created Java classes from wsdl by executing org.jboss.wsf.spi.tools.cmd.WSConsume in ant task. Snippet of the ant task is as below:
<java classname="org.jboss.wsf.spi.tools.cmd.WSConsume" fork="true"> <jvmarg value="-Djava.endorsed.dirs=${jboss_home}/lib/endorsed" /> <arg line="-o ${build_dir}" /> <arg line="-k " /> <arg line="-t 2.1" /> <arg line="-s ${everest_dir}/sources" /> <arg line="${nmsapischema}/wsdl/nms.wsdl" /> <classpath refid="classpath.wscomsume" /> </java>
-
Can you give me the details about how to create java classes that extend serializable.
-
NotSerializableException serialization exception when using class generated from WSDL for remote EJB transfer objects
Environment
- JBoss Enterprise Application Platform (JBoss EAP) 4.3
- 7
- 6
- 5
- 4.3
- JBoss WebServices
- JBoss WS CXF
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.