Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Not able to deploy MDB. ERROR: JBAS014771: Services with missing/unavailable dependencies

 
Ishan Pandya
Ranch Hand
Posts: 228
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am very new to EJB. Started with Session bean demo which was working fine. (created a jar file which had EJB and a WAR file which had servlet)

But face some issues when created MDB . (For that also created a JAR file which had EJB and a WAR file which had servlet)
I have used in servlet and in MDB. I hope that's fine.

I am using WildFly 8 application server in "standalone-full" mode.
But while deploying it I got some errors of missing dependencies. Trace of my application server log is as follows:



This example is taken from the EJB 3.1 Cookbook's 1st Chapter. I have searched on https://community.jboss.org/message/756775 but didnt get it. Have only used CDI annotations and no xml.

Removed few lines of code from the top which i guess was not necessary, to make it short.
Hope this question is in right thread.
 
Claude Moore
Ranch Hand
Posts: 832
7
IBM DB2 Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you define your connection factory and queue references in standalone-full.xml ?
I'm not an expert with Jboss, I'm just starting studying how to work with Apache Active MQ , and I run in a similar issue...
 
Ishan Pandya
Ranch Hand
Posts: 228
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have searched in my standalone-full.xml for connection-factory and found the following:



and



There is code for queue:



Is it what you are asking for?
 
Claude Moore
Ranch Hand
Posts: 832
7
IBM DB2 Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. As far as I can see, your specific queue and activation spec isn't declared, is it ?
 
Ishan Pandya
Ranch Hand
Posts: 228
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry but I didnt get you. Are this things you are asking for are declared in standalone-full.xml or in the MDB code??
 
Claude Moore
Ranch Hand
Posts: 832
7
IBM DB2 Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry my post wasn't clear. I mean: you have to define your ActivationSpec and your queue/topic in the xml standalone-full.xml
 
Ishan Pandya
Ranch Hand
Posts: 228
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have not changed or added anything in standalone-full.xml after I have downloaded "Wild-fly 8 final". I searched those two thing that you just said. But didnt find any in my standalone-full.xml.
 
Ishan Pandya
Ranch Hand
Posts: 228
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have found out a link to define the activationSpec but it is for IBM server. How to define it in WildFly??
MDB of my project has following annotations.:



Is it something related to ActivationSpec and queue/topic??
 
Claude Moore
Ranch Hand
Posts: 832
7
IBM DB2 Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As i told you, i'm all but a jboss expert. As far as i know, you need to edit standalone-full.xml configuration file and add proper entries for managed objects, like queues, conn factories, or activation specs.Otherwise, when your mdb is istantiated by the cointainer, lookup of such entities will fail and the container will complain consequently. I started using active mq as external broker, you're using hornetq which is the default embedded jms provider for jboss; anyway i suppose configuration steps to be quite the same. Did you have a look to jboss docs and tutorial?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!