4 Replies Latest reply on Sep 7, 2012 5:25 AM by Japheth Odonya

    updating switchyard modules in jboss AS7

    Japheth Odonya Newbie

      Is is possible to upgrade the switchyard modules in jboss? I am using SY 0.6.0-SNAPSHOT in my development but the available version of the modules from the SY installer are version 0.5.0, I ran into a wall while trying out a rules service because the class org.switchyard.component.common.rules.Mapping while I used in development doesnt seem to be part of version 0.5.0 which is the version of modules on the server, am using AS 7.1.1 this makes jboss scream when I try to deploy application.

       

      This is actually from the rules-interview quickstart example.

       

      13:03:57,484 INFO  [org.jboss.weld.ClassLoading] (MSC service thread 1-8) catching: org.jboss.weld.resources.spi.ResourceLoadingException: Error loading class org.switchyard.quickstarts.rules.interview.InterviewRules

                at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:167) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                at org.jboss.weld.bootstrap.BeanDeployer.loadWeldClass(BeanDeployer.java:108) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:79) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:123) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:184) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:349) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:82) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.as.weld.services.WeldService.start(WeldService.java:76) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_10]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_10]

                at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_10]

      Caused by: java.lang.TypeNotPresentException: Type org.switchyard.component.common.rules.Mapping not present

                at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:98) [rt.jar:1.6.0_10]

                at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:107) [rt.jar:1.6.0_10]

                at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31) [rt.jar:1.6.0_10]

                at sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:370) [rt.jar:1.6.0_10]

                at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:181) [rt.jar:1.6.0_10]

                at sun.reflect.annotation.AnnotationParser.parseAnnotationArray(AnnotationParser.java:694) [rt.jar:1.6.0_10]

                at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:466) [rt.jar:1.6.0_10]

                at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:286) [rt.jar:1.6.0_10]

                at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:222) [rt.jar:1.6.0_10]

                at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69) [rt.jar:1.6.0_10]

                at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52) [rt.jar:1.6.0_10]

                at java.lang.Class.initAnnotationsIfNecessary(Class.java:3072) [rt.jar:1.6.0_10]

                at java.lang.Class.getAnnotations(Class.java:3052) [rt.jar:1.6.0_10]

                at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:119) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:59) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:50) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                at com.google.common.collect.ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:355)

                at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:184)

                at com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:153)

                at com.google.common.collect.ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:69)

                at com.google.common.collect.ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:393)

                at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:163) [weld-core-1.1.6.Final.jar:2012-03-21 18:52]

                ... 12 more

      Caused by: java.lang.ClassNotFoundException: org.switchyard.component.common.rules.Mapping from [Module "deployment.switchyard-quickstart-rules-interview.jar:main" from Service Module Loader]

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) [rt.jar:1.6.0_10]

                at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_10]

                at java.lang.Class.forName(Class.java:247) [rt.jar:1.6.0_10]

                at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:95) [rt.jar:1.6.0_10]

                ... 33 more