3 Replies Latest reply on Dec 9, 2015 4:28 AM by jaysensharma

    How to deploy jar in JBoss 5.1.0 EAP

    vish_cs

      Hi,

      I wanted to deploy jar file on JBoss 5.1.0 EAP. This jar file is not EJB JAR. Trying to deploy this JAR file through admin console as exploded jar

      1. EJB 2 JAR

      Browsed jar and selected Deploy exploded=yes and continue. It is giving error as

      "Failed to create Resource test.jar - cause: java.lang.NullPointerException:null"

      This jar entry is visible in WAR and for this context path = test.jar

      Can you please help me how to deploy non EJB JAR in JBoss 5.1.0 EAP

        • 1. Re: How to deploy jar in JBoss 5.1.0 EAP
          jaysensharma

          What does the jar file contain? Is it a simple utility jar?   If yes, then better put it inside the "$PROFILE/lib"  (like $JBOSS_HOME/servers/default/lib) so that its contents will be available to the other deployed applications.   


          Why do you want to deploy a plain JAR to the JBoss ?


          Also please elaborate what exactly do you mean by "This jar entry is visible in WAR and for this context path = test.jar" ?

          • 2. Re: How to deploy jar in JBoss 5.1.0 EAP
            vish_cs

            Hi Jay,

            Thanks for your reply.

            This is not utility jar. This jar is provided by our client as their one application. They wanted us to deploy this on JBOSS 4.1.0 EAP. Please find folder structure

            Test

                 |----common

                 |----Help

                 |----jscripts

                 |----META-INF

                           |---context.xml [contain <Context path="/TestW"/>]

                 |----src

                 |--WEB-INF

                          |----lib

                          |----jboss-web.xml

                          |----web.xml

                

             

            "This jar entry is visible in WAR and for this context path = test.jar" ? - In admin console we have option t

            o deploy application as WAR. In that this application is visible with

            "context path = test.jar".  It should show TestW as per context path specified in context.xml

            Please let me know how to deploy JAR

            • 3. Re: How to deploy jar in JBoss 5.1.0 EAP
              jaysensharma

              Your applications structure looks like a WAR   (Not a JAR)

              I will suggest you to rename   "test.jar" as "test.war"  and simply put it inside the "$PROFILE/deploy" directory and see what happens.

               

              Because the JARs do not include the WEB-INF/web.xml or jboss-web.xml   so i guess your client might have done some type  and might have said  "test.jar"  rather than "test.war"