[jboss-user] [EJB/JBoss] - hi ppl help me out in removing
gopal1.v@tcs.com
do-not-reply at jboss.com
Wed May 16 01:41:18 EDT 2007
Hi Guys I am using JBoss 4.0.5 +eclipse
I wrote a simple Message driven bean Firstly i tried without using any deployment descriptors....It gave me this error:
WARN [MessagingContainer] No message-driven-destination given; using; guessing type
09:33:58,162 WARN [MessagingContainer] Could not determine destination type, defaults to: javax.jms.Topic
09:33:58,178 WARN [ServiceController] Problem starting service jboss.j2ee:ear=JMS1.ear,jar=JMS1.jar,name=SimpleMessageDriven,service=EJB3
org.jboss.deployment.DeploymentException: Required config property RequiredConfigPropertyMetaData at 277bd2[name=destinationType
--- MBeans waiting for other MBeans ---
ObjectName: jboss.j2ee:ear=JMS1.ear,jar=JMS1.jar,name=SimpleMessageDriven,service=EJB3
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Required config property RequiredConfigPropertyMetaData at 277bd2[name=destinationType descriptions=[DescriptionMetaData at 143c610[language=en]]] for messagingType 'javax.jms.MessageListener' not found in activation config [] ra=jboss.jca:service=RARDeployment,name='jms-ra.rar'
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.j2ee:ear=JMS1.ear,jar=JMS1.jar,name=SimpleMessageDriven,service=EJB3
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Required config property RequiredConfigPropertyMetaData at 277bd2[name=destinationType descriptions=[DescriptionMetaData at 143c610[language=en]]] for messagingType 'javax.jms.MessageListener' not found in activation config []
Then i wrote ejb-jar and jboss xml files
The contents of these files are like this:
ejb-jar
<ejb-jar version="2.1"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
<enterprise-beans>
<message-driven>
<ejb-name>SimpleMessageDriven</ejb-name>
<ejb-class>source.SimpleMessageDriven</ejb-class>
<transaction-type>Container</transaction-type>
<acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
</message-driven-destination>
<res-ref-name>jms/QCF</res-ref-name>
<resource-ref>
<res-type>javax.jms.QueueConnectionFactory</res-type>
</resource-ref>
</message-driven>
</enterprise-beans>
</ejb-jar>
JBoss
<enterprise-beans>
<message-driven>
<ejb-name>SimpleMessageDriven</ejb-name>
<destination-jndi-name>queue/B</destination-jndi-name>
<resource-ref>
<res-ref-name>jms/QCF</res-ref-name>
<jndi-name>ConnectionFactory</jndi-name>
</resource-ref>
</message-driven>
</enterprise-beans>
Now i am getting This error:
INFO [EARDeployer] Init J2EE application: file:/C:/jems-insatalledJBossServer/server/default/deploy/JMS1.ear
10:56:14,158 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=JMS1.jar
org.jboss.xb.binding.JBossXBException: Failed to parse source: cvc-complex-type.2.4.a: Invalid content was found starting with element 'acknowledge-mode'.
I am doing in EJB 3.0 .I heard that for ejb3.0 no deployment descriptors needed....
Please help me in removing this bug....
Any tutorials or links are welcome...
Thanks in advance...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046014#4046014
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046014
More information about the jboss-user
mailing list