The URL in jboss-service.xml is only valid if it is accessible. In other words, you need
to have an HTTP server (which could be JBoss) on localhost with port 7070 open and be able
to access the indicated context (mywar/test.war) through that server. Why? Because JBoss
uses the URL specified as the location of the war file and will attempt to access (read)
it from there. If you can't access it from a browser using that URL, JBoss cannot
access it either.
You might, instead, want to use a file URL, such as file:/home/foo/test/test.war, so that
JBoss can access the war file from the file system.
Also, look at the jboss.system:server=MainDeployer MBean. It has variations on the invoke
operation which accept a URL or a file name. You can use the invoke methods to deploy
applications, even exploded directories. You can invoke the operation either through
the jmx-console or twiddle. Be warned, though, that applications deployed this way are
'lost' when you restart the server and thus need to be redeployed (though if you
use twiddle to do the deploy, you could always write a script to start the server, wait 20
or 30 seconds, and then deploy the apps through twiddle).
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995064#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...