-
1. Re: Automatic re-deployment: stopped but not starting
wdfink Dec 29, 2010 7:14 AM (in response to piotrekde)I'm not sure if it helps but
do not remove your .ear,
copy the new .ear into the same filesystem (not to the deploy directory)
use 'move' instead of copy to replace the .ear
copy is not always an atomar operation.
-
2. Re: Automatic re-deployment: stopped but not starting
piotrekde Dec 29, 2010 1:28 PM (in response to wdfink)Thanks for answer!
I've done as you suggested but it didn't help - it is the same issue as previously - EAR is stopped but not started.
The same when I do it from system command-line level. Also, I've experimented with file permissions (my OS is Linux), but even after 777 permission there is still the same problem.
This is my hdscanner-jboss-beans.xml (I think it's standard for this version of JBoss)
<?xml version="1.0" encoding="UTF-8"?><!--Hot deployment scanning$Id: profileservice-jboss-beans.xml 79345 2008-10-10 13:46:55Z emuckenhuber $--><deployment xmlns="urn:jboss:bean-deployer:2.0"><!-- Hotdeployment of applications --><bean name="HDScanner"class="org.jboss.system.server.profileservice.hotdeploy.HDScanner"><property name="mainDeployer"><inject bean="MainDeployer"/></property><property name="controller"><inject bean="jboss.kernel:service=KernelController"/></property><property name="profileService"><inject bean="ProfileService"/></property><property name="scanPeriod">5000</property><property name="scanThreadName">HDScanner</property></bean></deployment><?xml version="1.0" encoding="UTF-8"?>
<!--
Hot deployment scanning
$Id: profileservice-jboss-beans.xml 79345 2008-10-10 13:46:55Z emuckenhuber $
-->
<deployment xmlns="urn:jboss:bean-deployer:2.0">
<!-- Hotdeployment of applications -->
<bean name="HDScanner"
class="org.jboss.system.server.profileservice.hotdeploy.HDScanner">
<property name="mainDeployer"><inject bean="MainDeployer"/></property>
<property name="controller"><inject bean="jboss.kernel:service=KernelController"/></property>
<property name="profileService"><inject bean="ProfileService"/></property>
<property name="scanPeriod">5000</property>
<property name="scanThreadName">HDScanner</property>
</bean>
</deployment>
-
3. Re: Automatic re-deployment: stopped but not starting
wdfink Dec 29, 2010 2:24 PM (in response to piotrekde)Could you attach a server.log with startup and direct redeploy attempt?
-
4. Re: Automatic re-deployment: stopped but not starting
piotrekde Dec 29, 2010 5:54 PM (in response to wdfink)I found a solution.
Because redeployment has been failing, I wasn't waiting for JBoss to shutdown - just killing it (kill -9). Server hadn't change to stop correctly so that I haven't seen in syslog that in fact it stucked on undeploying one bean. Everything looked correctly as everything finished without errors, but actually undeployment process stucked. My fault, and solution : just be patient and do not kill JBoss
Thanks!