Announcement Announcement Module
Collapse
No announcement yet.
Confused! ClassNotFoundException ContextNamespaceHandler Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Confused! ClassNotFoundException ContextNamespaceHandler

    Hi,
    I have a web application (WAR) being deployed on Jboss 4.2.2 to JBOSS/server/all/deploy

    A class in my WAR file references a shared library in JBOSS/server/all/lib

    My shared library in JBOSS/server/all/lib bootstraps a spring context.

    On our staging environment everything works A-OK.

    However on our production environment I am getting this ClassNotFoundException and for the life of me cannot figure out why. My shared library is properly deployed in JBOSS/server/all/lib, spring does start booting but then I get the exception below:

    The org.springframework.context.config.ContextNamespac eHandler class does exist within my shared JAR under server/all/lib

    What could be causing this conflict or error?? Any help appreciated. Thanks



    06:20:54,119 DEBUG [DefaultBeanDefinitionDocumentReader] Loading bean definitions
    06:20:54,131 DEBUG [DefaultNamespaceHandlerResolver] Loaded NamespaceHandler mappings: {http://www.springframework.org/schem...mespaceHandler, http://www.springframework.org/schem...mespaceHandler, http://www.springframework.org/schem...mespaceHandler, http://www.springframework.org/schem...mespaceHandler, http://www.springframework.org/schem...mespaceHandler, http://www.springframework.org/schem...mespaceHandler, http://www.springframework.org/schem...mespaceHandler, http://www.springframework.org/schema/context=org.springframework.context.config.Context NamespaceHandler}
    06:20:54,136 ERROR [[action]] Servlet.service() for servlet action threw exception
    java.lang.ClassNotFoundException: org.springframework.context.config.ContextNamespac eHandler
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1358)
    at org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1204)
    at org.springframework.util.ClassUtils.forName(ClassU tils.java:257)
    at org.springframework.beans.factory.xml.DefaultNames paceHandlerResolver.resolve(DefaultNamespaceHandle rResolver.java:124)
    at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1330)
    at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1325)
    at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.parseBeanDefinitions(Defau ltBeanDefinitionDocumentReader.java:135)
    at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.registerBeanDefinitions(De faultBeanDefinitionDocumentReader.java:93)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.registerBeanDefinitions(XmlBeanDefinit ionReader.java:493)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:390)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:334)
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:302)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:143)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:178)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:149)
    at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:212)
    at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:126)
    at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:92)
    at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:130)
    at org.springframework.context.support.AbstractApplic ationContext.obtainFreshBeanFactory(AbstractApplic ationContext.java:467)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:397)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:139)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:83)
Working...
X