JBoss Community

How to load different version of my jar in jboss as7

created by abiya in Beginner's Corner - View the full discussion

Hi,

 

My struts version is 1.0 and I have problem with the XML parser which is bundled as part of jdk1.6

My config inputstream is not null but still I get the following exception while deployment,

 

java.lang.IllegalArgumentException: InputStream cannot be null

at javax.xml.parsers.SAXParser.parse(Unknown Source) [:1.6.0_24]

at org.apache.struts.digester.Digester.parse(Digester.java:755) [struts.jar:]

at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1434) [struts.jar:]

at org.apache.struts.action.ActionServlet.init(ActionServlet.java:474) [struts.jar:]

at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1202) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1102) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3631) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

at org.apache.catalina.core.StandardContext.start(StandardContext.java:3844) [jbossweb-7.0.1.Final.jar:7.0.2.Final]

at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.2.Final.jar:7.0.2.Final]

at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [:1.6.0_24]

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [:1.6.0_24]

at java.lang.Thread.run(Unknown Source) [:1.6.0_24]

 

Same code was working fine with jdk1.4 and weblogic 8.

I would want my war to refer the xerces.jar(2.2.0) and xalan.jar. How do I achieve it using as7 classloader jboss-deployment-structure.xml? Please help me resolve this.

 

Thanks,

Abiya

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community