3 Replies Latest reply on Apr 24, 2009 7:00 AM by jaikiran

    sar file deployment

    luuzz

      Hello,
      I have a jboss service that is auto started only when i deploy it directly in the jboss deploy directory. I tried to put it within an ear file but when i do, it is deployed (i see it in the web-console) but not auto started.
      Can someone please help me ?

        • 1. Re: sar file deployment
          jaikiran

          Please provide more information including the version of JBossAS and Java you use. Also how is the jboss service deployed? Through some -service.xml file? Where in the EAR is it placed? And what does deployed but not auto-started mean? Also post relevant logs from the console (not server.log).

          While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.

          • 2. Re: sar file deployment
            luuzz

            Hello,
            I am using jboss 4.2.0 on jdk 1.6.
            the service is deployed as a .sar (which contains a -service.xml) directly copied in the deploy directory .
            When i do so, it works perfectly and the service is started after deployment.
            But when i place the sar file in an ear, the service is not deployed although i declared the sar module in the application.xml file.

            • 3. Re: sar file deployment
              jaikiran

               

              "luuzz" wrote:

              But when i place the sar file in an ear, the service is not deployed although i declared the sar module in the application.xml file.


              You should be adding the sar as a module in META-INF/jboss-app.xml of the EAR:
              <jboss-app>
               <module>
               <service>myapp.sar</service>
               </module>
              </jboss-app>
              

              assuming the myapp.sar is at the root of the EAR