[jboss-user] [EJB 3.0] - Deployment of ejb3 with webservice inside ear file
webmarck
do-not-reply at jboss.com
Wed May 16 16:59:03 EDT 2007
I have a project that contains some ejb3 session beans that is exposed as webservices using the annotations @WebService and @WebMethod.
I deploy the beans inside a ear file.
I currently run the code on JBoss 4.0.5 but (of course) would like to upgrade to JBoss 4.2.0GA to get the latest :-)
The funny part is that the project deploys smoothly on 4.0.5 but fails on 4.2.0 with
| 22:54:34,703 ERROR [ServiceEndpointDeployer] Cannot create service endpoint
| java.lang.ClassCastException: com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$5
| at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getBaseClass(ClassInfoImpl.java:170)
| at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:59)
| at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getBaseClass(RuntimeClassInfoImpl.java:39)
| at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:142)
| at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:48)
| at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:40)
| at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
| at com.sun.xml.bind.v2.model.impl.TypeRefImpl.calcRef(TypeRefImpl.java:56)
| at com.sun.xml.bind.v2.model.impl.TypeRefImpl.getTarget(TypeRefImpl.java:33)
| at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:22)
| at com.sun.xml.bind.v2.model.impl.RuntimeTypeRefImpl.getTarget(RuntimeTypeRefImpl.java:15)
| at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:38)
| at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.get(ElementPropertyInfoImpl.java:41)
| at java.util.AbstractList$Itr.next(AbstractList.java:422)
| ......
| ......
| 22:54:34,703 ERROR [ServiceEndpointPublisher] Cannot obtain waURL for: MyEar.ear/MyClient-.jar
|
I have a feeling that I only get the error when I deploy a webservice inside a ear file.
So my question is: Has anybody been able to deploy a session bean with webservice annotations on JBoss 4.2.0GA?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046306#4046306
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046306
More information about the jboss-user
mailing list