Bugs item #610223, was opened at 2002-09-16 23:49
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=610223&group_id=22866
Category: JBossMX
Group: v3.2
Status: Open
Resolution: Fixed
Priority: 7
Submitted By: Michael Bartmann (bartmann)
Assigned to: David Jencks (d_jencks)
Summary: Classloader NPE in dependent redeploy
Initial Comment:
There is a problem under 3.2 when
redeploying an ear with several dependent ears.
When redeploying the dependent ears "manually"
everything works ok.
When instead I redeploy the ear they depend on, they
get re-created,
but after the destroy nulled their classloader.
This results in an NPE during redeployment.
Tested under Branch_3_2, checkout 16.09.2002.
OS Windows NT 4.0, JDK 1.4.0_01
----------------------------------------------------------------------
>Comment By: Michael Bartmann (bartmann)
Date: 2002-10-22 13:30
Message:
Logged In: YES
user_id=69300
I had some other problems in between which kept my from
deploying under HEAD (classloading issues fixed by Adrian).
Now we got a chance to test (using HEAD as of 2002-10-21)
our results are:
When we redeploy the "root"-ear which the other ears
depend on there is no NPE anymore (and no other
exception either), but thereafter many EJBs (even in
the "root"-ear) are not in state STARTED, but in state
DESTROYED; starting them one by one through
html-console works.
There were even EJBs in the central ear which were not
restarted correctly.
----------------------------------------------------------------------
Comment By: David Jencks (d_jencks)
Date: 2002-09-19 17:49
Message:
Logged In: YES
user_id=60525
I believe I have fixed this in HEAD. I'd appreciate
verification before I backport it to 3.2, since it is a
substantial refactoring of the ejb deployment/service
lifecycle code. I'll close this after backporting to 3.2.
----------------------------------------------------------------------
Comment By: David Jencks (d_jencks)
Date: 2002-09-17 07:51
Message:
Logged In: YES
user_id=60525
Thanks, now I know what the problem is, I just have to fix it.
----------------------------------------------------------------------
Comment By: Michael Bartmann (bartmann)
Date: 2002-09-17 07:14
Message:
Logged In: YES
user_id=69300
Below comes the blurb from jboss.xml. Only the MDB in the
dependent ear is declared to be dependent of the "common" ear.
Each of the dependent ears also contains a custom JMSProvider
with its container-configuration. Did I mention that all my
ears have
their own scope?
BTW: Starting any stoping the contained JMSProvider through JMX
is another problem, cause the server doesn't provide the correct
TCL when calling the management methods from remote.
But in the bug we are just discussing this is no problem,
cause the
JMSProvider is not restarted.
<message-driven>
<ejb-name>ACTControlSystemReceiver</ejb-name>
<configuration-name>ACT Message Driven
Bean</configuration-name>
<destination-jndi-name>queue/ACTFLS</destination-jndi-name>
<mdb-user>FLS</mdb-user>
<mdb-passwd>geheim</mdb-passwd>
<ejb-ref>
<ejb-ref-name>ejb/ControlSystemManager</ejb-ref-name>
<jndi-name>transport/ControlSystemManager</jndi-name>
</ejb-ref>
<depends>fs4p.act:service=MS4PMessageService</depends>
<depends>fs4p.act:service=JMSProviderLoader,name=ACTJMSProvider</depends>
<depends>fs4p.act:service=ServerSessionPoolMBean,name=ACTJMSPool</depends>
<depends>jboss.j2ee:service=EJB,jndiName=transport/ControlSystemManager</depends>
<depends>jboss.j2ee:service=EJB,jndiName=material/Material</depends>
</message-driven>
----------------------------------------------------------------------
Comment By: David Jencks (d_jencks)
Date: 2002-09-17 00:26
Message:
Logged In: YES
user_id=60525
I see what causes some of the problem, I think it shows up
if you stop, destroy, create, and start an ejb through the
jmx console. However, could you be more specific about how
you are specifying the dependency between the ears? I'm not
quite sure why the references to the containers in the
dependent .ear are getting saved.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=610223&group_id=22866
-------------------------------------------------------
This sf.net emial is sponsored by: Influence the future of
Java(TM) technology. Join the Java Community Process(SM) (JCP(SM))
program now. http://ad.doubleclick.net/clk;4699841;7576301;v?
http://www.sun.com/javavote
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development