#192 ResourceAdapterModule creation fixed

v3.0 Rabbit Hole
closed-fixed
nobody
JBossCX (28)
7
2002-04-09
2002-04-09
No

In the current head, rar deployment is completely
broken because any creation of
management.ResourceAdaptorModule fails.

This is due to a wrong default for the parent
application name when there is no such parent.

Currently you set it to the name of the rar-application
itself which is not possible, JbossManagement will
throw an ugly NoSuchElementException (Andreas: iterator
().next() is a not very nice piece of code ;-)

I guess the default should be null when the parent is
null itself.

I attached a patch for RarDeployer which fixes the
problem.

Discussion

  • Scott McLaughlin

    Logged In: YES
    user_id=432640

    This is a change I made last night, when I commited it I
    did not see any errors. I will look into it.

    as a side note I will also clean up the code
    removing the iterator.next()

     
  • Scott McLaughlin

    Logged In: YES
    user_id=432640

    Doing a clean checkout of HEAD I don't see this problem
    my guess would be that you don't have the current version of
    org/jboss/management/j2ee/ResourceAdapterModule.java
    under the management module.

     
  • Anonymous - 2002-04-09
    • assigned_to: d_jencks --> nobody
    • status: open --> closed-fixed
     
  • Anonymous - 2002-04-09

    Logged In: YES
    user_id=175199

    your are right. But its nevertheless strange, because I
    made a cvs update on jboss-all this morning.

    Thx anyway,
    CGJ

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks