Help Needed in Migrating WebServices Application Migration from Tomcat Server to Jboss-5.1.0 server
vnishwanth Apr 7, 2010 12:39 AMHi,
I have a war file(webservices application) which has succesfully deployed in tomcat and when i m migrating the application to Jboss5.1.0 getting many issues .
Environment :
Jax-ws SI 2.0 -b26-ea3
Jaxb
Saaj
Jars files inside my application lib folder :
xercesImpl.jar
saaj-pai,saaj-impl.jar
jaxb-api,jaxb-impl,jaxp-api
jaxws-rt,jaxrpc,jaxws-api,sax,wsdl4j-1.5.1,xalan,jsr173_api,jsr181_api,jsr250.
When i deployed the application please find the errors below and steps i took to resolve them.
Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
java.lang.ClassCastException: com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
Caused by: java.lang.RuntimeException: javax.xml.soap.SOAPException: Unable to create SOAP Factory: org.jboss.ws.core.soap.SOAPFactoryImpl
at com.sun.xml.xwss.SystemHandlerDelegateImpl.<clinit>(SystemHandlerDelegateImpl.java:661)
... 77 more
Caused by: javax.xml.soap.SOAPException: Unable to create SOAP Factory: org.jboss.ws.core.soap.SOAPFactoryImpl
at javax.xml.soap.SOAPFactory.newInstance(Unknown Source)
at com.sun.xml.xwss.SystemHandlerDelegateImpl.<clinit>(SystemHandlerDelegateImpl.java:657)
... 77 more
kept jboss-saaj.jar in lib and removed saaj-api.jar from appln
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/SDS]] (main) Exception sending context initialized event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener
java.lang.ExceptionInInitializerError
removed jaxp-api.jar from application
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/SDS]] (main) Exception sending context initialized event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener
java.lang.LinkageError: loader constraints violated when linking javax/xml/namespace/QName class
at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl.<clinit>(RuntimeBuiltinLeafInfoImpl.java:779)
at com.sun.xml.bind.v2.model.impl.RuntimeTypeInfoSetImpl.<init>(RuntimeTypeInfoSetImpl.java:25)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:78)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.createTypeInfoSet(RuntimeModelBuilder.java:41)
removed jaxrpc,jaxb-impl,xbean,xmlpublic,jsr173 jars
java.lang.LinkageError: loader constraints violated when linking org/xml/sax/XMLFilter class
removed sax.jar from application
java.lang.LinkageError: loader constraints violated when linking javax/xml/bind/SchemaOutputResolver class
removed jaxb-api.jar from application
failed to parse runtime descriptor: java.lang.TypeNotPresentException: Type javax.xml.bind.annotation.AccessType not present
at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener
placed jaxb-api.jar in libs folder
java.lang.annotation.AnnotationTypeMismatchException: Incorrectly typed data found for annotation element public abstract javax.xml.bind.annotation.XmlAccessType javax.xml.bind.annotation.XmlAccessorType.value() (Found data of type Ljavax/xml/bind/annotation/AccessType;.FIELD)
I not able to proceed further .
please Help..