aspose file tools*
The moose likes JBoss/WildFly and the fly likes getting deployment exception in JBOSS 5.1.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "getting deployment exception in JBOSS 5.1.1" Watch "getting deployment exception in JBOSS 5.1.1" New topic
Author

getting deployment exception in JBOSS 5.1.1

sagar shiraguppi
Ranch Hand

Joined: Jul 16, 2007
Posts: 74
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

Joined: Jul 20, 2005
Posts: 10263
    
168

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.

[My Blog] [JavaRanch Journal]
sagar shiraguppi
Ranch Hand

Joined: Jul 16, 2007
Posts: 74
1
sagar shiraguppi
Ranch Hand

Joined: Jul 16, 2007
Posts: 74
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>
 
 
subject: getting deployment exception in JBOSS 5.1.1