1 2 Previous Next 17 Replies Latest reply on Sep 3, 2010 5:48 AM by raghav Sangam

    Jboss 5.1: Unable to enable hot deployment with custom deploy directory

    raghav Sangam Newbie

      Hi,

       

      We have just started support jboss 5.1 appliaction platform for our application.  Since application is huge, instead of copying the application ear into deploy folder of jboss server, we are using custom deploy folder. <our-deploy-folder> And this has been configured in <jboss-home>/server/our-server/conf/bootstrap/profile.xml and <jboss-home>/server/our-server/conf/bootstrap/vfs.xml as suggested in (Jboss AS plaform :Getting Started Guide 5.0).

       

      Hot deployment is enabled, as "hdscanner-jboss-beans.xml" is present in <jboss-home>/server/our-server/deploy folder (and has been deployed). Jboss has been restarted and our application gets deployed (from <our-deploy-folder>). However, Hot deployment doesn't seem to be working. I tried to modify a JSP (,say) in a <our-deploy-folder/app.ear/app.war/jsp/test.jsp>. Tried to add some other wars etc to this dir, still no luck

       

       

      Just for Ref:

      entry in profile.xml

      ===============

      <bean name="BootstrapProfileFactory" class="org.jboss.system.server.profileservice.repository.StaticProfileFactory">
            <property name="bindingsURI">${jboss.server.home.url}conf/bindingservice.beans</property>
            <property name="bootstrapURI">${jboss.server.home.url}conf/jboss-service.xml</property>
              <property name="deployersURI">${jboss.server.home.url}deployers</property>
              <property name="applicationURIs">
                  <list elementClass="java.net.URI">
                      <value>${jboss.server.home.url}deploy</value>
                      <value>file://D:/dev/APP_JBoss/build/app_stage/app_deploy</value>
                  </list>
              </property>
              <property name="attachmentStoreRoot">${jboss.server.data.dir}/attachments</property>
              <property name="profileFactory"><inject bean="ProfileFactory" /></property>
          </bean>

       

      entry in vfs.xml

      ===========

      <entry>
                <key>file://D:/dev/APP_JBoss/build/app_stage/app_deploy</key>
                <value><inject bean="VfsNamesExceptionHandler"/></value>
      </entry>

       

      Awaiting a kind help from someone who has got similar stuff working!

       

      Thanks,

      Raghav.

        1 2 Previous Next