Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting deployment exception in JBOSS 5.1.1

 
sagar shiraguppi
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am placing the EAR in jboss 5.1.1 and as soon as I start my application I am getting the

"The content of element type "message-driven" must match "(ejb-name,destination-jndi-name,mdb-
user?,mdb-passwd?,mdb-client-id?,mdb-subscription-id?,configuration-name?,security-proxy?,ejb-
ref*,resource-ref*,resource-env-ref*,depends*)"."

the above exception, I tried changing the DTD in ejb-jar.xml but it is throwiing same exception


This ear was previously successfully deployed in JBoss 4 .

Could please anyone help me on this?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apparently your ejb-jar.xml isn't following the xsd/dtd rules. What does your message-driven element in the ejb-jar.xml look like? And what line is the error complaining about?

P.S: While posting xml, code or logs please wrap it in a code block by using the Code button in message editor window. Use the Preview button to make sure the post is correctly formatted.
 
sagar shiraguppi
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1
 
sagar shiraguppi
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is how message driven bean is defined in ejb.jar.xml


<message-driven>
<ejb-name>qqq</ejb-name>
<destination-jndi-name>queue/INBOUNDQ@xyz</destination-jndi-name>
<resource-ref>
<res-ref-name>jms/aa</res-ref-name>
<jndi-name>java:/JmsXA</jndi-name>
</resource-ref>
<invoker-bindings>
<invoker>
<invoker-proxy-binding-name>aaaa</invoker-proxy-binding-name>
</invoker>
</invoker-bindings>
<configuration-name>xyz qq12 Bean</configuration-name>
</message-driven>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic