Code Comments
Programming Forum and web based access to our favorite programming groups.Hi! I am quite new J2EE and JMS and have a question regarding deploying MDBs. I am using the Sun Application Server and got through the J2EE Tutorial and tried to get run also some of the sample applications included. All of the sample apps worked fine and when I want to deploy an own application I always get that error: [#|2004-09-14T12:13:46.828+0200|SEVERE|sun-appserver-pe8.0.0_01|javax.enterp rise.system.container.ejb.mdb|_ThreadID=13;|MDB00017: [EventConsumer]: Exception in creating message-driven bean container: [com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created : ]|#] [#|2004-09-14T12:13:46.878+0200|SEVERE|sun-appserver-pe8.0.0_01|javax.enterp rise.system.container.ejb.mdb|_ThreadID=13;|com.sun.enterprise.connectors.Co nnectorRuntimeException com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created : at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.getPhysical DestinationFromConfiguration(ActiveJmsRe sourceAdapter.java:296) at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.updateMDBRu ntimeInfo(ActiveJmsResourceAdapter.java:232) at com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(Con nectorMessageBeanClient.java:139) at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.j ava:189) at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFact oryImpl.java:196) at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:477 ) at com.sun.enterprise.server.ApplicationLoader.load(ApplicationLoader.java:1 25) at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationL oader.java:96) at com.sun.enterprise.server.ApplicationManager.applicationDeployed(Applicat ionManager.java:205) [...] I really don't know what I am doing wrong...I tried to "copy" the deploy settings from the samples but anyway it doesn't help. I created the JMS objects (TopicConnectionFactory, EventTopic and PhysicalTopic) by the Admin Console and the set deployment inforamtion as following: The MessageDriven Bean: <?xml version='1.0' encoding='UTF-8'?> <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" version="2.1" 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" > <display-name>EventConsumer</display-name> <enterprise-beans> <message-driven> <ejb-name>EventConsumer</ejb-name> <ejb-class>MonitoringService.EventConsumer</ejb-class> <messaging-type>javax.jms.MessageListener</messaging-type> <transaction-type>Container</transaction-type> <message-destination-type>javax.jms.Topic</message-destination-type> <message-destination-link>PhysicalTopic</message-destination-link> </message-driven> </enterprise-beans> <assembly-descriptor> <container-transaction> <method> <ejb-name>EventConsumer</ejb-name> <method-name>onMessage</method-name> <method-params> <method-param>javax.jms.Message</method-param> </method-params> </method> <trans-attribute>Required</trans-attribute> </container-transaction> <message-destination> <message-destination-name>PhysicalTopic</message-destination-name> </message-destination> </assembly-descriptor> </ejb-jar> The application client: <application-client xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4" 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/app...-client_1_4.xsd" > <display-name>MonitoringSender</display-name> <resource-ref> <res-ref-name>jms/TopicConnectionFactory</res-ref-name> <res-type>javax.jms.ConnectionFactory</res-type> <res-auth>Container</res-auth> <res-sharing-scope>Shareable</res-sharing-scope> </resource-ref> <message-destination-ref> <message-destination-ref-name>EventTopic</message-destination-ref-name> <message-destination-type>javax.jms.Topic</message-destination-type> <message-destination-usage>Produces</message-destination-usage> <message-destination-link>ejb-jar-ic1.jar#PhysicalTopic</message-destination -link> </message-destination-ref> <message-destination> <message-destination-name>PhysicalQueue</message-destination-name> </message-destination> </application-client> Has anyone an idea what could be wrong? It would be very important to me...Thanks already! Best regards Gino
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.