2 Replies Latest reply on Jan 15, 2018 10:39 AM by gaurav chawla

    Snowdrop 4.0 with jboss eap 7.0

    gaurav chawla Newbie

      Hi

       

      I have a requirement to use snowdrop with jboss eap 7.Its kind of application upgrade .I am using snowdrop 4.0.0 with spring 4.1.

      As per the user guide i created snowdrop modules in jboss directory,also added extensions in my standalone.xml.

      But while startup getting below error :

       

      Caused by: java.lang.NoSuchMethodError: org.jboss.as.controller.SubsystemRegistration.registerSubsystemModel(Lorg/jboss/as/controller/descriptions/DescriptionProvider;)Lorg/jboss/as/controller/registry/ManagementResourceRegistration;

              at org.jboss.spring.deployers.as7.SpringExtension.initialize(SpringExtension.java:131)

              at org.jboss.as.controller.extension.ExtensionAddHandler.initializeExtension(ExtensionAddHandler.java:131)

              at org.jboss.as.controller.extension.ExtensionAddHandler.initializeExtension(ExtensionAddHandler.java:104)

              at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:144)

              at org.jboss.as.controller.extension.ParallelExtensionAddHandler$ExtensionInitializeTask.call(ParallelExtensionAddHandler.java:127)

              at java.util.concurrent.FutureTask.run(FutureTask.java:266)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

              at java.lang.Thread.run(Thread.java:745)

              at org.jboss.threads.JBossThread.run(JBossThread.java:320)

       

      I checked into jboss libraries and looked to me that this method registerSubsystemModel is deprecated from jboss 7 as it was marked deprecated in jboss eap 6.

      So just wanted to know if i am doing the right thing here or there is another way to use them together.

       

      Thanks

      (P.S :My first ever post here.So pardon me if my question does not seem correct.)

        • 1. Re: Snowdrop 4.0 with jboss eap 7.0
          Tomaz Cerar Master

          Snowdrop extension was never updated to any newer version of App server beyond AS7.

           

          This is why you get the issue you describe, and your conclusion is correct, api that it was used is no longer there.

           

           

          Btw, why do you need snowdrop at all? You can just "use" spring as part of your deployment and you should be fine.

          1 of 1 people found this helpful
          • 2. Re: Snowdrop 4.0 with jboss eap 7.0
            gaurav chawla Newbie

            Thanks Tomaz.

             

             

            I have to update application from jboss 5 to 7 and it uses both spring and ejb.

            I have some ejb  with spring beans.Snowdrop was originally being used to serve this purpose.

            Meanwhile i found another way by using spring SpringBeanAutowiringInterceptor and beanRefContext.xml file,but with this also i am facing issue like below :

             

             

            Caused by: org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [null], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.beans.factory.BeanFactory] is defined

             

             

                    at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:402)

             

             

                    at org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor.getBeanFactoryReference(SpringBeanAutowiringInterceptor.java:160)

             

             

                    at org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor.getBeanFactory(SpringBeanAutowiringInterceptor.java:141)

             

             

                    at org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor.doAutowireBean(SpringBeanAutowiringInterceptor.java:121)

             

             

                    at org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor.autowireBean(SpringBeanAutowiringInterceptor.java:95)

             

             

                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

             

             

                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

             

             

                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

             

             

                    at java.lang.reflect.Method.invoke(Method.java:498)

             

             

                    at org.jboss.as.ee.component.ManagedReferenceLifecycleMethodInterceptor.processInvocation(ManagedReferenceLifecycleMethodInterceptor.java:84)

             

             

                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)

             

             

                    at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)

             

             

                    at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73)

             

             

                    at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)

             

             

                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)