• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB already registered exception

 
Ranch Hand
Posts: 128
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you sure you are not deploying the same EJB twice? Can you post the console logs?
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Or you've just named two EJBs the same. Check for duplications.
 
uttam kumar
Ranch Hand
Posts: 128
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
uttam kumar
Ranch Hand
Posts: 128
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Those who dance are thought mad by those who hear not the music. This tiny ad plays the bagpipes:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic