1 Reply Latest reply on Jul 24, 2006 9:05 AM by rpiaggio

    Unexploded EAR won't redeploy even when touching application

    rpiaggio

      Obviously I'm doing something wrong but I don't know what.

      I added a path in my workspace to the DeploymentScanner:

      <attribute name="URLs">
       deploy/,
       file:/D:/workspace/Myproject/deploy
       </attribute>


      Inside D:/workspace/Myproject/deploy I have the following structure:
      Myproject-ear/
       META-INF/
       application.xml
       Myproject-EJB.jar/
       ...
       META-INF/
       ejb-jar.xml
       persistence.xml
       Myproject-Web.war/
       ...
       WEB-INF/
       web.xml


      The application.xml references the other exploded packages:
      <?xml version="1.0" encoding="UTF-8"?>
      <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
       <display-name>Test</display-name>
       <description>Myapplication</description>
      
       <module>
       <ejb>Myproject-EJB.jar</ejb>
       </module>
      
       <module>
       <web>
       <web-uri>Myproject-Web.war</web-uri>
       <context-root>myapp</context-root>
       </web>
       </module>
      </application>


      This deploys fine when JBoss (4.0.4.GA) is started. It also works if I make changes to the files. But if I want to force a redeploy, there's no way to do it. I tried touching applicacion.xml, ejb-jar.xml and web.xml but nothing happens.

      What am I missing?