0 Replies Latest reply on Apr 12, 2005 3:30 PM by Paul Nelson

    local-directory copy not working with SAR deployer

    Paul Nelson Newbie

      I have a .sar packaged within an .ear . I'm trying to get JBOSS to copy a directory in my sar into the .../server//data directory . I have confirmed that these files exist in my .sar. The log looks ok but the directory (or file) never shows up. Thanks.

      Im running JBoss 3.2.6 on XP-pro

      here is my app.ear -> service.sar -> META-INF/jboss-service.xml:

      <server>
      <!-- i have tried these individually also -->
       <local-directory path="/resource/task.xml"></local-directory>
       <local-directory path="/resource"></local-directory>
       <local-directory path="/resource/test.jar"></local-directory>
      
       <mbean code="org.jboss.varia.scheduler.Scheduler"
       name="user:service=mbTaskScheduler">
       <attribute name="StartAtStartup">true</attribute>
       <attribute name="SchedulableClass">com.mb.task.Task</attribute>
       <attribute name="SchedulableArguments">c:/tmp/task.xml,c:/temp/</attribute>
       <attribute name="SchedulableArgumentTypes">java.lang.String,java.lang.String</attribute>
       <attribute name="InitialStartDate">0</attribute>
       <attribute name="SchedulePeriod">20000</attribute>
       <attribute name="InitialRepetitions">-1</attribute>
       </mbean>
      </server>
      


      here is an excerp from the log file


      ...MainDeployer] using deployer org.jboss.deployment.SARDeployer@992bae
      ...SARDeployer] about to copy 3 local directories
      ...SARDeployer] about to copy local directory at /resource/NCStask.xml
      ...SARDeployer] copying from file:/C:/jboss-3.2.6/server/mb/tmp/deploy/tmp21159TApp.ear-contents/task.sar/resource/NCStask.xml -> C:\jboss-3.2.6\server\mb\data
      ...SARDeployer] about to copy local directory at /resource
      ...SARDeployer] copying from file:/C:/jboss-3.2.6/server/mb/tmp/deploy/tmp21159TApp.ear-contents/task.sar/resource -> C:\jboss-3.2.6\server\mb\data
      ...SARDeployer] about to copy local directory at /resource/test.jar
      ...SARDeployer] copying from file:/C:/jboss-3.2.6/server/mb/tmp/deploy/tmp21159TApp.ear-contents/task.sar/resource/test.jar -> C:\jboss-3.2.6\server\mb\data
      ...SARDeployer] looking for nested deployments in : file:/C:/jboss-3.2.6/server/mb/tmp/deploy/tmp21159TApp.ear-contents/task.sar