2 Replies Latest reply on May 24, 2011 12:10 PM by Oliver Specht

    Deployments missing dependencies

    Oliver Specht Newbie

      Hi,

      I have a problem deploying an ear from Eclipse.

       

      When I run the JBoss from console (same JBOSS_HOME), everything works fine.

       

      Does anyone know what I have to configure in Eclipse or at least where to start looking?

       

      What confuses me is that the error message says that the bean depends on itself?!?

       

      Here is the error message:

       

      10:40:52,779 INFO  [org.jboss.ejb3.deployers.JBossASKernel] Created KernelDeployment for: smartwheels-ejb.jar

      10:40:52,779 INFO  [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss.j2ee:ear=smartwheels-ear.ear,jar=smartwheels-ejb.jar,name=SmartwheelsExcelExportBean,service=EJB3

      10:40:52,779 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   with dependencies:

      10:40:52,779 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and demands:

      10:40:52,780 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     jboss.ejb:service=EJBTimerService; Required: Described

      10:40:52,780 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     jboss-switchboard:appName=smartwheels-ear,module=smartwheels-ejb,name=SmartwheelsExcelExportBean; Required: Create

      10:40:52,780 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     jboss-injector:topLevelUnit=smartwheels-ear.ear,unit=smartwheels-ejb.jar,bean=SmartwheelsExcelExportBean; Required: Described

      10:40:52,780 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and supplies:

      10:40:52,780 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     jndi:smartwheels-ear/SmartwheelsExcelExportBean/local-de.ebcot.smartwheels.export.SmartWheelsExcelExportLocal

      10:40:52,780 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     jndi:smartwheels-ear/SmartwheelsExcelExportBean/local

      10:40:52,780 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     Class:de.ebcot.smartwheels.export.SmartWheelsExcelExportLocal

      10:40:52,780 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     jndi:SmartwheelsExcelExportBean

      10:40:52,780 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     jndi:smartwheels-ear/SmartwheelsExcelExportBean/remote-de.ebcot.smartwheels.export.SmartwheelsExcelExportRemote

      10:40:52,781 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     Class:de.ebcot.smartwheels.export.SmartwheelsExcelExportRemote

      10:40:52,781 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     jndi:smartwheels-ear/SmartwheelsExcelExportBean/remote

      10:40:52,781 INFO  [org.jboss.ejb3.deployers.JBossASKernel] Added bean(jboss.j2ee:ear=smartwheels-ear.ear,jar=smartwheels-ejb.jar,name=SmartwheelsExcelExportBean,service=EJB3) to KernelDeployment of: smartwheels-ejb.jar

      10:40:52,782 INFO  [org.jboss.ejb3.deployers.JBossASKernel] installing bean: jboss.j2ee:ear=smartwheels-ear.ear,jar=smartwheels-ejb.jar,name=SmartWheelsClientBean,service=EJB3

      10:40:52,782 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   with dependencies:

      10:40:52,782 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and demands:

      10:40:52,782 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     jboss-switchboard:appName=smartwheels-ear,module=smartwheels-ejb,name=SmartWheelsClientBean; Required: Create

      10:40:52,782 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     jboss.ejb:service=EJBTimerService; Required: Described

      10:40:52,782 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   and supplies:

      10:40:52,782 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     jndi:smartwheels-ear/SmartWheelsClientBean/remote-de.ebcot.smartwheels.client.SmartWheelsClient

      10:40:52,783 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     jndi:SmartWheelsClientBean

      10:40:52,783 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     jndi:smartwheels-ear/SmartWheelsClientBean/remote

      10:40:52,783 INFO  [org.jboss.ejb3.deployers.JBossASKernel]     Class:de.ebcot.smartwheels.client.SmartWheelsClient

      10:40:52,783 INFO  [org.jboss.ejb3.deployers.JBossASKernel] Added bean(jboss.j2ee:ear=smartwheels-ear.ear,jar=smartwheels-ejb.jar,name=SmartWheelsClientBean,service=EJB3) to KernelDeployment of: smartwheels-ejb.jar

      10:40:52,852 INFO  [org.jboss.ejb3.session.SessionSpecContainer] Starting jboss.j2ee:ear=smartwheels-ear.ear,jar=smartwheels-ejb.jar,name=SmartWheelsClientBean,service=EJB3

      10:40:52,855 INFO  [org.jboss.ejb3.EJBContainer] STARTED EJB: de.ebcot.smartwheels.client.SmartWheelsClientBean ejbName: SmartWheelsClientBean

      10:40:52,865 INFO  [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

       

          smartwheels-ear/SmartWheelsClientBean/remote - EJB3.x Default Remote Business Interface

          smartwheels-ear/SmartWheelsClientBean/remote-de.ebcot.smartwheels.client.SmartWheelsClient - EJB3.x Remote Business Interface

       

      10:40:52,877 WARN  [org.jboss.ejb3.TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers

      10:40:52,887 INFO  [org.jboss.ejb3.session.SessionSpecContainer] Starting jboss.j2ee:ear=smartwheels-ear.ear,jar=smartwheels-ejb.jar,name=SmartwheelsExcelExportBean,service=EJB3

      10:40:52,888 INFO  [org.jboss.ejb3.EJBContainer] STARTED EJB: de.ebcot.smartwheels.export.SmartwheelsExcelExportBean ejbName: SmartwheelsExcelExportBean

      10:40:52,894 INFO  [org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:

       

          smartwheels-ear/SmartwheelsExcelExportBean/remote - EJB3.x Default Remote Business Interface

          smartwheels-ear/SmartwheelsExcelExportBean/remote-de.ebcot.smartwheels.export.SmartwheelsExcelExportRemote - EJB3.x Remote Business Interface

          smartwheels-ear/SmartwheelsExcelExportBean/local - EJB3.x Default Local Business Interface

          smartwheels-ear/SmartwheelsExcelExportBean/local-de.ebcot.smartwheels.export.SmartWheelsExcelExportLocal - EJB3.x Local Business Interface

       

      10:40:52,895 WARN  [org.jboss.ejb3.TimerServiceContainer] EJBTHREE-2193: using deprecated TimerServiceFactory for restoring timers

      10:40:52,902 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy, ctxPath=/smartwheels-servlet

      10:40:52,942 WARN  [org.jboss.profileservice.deployment.hotdeploy.HDScanner] Scan failed: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

       

      DEPLOYMENTS MISSING DEPENDENCIES:

        Deployment "jboss.j2ee:ear=smartwheels-ear.ear,jar=smartwheels-ejb.jar,name=SoloplanWebserviceCronjobBean,service=EJB3_endpoint" is missing the following dependencies:

          Dependency "jboss.j2ee:ear=smartwheels-ear.ear,jar=smartwheels-ejb.jar,name=SoloplanWebserviceCronjobBean,service=EJB3" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'jboss.j2ee:ear=smartwheels-ear.ear,jar=smartwheels-ejb.jar,name=SoloplanWebserviceCronjobBean,service=EJB3' **")

       

      DEPLOYMENTS IN ERROR:

        Deployment "jboss.j2ee:ear=smartwheels-ear.ear,jar=smartwheels-ejb.jar,name=SoloplanWebserviceCronjobBean,service=EJB3" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.j2ee:ear=smartwheels-ear.ear,jar=smartwheels-ejb.jar,name=SoloplanWebserviceCronjobBean,service=EJB3' **

       

          at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1370) [:2.2.0.GA]

          at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1316) [:2.2.0.GA]

          at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:968) [:2.2.0.GA]

          at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:82) [:6.0.0.Final]

          at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.checkComplete(ProfileControllerContext.java:138) [:0.2.2]

          at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:246) [:0.2.2]

          at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]

          at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]

          at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]

          at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]

          at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]

          at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]

          at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]

          at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]

          at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]

          at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]

          at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]

          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_24]

          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_24]

          at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_24]

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_24]

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [:1.6.0_24]

          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [:1.6.0_24]

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_24]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_24]

          at java.lang.Thread.run(Thread.java:662) [:1.6.0_24]

       

       

      Thanks,

      Oliver

        • 1. Re: Deployments missing dependencies
          Wolfgang Knauf Master

          Hi,

           

          could you post the relevant parts of "SoloplanWebserviceCronjobBean" (annotations, class header, injected EJBs)?

           

          Best regards

           

          Wolfgang

          • 2. Re: Deployments missing dependencies
            Oliver Specht Newbie

            Hi, Wolfgang,

            here it is.

             

            There are only two injections as you see. I post them below.

             

            @Singleton

            public class SoloplanWebserviceCronjobBean

            {

             

                @EJB

                private SmartWheelsExcelExportLocal export;

             

                @EJB

                private SmartWheelsClient           client;

             

                /**

                 * Default constructor.

                 */

                public SoloplanWebserviceCronjobBean()

                {

                    System.out.println("Cronjob Initializing");

                }

            ....

             

             

            @Local

            public interface SmartWheelsExcelExportLocal

            {

                public abstract void exportData(boolean sendMails);

             

            }

             

            @Remote

            public interface SmartWheelsClient

            {

            ...

            }