1 Reply Latest reply on Mar 27, 2014 5:32 AM by Jozef Hartinger

    WELD-001408: Unsatisfied dependencies for type OrientDB with qualifiers @Default

    Hristo Stoyanov Master

      Hi I am trying to deploy two modules in Wildfly 8 Final. The first module, called server-1.0.war contains a singleton implementation class (called  OrientDBImpl) along with tons of jars i do not want to include in my other modules :



      public class OrientDBImpl implements OrientDB{

        private OServer server;



        private void postConstruct() throws Exception{

        server = OServerMain.create();

        try(InputStream i = Thread.currentThread().getContextClassLoader().getResourceAsStream("orientdb-server-config.xml");){







        private void preDestroy(){






        public void getDatabaseConnection(){

        return ;//TODO







      The second module, called web-client-1.0.war contain the interface OriendDB and is using CDI  to obtain reference to the server singleton across from the first module like this:



      public class TestServlet extends HttpServlet {


        private static final long serialVersionUID = 1L;


        @Inject OrientDB odb;



          public void service(ServletRequest req, ServletResponse res){






      I have also included in web-client-1.0.war this jboss-deployment-structure.xml:

      <?xml version="1.0" encoding="UTF-8"?>




                  <module name="deployment.server-1.0.war" />






      I still get the below error:


      11:03:57,729 ERROR [org.jboss.as.server] (management-handler-thread - 27) JBAS015870: Deploy of deployment "web-client-1.0.war" was rolled back with the following failure message:

      {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"web-client-1.0.war\".WeldStartService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"web-client-1.0.war\".WeldStartService: Failed to start service

          Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type OrientDB with qualifiers @Default



      Any clue?