10 Replies Latest reply on Apr 13, 2004 8:57 PM by jae

    Basic Question for Cooper or Jae77 (or anyone)

    Nate Johnson Newbie

      Can someone that actually does some development on Nukes please give a brief overview of their process? For instance, do you do everything from the command line and redeploy every time you make a change? Use eclipse with some sort of plugin to do the jboss configuration and (hot) deployment?

      Everything I have tried so far has failed and have yet to get a response to any of my questions on this forum. Its a shame there is a product with such potential but very little information on how to help extend it. I'd like to contribute back to the community, but I can't even get started...

      Frustrated :(

        • 1. Re: Basic Question for Cooper of Jae77 (or anyone)
          Dennis Przybyla Novice

          and one more thing... every time i make a change and run 'build deploy' from the nukes subdirectory, i get a null pointer exception for every module like the following...

          12:00:44,775 INFO [BBModule] Starting
          12:00:45,836 ERROR [Main] Start component failed nukes.modules:name=bb
          java.lang.NullPointerException
           at org.jboss.nukes.core.Main.componentStarts(Main.java:258)
           at org.jboss.nukes.core.Main.access$1100(Main.java:62)
           at org.jboss.nukes.core.Main$3.handleNotification(Main.java:480)
           at org.jboss.mx.server.NotificationListenerProxy.handleNotification(NotificationListenerProxy.java:69)
           at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:95)
           at org.jboss.nukes.mx.AbstractMBean.sendNotification(AbstractMBean.java:98)
           at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:324)
           at org.jboss.mx.modelmbean.ModelMBeanInvoker$ReflectedNotificationBroadcaster.sendNotification(ModelMBeanInvoker.java:534)
           at org.jboss.mx.modelmbean.ModelMBeanInvoker.sendAttributeChangeNotification(ModelMBeanInvoker.java:221)
           at org.jboss.mx.interceptor.MBeanAttributeInterceptor.invoke(MBeanAttributeInterceptor.java:72)
           at org.jboss.mx.interceptor.PersistenceInterceptor2.invoke(PersistenceInterceptor2.java:93)
           at org.jboss.nukes.mx.LifeCycleInterceptor.invoke(LifeCycleInterceptor.java:93)
           at org.jboss.mx.server.MBeanInvoker.setAttribute(MBeanInvoker.java:173)
           at org.jboss.nukes.mx.LifeCycleInterceptor.setState(LifeCycleInterceptor.java:106)
           at org.jboss.nukes.mx.LifeCycleInterceptor.transition(LifeCycleInterceptor.java:173)
           at org.jboss.nukes.mx.LifeCycleInterceptor.start(LifeCycleInterceptor.java:134)
           at org.jboss.nukes.mx.LifeCycleInterceptor.invoke(LifeCycleInterceptor.java:64)
           at org.jboss.mx.server.MBeanInvoker.invoke(MBeanInvoker.java:76)
           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 org.jboss.system.ServiceController.start(ServiceController.java:411)
           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 $Proxy153.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.GeneratedMethodAccessor20.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:458)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
          


          • 2. Re: Basic Question for Cooper of Jae77 (or anyone)
            jae Master

            i use eclipse as my ide, but primarily do builds and deployments from the command line - on occassion, i will use ant from w/in eclipse.

            you don't need any special configurations to do the hot deployments. once you've made the changes, just re-run "build deploy" and you will be good to go.

            could you post specific questions w.r.t. questions/problems you have in getting up and running?

            • 3. Re: Basic Question for Cooper of Jae77 (or anyone)
              Viet Master

              I am a big fan of Intellij IDEA and the command line :

              >sh build.sh clean
              >sh build.sh deploy
              >etc...
              


              • 4. Re: Basic Question for Cooper of Jae77 (or anyone)
                Nate Johnson Newbie

                Thanks for your quick responsed guys! The error that I am seeing right now is this:

                10:15:11,822 ERROR [Main] htmlnot a registered component

                I am starting to think that the db is currupt because I have redownloaded the 1.0.0 source and am still getting the same error.

                I will try reinstalling the database to see if that helps.

                Thanks again...

                • 5. Re: Basic Question for Cooper of Jae77 (or anyone)
                  Nate Johnson Newbie

                  reinstalling the db didnt work... i am going to start all over again to see if i can get it going once more...

                  • 6. Re: Basic Question for Cooper of Jae77 (or anyone)
                    jae Master

                     

                    "cooper" wrote:
                    I am a big fan of Intellij IDEA and the command line :

                    >sh build.sh clean
                    >sh build.sh deploy
                    >etc...
                    


                    bah - chmod 700 on build.sh and add an alias :)

                    • 7. Re: Basic Question for Cooper of Jae77 (or anyone)
                      Nate Johnson Newbie

                      OK. So I got it to run again by grabbing CVS and rebuilding everything. I added one sys.out.println to the NukeServlet doGet method to see if I could get anything to change. I went out to the nukes subdirectory and did a:

                      build clean
                      build deploy

                      and lost all of the blocks on the side, so i did a 'build deploy-compents' too

                      got everything back, but the println never happens. am i doing something wrong?

                      thanks

                      • 8. Re: Basic Question for Cooper of Jae77 (or anyone)
                        Nate Johnson Newbie

                        and one more thing... every time i make a change and run 'build deploy' from the nukes subdirectory, i get a null pointer exception for every module like the following...

                        12:00:44,775 INFO [BBModule] Starting
                        12:00:45,836 ERROR [Main] Start component failed nukes.modules:name=bb
                        java.lang.NullPointerException
                         at org.jboss.nukes.core.Main.componentStarts(Main.java:258)
                         at org.jboss.nukes.core.Main.access$1100(Main.java:62)
                         at org.jboss.nukes.core.Main$3.handleNotification(Main.java:480)
                         at org.jboss.mx.server.NotificationListenerProxy.handleNotification(NotificationListenerProxy.java:69)
                         at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:95)
                         at org.jboss.nukes.mx.AbstractMBean.sendNotification(AbstractMBean.java:98)
                         at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
                         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                         at java.lang.reflect.Method.invoke(Method.java:324)
                         at org.jboss.mx.modelmbean.ModelMBeanInvoker$ReflectedNotificationBroadcaster.sendNotification(ModelMBeanInvoker.java:534)
                         at org.jboss.mx.modelmbean.ModelMBeanInvoker.sendAttributeChangeNotification(ModelMBeanInvoker.java:221)
                         at org.jboss.mx.interceptor.MBeanAttributeInterceptor.invoke(MBeanAttributeInterceptor.java:72)
                         at org.jboss.mx.interceptor.PersistenceInterceptor2.invoke(PersistenceInterceptor2.java:93)
                         at org.jboss.nukes.mx.LifeCycleInterceptor.invoke(LifeCycleInterceptor.java:93)
                         at org.jboss.mx.server.MBeanInvoker.setAttribute(MBeanInvoker.java:173)
                         at org.jboss.nukes.mx.LifeCycleInterceptor.setState(LifeCycleInterceptor.java:106)
                         at org.jboss.nukes.mx.LifeCycleInterceptor.transition(LifeCycleInterceptor.java:173)
                         at org.jboss.nukes.mx.LifeCycleInterceptor.start(LifeCycleInterceptor.java:134)
                         at org.jboss.nukes.mx.LifeCycleInterceptor.invoke(LifeCycleInterceptor.java:64)
                         at org.jboss.mx.server.MBeanInvoker.invoke(MBeanInvoker.java:76)
                         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 org.jboss.system.ServiceController.start(ServiceController.java:411)
                         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 $Proxy153.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.GeneratedMethodAccessor20.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:458)
                         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
                         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
                         at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
                        


                        • 9. Re: Basic Question for Cooper of Jae77 (or anyone)
                          Nate Johnson Newbie

                           

                          "thepriz" wrote:
                          If you deloy nukes you have to redeploy all the modules you had deployed before.


                          that's the way i fixed it before... i guess i was hoping for an easier way to test changes.

                          • 10. Re: Basic Question for Cooper of Jae77 (or anyone)
                            jae Master

                            nope - correct behavior for the classloader.