12 Replies Latest reply on Aug 27, 2002 8:58 PM by David Jencks

    How to deploy JMX service and EJB into one jar file

    Fang Yang Newbie

      Here's my stuff inside the SAR file:
      meta-inf/jboss-service.xml
      meta-inf/Manifest.mf
      my_ejb.jar

      my_ejb.jar is a typical deployable ejb jar and also contains JMX service codes.

      The problem is that the JMX service is not deployed, only ejb package is deployed.

      Thanks,

        • 1. Re: How to deploy JMX service and EJB into one jar file
          David Jencks Master

          Maybe meta-inf != META-INF

          • 2. Re: How to deploy JMX service and EJB into one jar file
            Fang Yang Newbie

            I don't think so, since all other SAR files also use meta-inf, and JBoss recognizes it.

            • 3. Re: How to deploy JMX service and EJB into one jar file
              Fang Yang Newbie

              I don't think so, since all other SAR files also use meta-inf, and JBoss recognizes it.

              • 4. Re: How to deploy JMX service and EJB into one jar file
                Fang Yang Newbie

                I don't think so, since all other SAR files also use meta-inf, and JBoss recognizes it.

                • 5. Re: How to deploy JMX service and EJB into one jar file
                  Fang Yang Newbie

                  I don't think so, since all other SAR files also use meta-inf, and JBoss recognizes it.

                  • 6. Re: How to deploy JMX service and EJB into one jar file
                    Fang Yang Newbie

                    I don't think so, since all other SAR files also use meta-inf, and JBoss recognizes it.

                    • 7. Re: How to deploy JMX service and EJB into one jar file
                      Fang Yang Newbie

                      I don't think so, since all other SAR files also use meta-inf, and JBoss recognizes it.

                      • 8. Re: How to deploy JMX service and EJB into one jar file
                        Mikael Eriksson Novice

                        I think you are in error.

                        The sar-files (and directory) in the distribution has META-INF, not meta-inf.


                        Regards

                        • 9. Re: How to deploy JMX service and EJB into one jar file
                          Fang Yang Newbie

                          Sorry, something wrong with my posting and there are several same message.

                          Yes, I use META-INF, but this still makes no difference. In SAR file, do I have to put some classes out of EJB jar?

                          • 10. Re: How to deploy JMX service and EJB into one jar file
                            Adrian Brock Master

                            Can you show the server.log for this deployment,
                            preferably with debug enabled.

                            Regards,
                            Adrian

                            • 11. Re: How to deploy JMX service and EJB into one jar file
                              Fang Yang Newbie

                              (My JMX service depends on some EJBs.)

                              2002-08-27 15:24:05,327 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/E:/JBoss/jboss/server/default/deploy/mcpj-jmx.sar
                              2002-08-27 15:24:05,337 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/E:/JBoss/jboss/server/default/deploy/mcpj-jmx.sar
                              2002-08-27 15:24:05,407 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url file:/E:/JBoss/jboss/server/default/tmp/deploy/server/default/deploy/mcpj-jmx.sar/49.mcpj-jmx.sar
                              2002-08-27 15:24:05,407 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository adding org.jboss.mx.loading.UnifiedClassLoader@d05c13{ url=file:/E:/JBoss/jboss/server/default/tmp/deploy/server/default/deploy/mcpj-jmx.sar/49.mcpj-jmx.sar }
                              2002-08-27 15:24:05,417 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.SARDeployer@872380
                              2002-08-27 15:24:05,417 DEBUG [org.jboss.deployment.SARDeployer] about to copy 0 local directories
                              2002-08-27 15:24:05,427 DEBUG [org.jboss.deployment.MainDeployer] found 1 subpackages of file:/E:/JBoss/jboss/server/default/deploy/mcpj-jmx.sar
                              2002-08-27 15:24:05,427 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: njar:file:/E:/JBoss/jboss/server/default/tmp/deploy/server/default/deploy/mcpj-jmx.sar/49.mcpj-jmx.sar^/mcpj-jmx.jar
                              2002-08-27 15:24:05,427 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url njar:file:/E:/JBoss/jboss/server/default/tmp/deploy/server/default/deploy/mcpj-jmx.sar/49.mcpj-jmx.sar^/mcpj-jmx.jar
                              2002-08-27 15:24:05,427 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository] UnifiedLoaderRepository adding org.jboss.mx.loading.UnifiedClassLoader@bbd7b2{ url=njar:file:/E:/JBoss/jboss/server/default/tmp/deploy/server/default/deploy/mcpj-jmx.sar/49.mcpj-jmx.sar^/mcpj-jmx.jar }
                              2002-08-27 15:24:05,477 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.ejb.EJBDeployer@814013
                              2002-08-27 15:24:05,567 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of njar:file:/E:/JBoss/jboss/server/default/tmp/deploy/server/default/deploy/mcpj-jmx.sar/49.mcpj-jmx.sar^/mcpj-jmx.jar
                              2002-08-27 15:24:05,577 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/E:/JBoss/jboss/server/default/deploy/mcpj-jmx.sar
                              2002-08-27 15:24:05,577 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/E:/JBoss/jboss/server/default/deploy/mcpj-jmx.sar
                              2002-08-27 15:24:05,577 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment njar:file:/E:/JBoss/jboss/server/default/tmp/deploy/server/default/deploy/mcpj-jmx.sar/49.mcpj-jmx.sar^/mcpj-jmx.jar
                              2002-08-27 15:24:06,078 DEBUG [org.jboss.ejb.EJBDeployer] Verifying njar:file:/E:/JBoss/jboss/server/default/tmp/deploy/server/default/deploy/mcpj-jmx.sar/49.mcpj-jmx.sar^/mcpj-jmx.jar
                              2002-08-27 15:24:06,529 DEBUG [org.jboss.ejb.EJBDeployer] my_ejb1: Verified.
                              2002-08-27 15:24:06,549 DEBUG [org.jboss.ejb.EJBDeployer] my_ejb2: Verified.
                              ...
                              ...

                              Another question: JBoss tries to deploy EJB module during SAR deployment, which cause exceptions since my MDBs depends on JMS which is deployed after SARs.

                              By search the debug log, seem my JMX is never deployed.

                              • 12. Re: How to deploy JMX service and EJB into one jar file
                                David Jencks Master

                                How about the whole deployment log? Was that really it? What about the exceptions you talk about?

                                You can probably use depends elements to make everything deploy in the correct order.

                                It's possible that exceptions from ejb deployment are preventing the mbeans from deploying, but I don't see how.