1 Reply Latest reply on Oct 16, 2007 2:51 PM by ah123

    Failed to find module file: xx.sar

    ah123

      I need to deploy scheduler within my project on JBoss 4.2.1. This is the error from the console:

      11:15:05,628 ERROR [MainDeployer] Could not initialise deployment: file:/C:/jboss-4.2.1.GA/server/default/deploy/MyProject.ear
      org.jboss.deployment.DeploymentException: Failed to find module file: myService.sar
       at org.jboss.deployment.EARDeployer.init(EARDeployer.java:295)
       at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)


      The ear file structure is:
      MyProject.ear
       +com
       +META-INF
       application.xml
       ejb-jar.xml
       jboss.xml
       jboss-app.xml
       MANIFEST.MF
       +myService.sar
       +com
       +META-INF
       MANIFEST.MF
       scheduler-service.xml
       MyProject.jar
      

      This is what I have in jboss-app.xml
      <!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD J2EE Application 1.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd">
      <jboss-app>
      
       <module>
       <service>myService.sar</service>
       </module>
      
      </jboss-app>
      


      My question is why it can't not find the .sar file when I deploy to jboss?

      Thanks for any help.
      A.

        • 1. Re: Failed to find module file: xx.sar
          ah123

          I solved this problem. Here's how my jboss-app.xml looks like:

          <jboss-app>
           <module>
           <service>META-INF/scheduler-service.xml</service>
           </module>
          </jboss-app>
          

          I also rearranged my ear file:
          
          MyProject.ear
           +com
           +META-INF
           application.xml
           ejb-jar.xml
           jboss.xml
           jboss-app.xml
           scheduler-service.xml
           MANIFEST.MF
           MyProject.jar
          


          It worked.