Hi. Try stopping JBoss and removing your server/default/tmp and server/default/work directories then startup JBoss and redeploy.
If that doesn't work check the JBoss startup log to see whether it really is registering the module twice. If so ... check that your ejb module doesn't exist in more than one jar or ear in your deploy directory. Also check that you haven't copy-pasted an EJB without renaming it. Regards, Antoine -----Original Message----- From: [email protected] on behalf of Fritz Meissner Sent: Thu 7/27/2006 5:04 PM To: [email protected] Subject: [CTJUG Forum] JBoss throwing InstanceAlreadyExistsException ... when it doesn't! Hi all, I am attempting to deploy an EJB3 module to JBoss v4.04GA. As soon as I copy it into server/default/deploy, it spews forth exceptions which boil down to: ObjectName: jboss.j2ee:module=CSDCMusic-ejb.jar,uid=19587772,service=EJB3 State: FAILED Reason: java.lang.RuntimeException: javax.management.InstanceAlreadyExistsException: persistence.units:jar=CSDCMusic-ejb.jar,unitName=CSDCMusic-ejb already registered. On deleting the ejb3-jar, I get this: 424 WARN [ServiceController] Ignoring request to destroy nonexistent service: persistence.units:jar=CSDCMusic-ejb.jar,unitName=CSDCMusic-ejb Which seems to me to indicate that it doesn't know that the EJB module exists because it didn't deploy properly because it thought the module already existed, because it didn't undeploy properly the last time because it didn't know that the module existed because.... etc I have tried shutting down JBoss, looking for rogue processes, and rebooting (twice). Nothing seems to work. Is there a place that JBoss stores module names that won't get cleared after all that? How do I get JBoss to forget everything it's ever known? Regards, Fritz --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CTJUG Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/CTJUG-Forum For the ctjug home page see http://www.ctjug.org.za -~----------~----~----~----~------~----~------~--~---
<<inline: winmail.dat>>
