[jboss-user] [Beginner's Corner] - How to load different version of my jar in jboss as7

abiya do-not-reply at jboss.com
Tue Dec 13 04:19:05 EST 2011


abiya [http://community.jboss.org/people/abiya] created the discussion

"How to load different version of my jar in jboss as7"

To view the discussion, visit: http://community.jboss.org/message/641205#641205

--------------------------------------------------------------
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
[http://community.jboss.org/message/641205#641205]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111213/61caddf6/attachment.html 


More information about the jboss-user mailing list