Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Problem with deploying MDB
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

Report this thread to moderator Post Follow-up to this message
Old Post
GCampolo
09-14-04 02:03 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Beans archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:06 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.