-
Patch
-
Resolution: Obsolete
-
Minor
-
JBossAS-4.0.3RC1
-
None
-
Windows 2000, JDK 1.5.0_04
I have a Web-Application with dependencies to a Datasource and want the WebApp
to be redeployed when the *-ds.xml file is changed.
So I injected the Dependencies in the jboss-web.xml:
<jboss-web>
<depends>jboss.jca:name=TranstoolDS,service=DataSourceBinding</depends>
<depends>jboss.jca:name=TranstoolDS,service=LocalTxCM</depends>
<depends>jboss.jca:name=TranstoolDS,service=ManagedConnectionFactory</depends>
<depends>jboss.jca:name=TranstoolDS,service=ManagedConnectionPool</depends>
</jboss-web>
When i change the ds.xml-File Jboss tries to redeploy the war-file, but
finishes with an exception (stacktrace is appended at the end):
So i got to have a look to org/jboss/web/WebModule.java and found the lines 63-71
63: public synchronized void startModule()
64: throws DeploymentException
65:
this.di becomes null on destroy in the following piece of code (line 54-59)
54: protected void destroyService()
55:
So i commented out the lines 56-58
54: protected void destroyService()
55:
and recompile JBoss 4.0.3 RC1. And now, it works like expected!