Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error deploying ejb in JBoss 5

 
uttam kumar
Ranch Hand
Posts: 128
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I am getting the following error while deploying the ejb in JBoss 5. I couldn'd understand the reason. The same is working fine in JBoss 4.


the ejb-jar.xml file is too huge to provide here but I am giving the portion of file where this error has occured viz [86,19]


Please tell me the solution.
Thanks,
Uttam
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As mentioned in the error message, your ejb-jar.xml is not following the dtd. Specifically, the ejb-local-ref should be declared before the resource-ref element.
 
uttam kumar
Ranch Hand
Posts: 128
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello Jai,
your solution works fine, but as I do the changes new errors comes up like this time it is content of element type "message-driven".......which is totally different from the previous one. Is there any configuration to make it compatible with the previous one.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Errors like that just indicate that your xml files are not following the dtd. The best thing to do is fix the xml files. However, if you want to stop the validation from happening, then maybe this will help. I'm not sure though, since i haven't given it a try myself.
 
uttam kumar
Ranch Hand
Posts: 128
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jai,
your solution works fine.....thanks a lot !!!
but now I am getting a new problem.

what does this mean ?
am i missing any file ?
should I create a new thread for this or go on with this ?
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
uttam kumar wrote:
but now I am getting a new problem.

what does this mean ?
am i missing any file ?


Not sure what that error is.

uttam kumar wrote:
should I create a new thread for this or go on with this ?


Please create a new one and provide more details including the console logs and your relevant configuration files.
 
uttam kumar
Ranch Hand
Posts: 128
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jai,
I have solved that problem. Actually I havent made any entry for entity-rmi-invoker in standardjboss.xml file.
thanks for your help.
 
vignesh kumar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Uttam Kumar.

I am getting an error while deploying my config.jar .
The following is the error.
org.deployers.spi.DeploymentException: Failed to locate invoker: entity-rmi-invoker .

Could you explain how did you fix this error. It will help me to fix my issues.

Thanks ,
Vignesh.
 
uttam kumar
Ranch Hand
Posts: 128
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vignesh,

The problem is that your EJB is looking for an rmi invoker which you have called in you jboss.xml file. It searchs either in standardjboss.xml or in your jboss.xml

Please go through your jboss.xml to find out where is the wiring missing.

Thanks,
Uttam Kumar
 
vignesh kumar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Uttam Kumar,

I fixed this issue in jboss.xml file. Thanks for helping me to fix this issue.

Thanks.
Vignesh.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic