[jboss-dev-forums] [JBoss XML Binding Development] - Re: JBossXB should swap out the Context ClassLoader before i

navsum do-not-reply at jboss.com
Tue Aug 25 16:28:09 EDT 2009


Hi,

I had same problem while upgrading my applications from Jboss 4x  to  5x .

first it was unable to find  xerces throwing 

java.lang.NoClassDefFoundError: org/xml/sax/XMLReader

then I change the parameter parent-first="true" in jboss-classloading.xml

this time it was unable to find strut's jar files  throwing exception  such as

java.lang.ClassCastException: org.apache.struts.action.ActionServlet cannot be cast to javax.servlet.Servlet


I had to do following work around

1)  jboss-classloading.xml

<classloading xmlns="urn:jboss:classloading:1.0"
              name="aris.war"
              domain="DefaultDomain"
              export-all="NON_EMPTY"
              import-all="true"
			  parent-first="true">


2) I moved all my struts jars , xerces etc use in my war\WEB-INF\lib  to jboss-5.1.0.GA\server\default\lib

the application finally deployed successfully.

Thanks

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251642#4251642

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4251642



More information about the jboss-dev-forums mailing list