1 2 Previous Next 23 Replies Latest reply on Jan 9, 2012 5:43 AM by abiya Go to original post
      • 15. Re: How to load different version of my jar in jboss as7
        abiya

        The class which has the code getServletContext().getResourceAsStream(...) is part of WEB-INF/classes folder.

        • 16. Re: How to load different version of my jar in jboss as7
          sfcoy

          Hmm,

           

          Some things to check:

          • the class calling getServletContext().... is not duplicated in one of those EAR jars
          • try without the jboss-deployment-structure.xml file
          • check for typos in the path name?
          • 17. Re: How to load different version of my jar in jboss as7
            abiya

            hanks for taking time to help me out.

            Tried all three suggestions and still unable to get rid of that error

             

            22:38:25,075 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/metreoSSO]] (MSC service thread 1-2) ssoAction: null: 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]

             

            Has anyone else come across similar problem?

             

            The config xmls(struts config, web.xml) under WEB-INF of WAR is not visible to the Custom ActionServlet and the XML parser classes...

             

            Regards,

            Abiya

            • 18. Re: How to load different version of my jar in jboss as7
              abiya

              My ear is unexploded and the war files within it are exploded.Will that cause any issue?

              • 19. Re: How to load different version of my jar in jboss as7
                abiya

                Thanks a lot for helping me out Stephen and Jaikiran.

                 

                It worked fine when I had both my ear and the embedded wars as unexploded ones.

                 

                Thanks,

                Abiya

                • 20. Re: How to load different version of my jar in jboss as7
                  jaikiran

                  abiya wrote:

                   

                  It worked fine when I had both my ear and the embedded wars as unexploded ones.

                   

                  Thanks for posting the solution. This probably is a bug then (assuming the application code isn't doing anything wrong).

                  • 21. Re: How to load different version of my jar in jboss as7
                    abiya

                    I dont think it is application related. Because the same was working fine in weblogic and also I didnt change anything else to fix this issue other than converting both to unexploded ones.

                    • 22. Re: How to load different version of my jar in jboss as7
                      sfcoy

                      abiya wrote:

                       

                      My ear is unexploded and the war files within it are exploded. Will that cause any issue?

                      I only just read this (properly). It's not a standard deployment arrangement and I'm not sure that JBossAS 7.x supports this. A quick look at Class Loading in AS7 does not reveal anything at all about exploded subdeployments.

                       

                      I'm also curious as to what you achieve by deploying like this...

                      • 23. Re: How to load different version of my jar in jboss as7
                        abiya

                        No specific usage as such. Earlier both my ear and wars are exploded. to automate deployment I made ear alone as unexploded and that became an issue.

                        1 2 Previous Next