-
1. Re: No URLDeploymentScanner in 5.0?
alesj Sep 11, 2008 9:53 AM (in response to gjwilk01)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 Sep 11, 2008 10:13 AM (in response to gjwilk01)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 Sep 11, 2008 10:13 AM (in response to 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 Sep 11, 2008 10:46 AM (in response to gjwilk01)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 Sep 17, 2008 2:19 PM (in response to gjwilk01)Worked as advertised - thx!
-
6. Re: No URLDeploymentScanner in 5.0?
skin123 Jan 5, 2009 4:39 AM (in response to gjwilk01)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 Jan 5, 2009 9:09 AM (in response to gjwilk01)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 Jan 5, 2009 9:24 AM (in response to gjwilk01)"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 Jan 5, 2009 9:40 AM (in response to gjwilk01)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 Jan 5, 2009 9:57 AM (in response to gjwilk01)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 Jan 5, 2009 10:38 AM (in response to gjwilk01)<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 Jan 5, 2009 11:04 AM (in response to gjwilk01)ok thanks a lot
it works perfectly