3 Replies Latest reply on Feb 29, 2004 10:59 AM by Sherman Wood

    build and deploy from current cvs ? ()

    rene_d_l Newbie

      jboss 3.2.3
      jdk 1.4.2

      I read all (most of) build related topics in this forum.
      -- prepared successful the hsql-database running inside my jboss
      -- copied $NukesHome\build\etc\local.proprties-hsqldb to $NukesHome\build\local.proprties.
      -- run $NukesHome\build\build.bat -> successful
      -- run $NukesHome\nukes\build.bat deploy -> successful
      -- start my jboss an get this error:

      2004-02-27 17:01:49,058 ERROR [org.jboss.ejb.EntityContainer] Starting failed
      org.jboss.util.NestedRuntimeException: Failed to create new proxy target; - nested throwable: (java.lang.reflect.InvocationTargetException)
      at org.jboss.proxy.compiler.Proxy.newProxyInstance(Proxy.java:52)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateBeanClassInstanceCommand.(JDBCCreateBeanClassInstanceCommand.java:62)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateBeanClassInstanceCommand(JDBCCommandFactory.java:123)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:463)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:388)
      at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:152)
      at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:342)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy34.start(Unknown Source)
      at org.jboss.ejb.EjbModule.startService(EjbModule.java:331)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy14.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy12.start(Unknown Source)
      at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:544)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:824)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:976)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:394)
      at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:642)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:395)
      at java.lang.Thread.run(Thread.java:534)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
      at org.jboss.proxy.compiler.Proxies$Impl.newTarget(Proxies.java:613)
      at org.jboss.proxy.compiler.Proxies.newTarget(Proxies.java:78)
      at org.jboss.proxy.compiler.Proxy.newProxyInstance(Proxy.java:49)
      ... 91 more
      Caused by: javax.ejb.EJBException: null; CausedByException is:
      ejb not bound
      at org.jboss.nukes.core.ejb.UserEJB.(UserEJB.java:98)
      at org.jboss.nukes.core.ejb.UserEJB$Proxy.()
      ... 98 more


      Has anyone a hint for me to solve this problem?
      Many thanks in advance!

        • 1. Re: build and deploy from current cvs ? ()
          Sherman Wood Apprentice


          It looks like the UserEJB did not deploy. You should have had error messages in the log.

          Did you get a NukesDS datasource in the deploy directory?


          Sherman

          • 2. Re: build and deploy from current cvs ? ()
            rene_d_l Newbie

             

            "sgwood" wrote:

            It looks like the UserEJB did not deploy. You should have had error messages in the log.

            Did you get a NukesDS datasource in the deploy directory?


            Sherman


            No, the UserEJB was deployed successful.
            ...
            2004-02-27 17:01:46,354 INFO [org.jboss.ejb.EjbModule] Deploying UserEJB
            2004-02-27 17:01:46,585 INFO [org.jboss.ejb.EjbModule] Deploying FileEJB
            2004-02-27 17:01:46,595 INFO [org.jboss.ejb.EjbModule] Deploying ProfileEJB
            2004-02-27 17:01:46,605 INFO [org.jboss.ejb.EjbModule] Deploying PropertyEJB
            2004-02-27 17:01:46,615 INFO [org.jboss.ejb.EjbModule] Deploying PropertyDefaultValueEJB
            2004-02-27 17:01:46,645 INFO [org.jboss.ejb.EjbModule] Deploying PropertyValueEJB
            2004-02-27 17:01:46,655 INFO [org.jboss.ejb.EjbModule] Deploying GroupEJB
            2004-02-27 17:01:46,755 INFO [org.jboss.nukes.core.modules.user.UserModule] Creating
            2004-02-27 17:01:46,755 INFO [org.jboss.nukes.core.modules.user.UserModule] Created
            .....

            and there is the hsql-spezific nukes-ds.xml in the deploy directory, which I have copied fom $NukesHome\nukes\src\resources\hsqldb!

            What else can I check, to solve the problem?

            • 3. Re: build and deploy from current cvs ? ()
              Sherman Wood Apprentice


              This is falling over constructing a new UserEJB. You have:

              Caused by: javax.ejb.EJBException: null; CausedByException is:
              ejb not bound
              at org.jboss.nukes.core.ejb.UserEJB.(UserEJB.java:98)

              The corresponding code is:

              
               public UserEJB()
               {
               try
               {
               InitialContext ctx = new InitialContext();
               tm = (TransactionManager)ctx.lookup("java:/TransactionManager");
               propertyValueHome = (PropertyValueEJBLocalHome)ctx.lookup(PropertyValueEJBLocalHome.COMP_NAME);
               }
               catch (NamingException unexpected)
               {
               // Am I allowed to do that ?
              Line 98: throw new EJBException(unexpected);
               }
               }
              


              Are the TransactionManager and PropertyValueEJBLocalHome bound to JNDI?

              Sherman