aspose file tools
The moose likes JBoss/WildFly and the fly likes EJB already registered exception Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Reply Bookmark "EJB already registered exception" Watch "EJB already registered exception" New topic
Author

EJB already registered exception

uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

hi,
I am getting the following error while deploying the ejb in JBoss5.

I dont know the reason of the error. The ejb was running fine in JBoss4 but throwing error in JBoss5. Please suggest me some solution.

Thanks in advance,
Uttam
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8208
    
  71

Are you sure you are not deploying the same EJB twice? Can you post the console logs?


[My Blog] [JavaRanch Journal]
Dean Pullen
Ranch Hand

Joined: May 30, 2003
Posts: 58
Or you've just named two EJBs the same. Check for duplications.
uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

hi jai,
here is the console log. I think its saying for duplicate JNDI not an ejb.
Since I am migrating the existing app from JBoss4 to JBoss5, I am not able to fully understand the root of the prob.
Vikky Bhat
Greenhorn

Joined: Oct 23, 2008
Posts: 20
Hi Uttam,
There could be two reasons for above problem.

1. You might have deployed same bean with different names. so i suggest you to clean deploy folder and redeploy them again. this generally happens if you use Manual deployment in eclipse/any IDE in general (export option).

2. Sometimes if forcefully shutdown jboss in its temp folder it will not delete the previous JNDI bindings. so stop jboss using stop.jar/bat

Hope this may help you.


SCJP, SCWCD, WIPO-IP
uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

thanks for your suggestion Vikky but I am not using any IDE, as i told I am migrating the app from JBoss4 to JBoss5. Initially I though just deploying the ejb jar file will work but it didnt. I am facing new issues daily.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5575

Double-check the contents of your EAR file. The new 5.0 deployers examine the contents of the application and launch new deployers based on those contents. This has caused issues with deploying certain app that have duplicated hteir contents (with the ill-formed MS SQL JDBC JAR file being one of them ore obvious examples).

By the way, did you notice that you didn't post the logs? Also, post the contents of your ear, using: jar -tf xxx.ear


JBoss In Action
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: EJB already registered exception
 
Similar Threads
EJB3.0 on JBOSS 5.0 Deployment problem
EJB3 deployment error on Jboss5
Problem With JBoss In Action Example
AOP AspectManager not working on Jboss 5
Error during Migrating from Jboss4.0.5.GA to Jboss5.0.0.GA