| 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: 8209
|
|
|
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: 8209
|
|
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: 8209
|
|
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.
|
 |
 |
|
|
subject: Error deploying ejb in JBoss 5
|
|
|