000023492 - BEA WebLogic 8.1 xfire.typeMappingRegistry fix

Document created by RSA Customer Support Employee on Jun 14, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000023492
Applies ToError 500 - Internal Server Error:

org.springframework.beans.factory.BeanDefinitionStoreException: Error
registering bean with name 'xfire.typeMappingRegistry' defined in class
path resource [org/codehaus/xfire/spring/xfire.xml]: Class that bean
class [org.codehaus.xfire.aegis.type.DefaultTypeMappingRegistry] depends
on not found; nested exception is java.lang.NoClassDefFoundError: null
        at
org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.par
seBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:432)
        at
org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.par
seBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:335)
        at
org.apache.xbean.spring.context.impl.XBeanXmlBeanDefinitionParser.parseB
eanDefinitionElement(XBeanXmlBeanDefinitionParser.java:705)
        at
org.apache.xbean.spring.context.impl.XBeanXmlBeanDefinitionParser.parseB
eanDefinitions(XBeanXmlBeanDefinitionParser.java:672)
        at
org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.reg
isterBeanDefinitions(DefaultXmlBeanDefinitionParser.java:186)
        at
org.apache.xbean.spring.context.impl.XBeanXmlBeanDefinitionReader.regist
erBeanDefinitions(XBeanXmlBeanDefinitionReader.java:78)
        at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDe
finitions(XmlBeanDefinitionReader.java:163)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.l
oadBeanDefinitions(AbstractBeanDefinitionReader.java:125)
        at
org.springframework.beans.factory.support.AbstractBeanDefinitionReader.l
oadBeanDefinitions(AbstractBeanDefinitionReader.java:141)
        at
org.springframework.context.support.AbstractXmlApplicationContext.loadBe
anDefinitions(AbstractXmlApplicationContext.java:113)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.loadBeanD
efinitions(ClassPathXmlApplicationContext.java:170)
        at
org.springframework.context.support.AbstractRefreshableApplicationContex
t.refreshBeanFactory(AbstractRefreshableApplicationContext.java:89)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(A
bstractApplicationContext.java:268)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.(ClassPat
hXmlApplicationContext.java:158)
        at
org.apache.xbean.spring.context.ClassPathXmlApplicationContext.(ClassPat
hXmlApplicationContext.java:58)
        at
org.codehaus.xfire.spring.XFireConfigLoader.loadConfig(XFireConfigLoader
.java:66)
        at
org.codehaus.xfire.transport.http.XFireConfigurableServlet.createXFire(X
FireConfigurableServlet.java:53)
        at
org.codehaus.xfire.transport.http.XFireServlet.init(XFireServlet.java:36
)
        at javax.servlet.GenericServlet.init(GenericServlet.java:258)
        at
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletS
tubImpl.java:1099)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.java:321)
        at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121
)
        at
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.
java:975)
        at
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImp
l.java:954)
        at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl
.java:893)
        at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.jav
a:598)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java:406)
        at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java:348)
        at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un(WebAppServletContext.java:7047)
        at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.java:321)
        at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121
)
        at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
etContext.java:3902)
        at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
java:2773)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Caused by: java.lang.NoClassDefFoundError
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:219)
        at
org.springframework.util.ClassUtils.forName(ClassUtils.java:88)
        at
org.springframework.beans.factory.support.BeanDefinitionReaderUtils.crea
teBeanDefinition(BeanDefinitionReaderUtils.java:65)
        at
org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser.par
seBeanDefinitionElement(DefaultXmlBeanDefinitionParser.java:369)
        ... 34 more   
BEA WebLogic
Codehaus XFire
IssueBEA WebLogic 8.1 xfire.typeMappingRegistry fix
ResolutionUse the attached .ZIP file, which includes the qname.jar file and the web xml file. Here is what you need to do:

1. Add qname.jar to pmws_server/WEB-INF/lib

2. Add weblogic.xml to pmws_server/WEB-INF , and make sure <prefer-web-inf-classes> is set to true

3. Remove xbeans-2.1. from pmws_server/WEB-INF/lib
Legacy Article IDa31687

Attachments

    Outcomes