-
1. Re: Redeploying exploded WAR?
rickardoberg Jul 15, 2002 5:46 AM (in response to rickardoberg)I just downloaded the 3.1.0 CVS snapshot, and the URLDirectoryScanner is gone. The remaining scanner, URLDirectoryScanner, did not like exploded directories (it tried to deploy index.html), so what then? How do I deploy and redeploy exploded WAR files?
-
2. Re: Redeploying exploded WAR?
adrian.brock Jul 15, 2002 8:56 AM (in response to rickardoberg)I can't say that I've tried the directory scanner.
The default URLDeploymentScanner works or me providing
you specify the parent directory of the exploded WAR.
Regards,
Adrian -
3. Re: Redeploying exploded WAR?
marc.fleury Jul 15, 2002 5:54 PM (in response to rickardoberg)fuck me... prove you are THE rickard oberg :)
-
4. Re: Redeploying exploded WAR?
marc.fleury Jul 15, 2002 5:57 PM (in response to rickardoberg)I will even answer that one for you (just in case you are my Rickard Oberg). Name your directory something.war/
-
5. Re: Redeploying exploded WAR?
marc.fleury Jul 15, 2002 5:58 PM (in response to rickardoberg)Oh wait you are talking about redeploy... hmmmmm that should work if not it is a bug
-
6. Re: Redeploying exploded WAR?
rickardoberg Jul 16, 2002 7:35 AM (in response to rickardoberg)(yeah yeah, it's me, ;-)
Anyway, what seems to happen is that if I point the scanner to the parent directory it will deploy all directories in there, and I just want it to deploy this particular one. Which is what the URLDirectoryScanner used to provide, but now that's gone (and even that one didn't allow for redeploy).
It seems so close. The dir scanner could deploy a particular exploded directory, and it even set the right watch URL (i.e. to the web.xml file), but when I touched that file nothing happened.
If this could work JBoss will be very nice to use for development. Otherwise it's back to the painful "redeploy the whole EAR" thing.
BTW, is there a way to *explicitly* tell JBoss to redeploy it? Some client tool to invoke? That would work too, even better really.
I tried looking in the docs, and also searching the forums, but came up empty.
/Rickard, who-I-guess-should-know-this-but-don't -
7. Re: Redeploying exploded WAR?
marc.fleury Jul 16, 2002 11:39 AM (in response to rickardoberg)> (yeah yeah, it's me, ;-)
prove it, what are you working on now :)
> It seems so close. The dir scanner could deploy a
> particular exploded directory, and it even set the
> right watch URL (i.e. to the web.xml file), but when
> I touched that file nothing happened.
That's a bug. File it.
> BTW, is there a way to *explicitly* tell JBoss to
> redeploy it? Some client tool to invoke? That would
> work too, even better really.
hmmm right now there is the MainDeployer interface of course, you might want to take a look at that, but other than that I agree that we should make the individual deployment an MBean and have it support a "redeploy" operation. You might want to take a look at the "DeploymentInfo" which is the internal representation of the deployment. This guy should be in the navigation of the MBean stuff so you could just click on the subdeployment and click on "redeploy" as opposed to entering the URL everytime (and I don't know that the support for exploded subURLs really works).
> /Rickard, who-I-guess-should-know-this-but-don't
:) nah, just keep the QA coming and the ideas. You know we like your ideas around here. -
8. Re: Redeploying exploded WAR?
rickardoberg Jul 16, 2002 4:26 PM (in response to rickardoberg)> prove it, what are you working on now :)
AOP and a CM system :-)
> hmmm right now there is the MainDeployer interface of
> course, you might want to take a look at that, but
> other than that I agree that we should make the
> individual deployment an MBean and have it support a
> "redeploy" operation. You might want to take a look
> at the "DeploymentInfo" which is the internal
> representation of the deployment. This guy should be
> in the navigation of the MBean stuff so you could
> just click on the subdeployment and click on
> "redeploy" as opposed to entering the URL everytime
> (and I don't know that the support for exploded
> subURLs really works).
As long as the URL is the same I don't care, because Ant will be doing the clicking.
/Rickard -
9. Re: Redeploying exploded WAR?
adrian.brock Jul 17, 2002 10:20 AM (in response to rickardoberg)David Jencks recently added this ant task for jmx
invocations.
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/contrib/varia/src/main/org/jboss/ant/
Regards,
Adrian -
10. Re: Redeploying exploded WAR?
davidjencks Jul 17, 2002 6:51 PM (in response to rickardoberg)in particular, try the main deployer redeploy (String) op. It works to redeploy a .war inside a deployed exploded .ear. You can use this from the web jmx interface or through ant. I've been finding the ant task really handy to include in build scripts.