3 Replies Latest reply on Mar 10, 2011 2:12 AM by wdfink

    DEPLOYMENTS MISSING DEPENDENCIES

    nimrob28

      I am completely new to JBoss, JavaEE projects and databases as whole. I am using JBoss AS 5.1.0 GA and I have made a bare-bones entity in my project with NetBeans just to see if I can even get it deployed properly. I am using Windows 7 64 bit. When I try to deploy my project I get the single error message:

      [quote]DEPLOYMENTS MISSING DEPENDENCIES:

        Deployment "persistence.unit:unitName=Maze.ear/Maze-ejb.jar#Maze-ejbPU" is missing the following dependencies:

          Dependency "jboss.jca:name=DefaultDS [jdbc:hsqldb:C:\jboss-5.1.0.GA\server\default\data\hypersonic\localDB],service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=DefaultDS [jdbc:hsqldb:C:\jboss-5.1.0.GA\server\default\data\hypersonic\localDB],service=DataSourceBinding' **")

       

       

      DEPLOYMENTS IN ERROR:

        Deployment "jboss.jca:name=DefaultDS [jdbc:hsqldb:C:\jboss-5.1.0.GA\server\default\data\hypersonic\localDB],service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=DefaultDS [jdbc:hsqldb:C:\jboss-5.1.0.GA\server\default\data\hypersonic\localDB],service=DataSourceBinding' **[/quote]

       

      I have looked around for the past few hours on why this is but with little luck. I am using the default hsqldb-ds.xml file in server\default\deploy that comes with JBoss 5.1.0GA. What exactly does this error mean? It sounds to me like it is missing a file called localDB but shouldn't this be automatically created? I am rather clueless, thanks for any help.

        • 1. DEPLOYMENTS MISSING DEPENDENCIES
          wdfink

          Looks like that you remove or change the hsql-ds.xml file which provide the DefaultDS database connection.

           

          So how do you start the JBoss and what do you change.

          Could you start correct without your deployment?

          • 2. Re: DEPLOYMENTS MISSING DEPENDENCIES
            nimrob28

            Thank you very much for the reply Wolf-Dieter Dink.

            This problem dissapeared for me after tinketing around a bit. I think it may be I was missing my persistence.xml file so my PersistenceContext annotation in my state bean was freaking out when I tried to make my EntityManager. I am not 100% sure if this was the problem or if that even makes sense because I made many changes to my files before realising my edited .ear was not even being redeployed anyway (I was doing it wrong) but it is currently not an issue anymore.

            • 3. DEPLOYMENTS MISSING DEPENDENCIES
              wdfink

              No problem, your welcome.

              Glad to hear that your app is working now.