12 Replies Latest reply on Jan 5, 2009 11:04 AM by skin123

    No URLDeploymentScanner in 5.0?

    gjwilk01

      I am migrating our 4.2 deployment environment over to 5.0 and not having much luck finding the URLDeploymentScanner configuration. Has this been replaced by some other MBean, dropped altogether from configuration, or replaced by an entirely new mechanism?
      Sorry if this question has already been answered, but I couldn't find it in the JBossAS5 forum...
      BTW Do we have a comparison of configuration features between 4 and 5 versions published somewhere?

      Thanks in advance,
      ~g

        • 1. Re: No URLDeploymentScanner in 5.0?
          alesj

          Deployment has been completely re-written in JBoss5. ;-)

          Dunno about the comparison.
          But I know there are some useful docs about it,
          either in JBoss5 docs or minimal MC docs.

          What exactly are you looking for?

          • 2. Re: No URLDeploymentScanner in 5.0?
            omerlin

            Hello,

            That's exactly what i tried to do
            in the post http://www.jboss.com/index.html?module=bb&op=viewtopic&t=142075

            But it does not work for me.
            I have put the full stack trace.
            rgds

            • 3. Re: No URLDeploymentScanner in 5.0?
              gjwilk01

              We deploy our *-ds.xml files along with some other *service.xml files in a directory structure external to the JBoss deploy directory. Each deployment environment (dev, qa, prod) has its own set of configuration files. In 4.2 we were simply changing the URLs attribute of the URLDeploymentScanner MBean to reconfigure deployment. So, I am looking for means to tell JBoss to scan a specific directory for the MBean configuration files.

              • 4. Re: No URLDeploymentScanner in 5.0?
                peterj

                Try changing the URIList property in server/xxx/data/profile-service.xml (for CR2 the file is named simply profile.xml, and for the betas the bean that contains this property is in bootstrap-beans.xml).

                In prior versions, the URIList property (it was an attribute of an MBean back then) was very well documented within the file, but all of that nice documentation that explained what URIList is for has disappeared. It would be nice if that documentation appeared again. But you could still use the old documentation.

                • 5. Re: No URLDeploymentScanner in 5.0?
                  gjwilk01

                  Worked as advertised - thx!

                  • 6. Re: No URLDeploymentScanner in 5.0?
                    skin123

                    Hello,
                    My JBoss version is: 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041721)

                    but i dont have the file: server/xxx/data/profile-service.xml.
                    the only file which contains the URIList property is:
                    server/xxx/conf/bootstrap/profile.xml

                    But if I change this property, this doesnt work

                    Thanks in advance for your response

                    • 7. Re: No URLDeploymentScanner in 5.0?
                      venuwin

                      Hi,

                      Even i am facing numerous problems while trying to migrate from Jboss 4 to 5. And to add to the irony, the docs are not updated with correct contents. Don't get carried away by the wrong **guides. Do it on your own or better stay with Jboss 4 until Jboss people publish a correct guide.

                      Vens

                      • 8. Re: No URLDeploymentScanner in 5.0?
                        jaikiran

                         

                        "skin123" wrote:
                        Hello,
                        but i dont have the file: server/xxx/data/profile-service.xml.

                        That's a typo.

                        "skin123" wrote:

                        the only file which contains the URIList property is:
                        server/xxx/conf/bootstrap/profile.xml


                        That's the correct file.

                        "skin123" wrote:

                        But if I change this property, this doesnt work



                        What exactly did you change and what did not work? Please post the changed contents of that file.

                        While posting xml content or code or logs, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure your post is correctly formatted.

                        • 9. Re: No URLDeploymentScanner in 5.0?
                          skin123

                          I added a value in the list of URIs:

                          <!-- Scan for applications -->
                          <bean name="VFSDeploymentScanner" class="org.jboss.system.server.profileservice.VFSDeploymentScannerImpl">
                           <property name="profileService"><inject bean="ProfileService"/></property>
                           <property name="filterInstance"><inject bean="DeploymentFilter"/></property>
                           <property name="URIList">
                           <list elementClass="java.net.URI">
                           <!-- Standard hot deployment directory -->
                           <value>${jboss.server.home.url}deploy/</value>
                           <value>file:/home/my_folder/deploy/</value>
                           </list>
                           </property>
                          </bean>
                          


                          And here, the file server/xxx/conf/bootstrap.xml:
                          <?xml version="1.0" encoding="UTF-8"?>
                          <!--
                           The list of URLs for mc beans to load during bootstrap.
                           $Id: bootstrap.xml 81277 2008-11-19 09:54:09Z dimitris@jboss.org $
                          -->
                          <bootstrap xmlns="urn:jboss:bootstrap:1.0">
                          
                           <url>bootstrap/vfs.xml</url>
                           <url>bootstrap/classloader.xml</url>
                           <url>bootstrap/aop.xml</url>
                           <url>bootstrap/jmx.xml</url>
                           <url>bootstrap/deployers.xml</url>
                           <url>bootstrap/bindings.xml</url>
                           <url>bootstrap/profile-repository.xml</url>
                          
                          </bootstrap>
                          


                          • 10. Re: No URLDeploymentScanner in 5.0?
                            skin123

                            And the problem is:
                            even if I change this property, no application in the folder /home/my_folder/deploy/ is deployed at the start of JBoss

                            • 11. Re: No URLDeploymentScanner in 5.0?
                              jaikiran

                               

                              <url>bootstrap/profile-repository.xml</url>
                              


                              Based on this, i changed the following to my %JBOSS_HOME%/server/xxx/conf/bootstrap/profile-repository.xml:

                              <bean name="SerializableDeploymentRepositoryFactory" class="org.jboss.system.server.profileservice.repository.SerializableDeploymentRepositoryFactory">
                               <property name="storeRoot">${jboss.server.base.dir}</property>
                               <property name="attachmentsRoot">${jboss.server.data.dir}/attachments</property>
                               <property name="applicationURIs">
                               <array elementClass="java.net.URI">
                               <value>${jboss.server.home.url}deploy</value>
                               <!-- Add my own folder -->
                               <value>file:/home/jpai/test/deploy</value>
                              
                              


                              I then placed a simple WAR application in home/jpai/test/deploy folder and started the server. The application was deployed successfully.


                              • 12. Re: No URLDeploymentScanner in 5.0?
                                skin123

                                ok thanks a lot
                                it works perfectly