4 Replies Latest reply on Jun 23, 2009 12:19 PM by David Fuchs

    Installation Instructions for JBoss 4.2.3.GA?

    David Fuchs Newbie

      I'm trying to install the Spring deployer into JBoss 4.2.3.GA.

      The installation instructions on the wiki state to copy the jboss-spring-jdk5.deployer directory into the JBoss deploy/ directory, but I don't see this available for download on the Sourceforge page here:

      http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=161914

      Where do I get this deployer from?[/url]

        • 1. Re: Installation Instructions for JBoss 4.2.3.GA?
          Marius Bogoevici Expert

          For JBoss 4.2.3.GA you need to use the 2.x line of deployers - and there you have the jdk5 variants.

          • 2. Re: Installation Instructions for JBoss 4.2.3.GA?
            David Fuchs Newbie

            Thanks for the response! Unfortunately, I'm doing something wrong as I'm still not able to get the deployer working.

            I've downloaded the spring-deployer.zip and extracted the jboss-spring-jdk5.deployer directory from inside it to my JBoss deploy/ directory.

            Inside the extracted deployer directory, I've replaced 'jboss-spring-jdk5.jar' with the downloaded 'jboss-spring-jdk5-2.5.jar'. Now, when I start JBoss (this is a fresh install with no software deployments yet), I receive the following error:

            2009-06-22 09:04:49,049 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/C:/DEVEL/JAVA/jboss-4.2.3.GA/server/default/deploy/jboss-spring-jdk5.deployer/
            org.jboss.deployment.DeploymentException: Cannot instanciate MBean: org.jboss.spring.deployment.SpringDeployer; - nested throwable: (javax.management.NotCompliantMBeanException: Cannot insta
            nciate MBean: org.jboss.spring.deployment.SpringDeployer)
             at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
             at org.jboss.system.ServiceController.install(ServiceController.java:226)
             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:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy4.install(Unknown Source)
             at org.jboss.deployment.SARDeployer.create(SARDeployer.java:251)
             at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
             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:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy9.deploy(Unknown Source)
             at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
             at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
             at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
             at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
             at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
             at $Proxy0.start(Unknown Source)
             at org.jboss.system.ServiceController.start(ServiceController.java:417)
             at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
             at java.lang.reflect.Method.invoke(Method.java:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy4.start(Unknown Source)
             at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)
             at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
             at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
             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:585)
             at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
             at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
             at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
             at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
             at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
             at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
             at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
             at $Proxy5.deploy(Unknown Source)
             at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
             at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
             at org.jboss.Main.boot(Main.java:200)
             at org.jboss.Main$1.run(Main.java:508)
             at java.lang.Thread.run(Thread.java:595)
            Caused by: javax.management.NotCompliantMBeanException: Cannot instanciate MBean: org.jboss.spring.deployment.SpringDeployer
             at org.jboss.mx.server.MBeanServerImpl.handleExceptionOnCreate(MBeanServerImpl.java:361)
             at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:349)
             at org.jboss.system.ServiceCreator.install(ServiceCreator.java:157)
             at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
             at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
             ... 81 more
            


            Any idea what I've done wrong? Thanks!

            • 3. Re: Installation Instructions for JBoss 4.2.3.GA?
              Ales Justin Master

               

              "Crucifix" wrote:
              Any idea what I've done wrong?

              SpringDeployer class is abstract, as it depends what exactly you wanna instantiate.
              Either a full ApplicationContext or just BeanFactory.

              So the proper deployer class should be
              * org.jboss.spring.deployment.SpringApplicationContextDeployer
              * org.jboss.spring.deployment.SpringBeanFactoryDeployer

              This should be fixed in jboss-spring-jdk5.deployer/META-INF/jboss-service.xml.

              • 4. Re: Installation Instructions for JBoss 4.2.3.GA?
                David Fuchs Newbie

                I've updated the mbean declaration in jboss-service.xml and it's working fine now.

                Thank you!