"dimitris(a)jboss.org" wrote : It might be that this service/mbean is not written
to be re-startable, i.e. once you stop you can only undeploy. In those case
deploy/undeploy may be the only operations.
which service/mbean:
jboss.web.deployment:war=/www (standard mbean from jmx-console)
or
www:service=WebAppController
My problem is:
When I call start(), stop(), start, stop, ... methods from
http://localhost:8080/jmx-console (jboss managment web interface) on standard jboss mbean
jboss.web.deployment:war=/www it is working ok - my application is deployed, undeployed,
deployed, undeployed,...
but
when i call the same method from my mbean/service (www:service=WebAppController) I have
exception:javax.naming.NameAlreadyBoundException: TransactionSynchronizationRegistry
| I call stop method from mbean jboss.web.deployment:war=/www:
|
| ObjectName name = new ObjectName("jboss.web.deployment:war=/" + app);
| server.invoke(name, "stop", new Object[0], new String[0]);
|
| now I call this:
|
| ObjectName name = new ObjectName("jboss.web.deployment:war=/" + app);
| server.invoke(name, "start", new Object[0], new String[0]);
|
| Above code ended.
| Now I have exception in jboss server.log file:
|
| 15:45:53,133 ERROR [TomcatDeployment] ENC setup failed
| javax.naming.NameAlreadyBoundException: TransactionSynchronizationRegistry
| ...
| ...
| And my www application is't deployed.
|
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4217482#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...