Deploying Axis2 on Weblogic can be a pain sometimes due to class loading issues. Here are a couple of post that worked.
[1] Weblogic9.2 with Axis2 webservice <http://forums.oracle.com/forums/thread.jspa?threadID=855171&tstart=0> [2] How to deploy Apache Axis2 on WebLogic 10<http://charithaka.blogspot.com/2008/07/how-to-deploy-apache-axis2-on-weblogic.html> Thanks, Keith. On Thu, Mar 19, 2009 at 11:24 PM, tfecw <wei...@gmail.com> wrote: > > Hi, > > I'm using weblogic 9.1 and trying to deploy axis2 (1.4.1) as an exploded > war > file. > > Axis2 (1.4) works fine for me but with 1.4.1 i'm getting this CCE on > .org.apache.xerces.jaxp.DocumentBuilderFactoryImpl > > > org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected > excep > tion parsing XML document from ServletContext resource > [/WEB-INF/applicationCont > ext.xml]; nested exception is java.lang.ClassCastException: > org.apache.xerces.ja > xp.DocumentBuilderFactoryImpl > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB > eanDefinitions(XmlBeanDefinitionReader.java:420) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea > nDefinitions(XmlBeanDefinitionReader.java:342) > at > org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea > nDefinitions(XmlBeanDefinitionReader.java:310) > at > org.springframework.beans.factory.support.AbstractBeanDefinitionReade > r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) > at > org.springframework.beans.factory.support.AbstractBeanDefinitionReade > r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178) > > > I *do* have the prefer -web-inf class property set to true in a > weblogic.xml > file > > > <?xml version="1.0" encoding="UTF-8"?> > <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90"> > <container-descriptor> > <prefer-web-inf-classes>true</prefer-web-inf-classes> > </container-descriptor> > </weblogic-web-app> > > > Thanks > > -- > View this message in context: > http://www.nabble.com/ClassCastException-with-weblogic-and-axis2-tp22605872p22605872.html > Sent from the Axis - User mailing list archive at Nabble.com. > > -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org