jQuery in Action, 2nd edition*
The moose likes JBoss/WildFly and the fly likes Error deploying ejb in JBoss 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Error deploying ejb in JBoss 5" Watch "Error deploying ejb in JBoss 5" New topic
Author

Error deploying ejb in JBoss 5

uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

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

Joined: Jul 20, 2005
Posts: 9962
    
163

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.


[My Blog] [JavaRanch Journal]
uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

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

Joined: Jul 20, 2005
Posts: 9962
    
163

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

Joined: Jan 27, 2009
Posts: 128

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

Joined: Jul 20, 2005
Posts: 9962
    
163

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

Joined: Jan 27, 2009
Posts: 128

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

Joined: Feb 14, 2006
Posts: 4
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

Joined: Jan 27, 2009
Posts: 128

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

Joined: Feb 14, 2006
Posts: 4
Hi Uttam Kumar,

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

Thanks.
Vignesh.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error deploying ejb in JBoss 5
 
Similar Threads
Error in deploying stateless session bean 2.1 on Jboss 5 GA
How to get the datasource from Bean through deployment descriptor
ejb2 beans from jboss4 to jboss5 need different naming lookup patterns
Regarding two database access.
xdoclet problem while generating ejb-jar.xml