Skip to Content
author's profile photo Former Member
Former Member

Error while deploying a Message-Driven Bean

Hi,

I created a simple Message-Driven Bean, and tried to deploy it to SAP J2EE6.40 SP9. The log shows an error:

"Application sap.com/MaterialProxyEAP cannot be started. Reason: it has hard reference to resource QueueConnectionFactory with type javax.jms.QueueConnectionFactory, which is not active on the server."

Does anyone know how to correct this error?

Thanks a lot for help!

Regards,

Hart

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2005 at 07:49 AM

    Hi,

    You must deploy such QueueConnectionFactory through JMSConnector GUI in Visual Administrator.

    VA -> Server -> Services -> JMSConnector

    Best Regards,

    Violeta Georgieva

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Hart,

      For every MDB in your application you have to specify the name of the destination to which the MDB will listen, and the name of the connection factory that will be used by the EJB Container to obtain connections in order to register the bean as a message listener. This is done in the ejb-j2ee-engine.xml and is described in the above document (http://help.sap.com/saphelp_erp2004/helpdata/en/3d/41bee546e94ad48537f2cf06a29818/frameset.htm).

      I guess that you have already done so. Now you have to create the necessary destinations and connection factories. I see that Violeta has already provided you with some help how to do that. The problem in your case is most obviously that you have specified the same application name in the jms-destinations.xml as in the previously deployed jms-factories.xml. This has caused the factories to be undeployed. You can try by specifying different application names or you can omit the application-name tags in both XML's as they are optional. In this case the JMS Connector service will generate automatically names for your JMS resources applications.

      Best regards,

      Vladimir

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.