6 Replies Latest reply on Feb 7, 2011 11:58 AM by sp.macuser

    How to deploy my application in an external directory in JBoss-6

    sp.macuser

      The config described in the article below for JBoss 5 does not work with jboss 6. Couldn't find any other info on this topic. Please help.

       

      http://community.jboss.org/wiki/HowtodeploymyapplicationinanexternaldirectoryinJBoss-5

       

      -SP

        • 1. How to deploy my application in an external directory in JBoss-6
          lelleh

          I tried it, and it works for me

          • 2. How to deploy my application in an external directory in JBoss-6
            mp911de
            • 3. How to deploy my application in an external directory in JBoss-6
              sp.macuser

              Thank you, Leiv/Mark, for the info. Sorry for not getting back right away. Was Struggling with several other issues with my jboss upgrade.

               

              Adding "applicationURI" property to the "BootstrapProfileFactory" bean in "conf/boostrap/profile.xml" did not work for me. The error I get indicates  "applicationURIs" property is not supported by "BootstrapProfileFactory" bean.

               

              Mark, from the thread you suggested - it wasn't clear to me which file needs to get updated with the classpath setting for my JBoss 6.0.0 Final build.

               

              I tried changing "UserProfileFactory" bean in "conf/boostrap/profile.xml" and that worked. I am not sure if this will work when I deploy my app as a root user in production. Any input is appreciated.

               

               

                        <bean name="UserProfileFactory"

                                  class="org.jboss.system.server.profileservice.bootstrap.StaticBootstrapProfileFactory">

                                  <property name="confURI">${jboss.server.config.url}</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>

                              <!-- Add your own deploy folder -->

                              <value>file:///deploy/MyApp</value>

                          </list>

                        </property>

                                  <property name="attachmentStoreRoot">${jboss.server.data.dir}/attachments</property>

                        </bean>

               

              Thanks

              • 4. How to deploy my application in an external directory in JBoss-6
                jaikiran

                sp.macuser wrote:

                 


                Adding "applicationURI" property to the "BootstrapProfileFactory" bean in "conf/boostrap/profile.xml" did not work for me. The error I get indicates  "applicationURIs" property is not supported by "BootstrapProfileFactory" bean.

                 

                Ah! Looks like the bean which was used to configure this in AS5 has now changed in AS6. I'll update that wiki for AS6. Thanks for pointing it out.

                 

                 

                sp.macuser wrote:

                 


                 

                I tried changing "UserProfileFactory" bean in "conf/boostrap/profile.xml" and that worked.

                 

                 

                          <bean name="UserProfileFactory"

                                    class="org.jboss.system.server.profileservice.bootstrap.StaticBootstrapProfileFactory">

                                    <property name="confURI">${jboss.server.config.url}</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>

                                <!-- Add your own deploy folder -->

                                <value>file:///deploy/MyApp</value>

                            </list>

                          </property>

                                    <property name="attachmentStoreRoot">${jboss.server.data.dir}/attachments</property>

                          </bean>

                 

                Thanks

                 

                Yes, that's the correct one for JBoss AS6.

                • 6. How to deploy my application in an external directory in JBoss-6
                  sp.macuser

                  Thanks for confirming!