3 Replies Latest reply on Oct 24, 2011 9:00 PM by hantsy bai

    Exception after Seam 3 mail 3.1.0 SNAPSHOT was updated

    hantsy bai Master

      Exception occured as jboss started up.


      00:36:47,835 INFO  [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-3) Reading XML file: vfs:/D:/appsvr/jboss-as-7.0.1.Final/bin/content/siorc.war/WEB-INF/classes/META-INF/seam-beans.xml
      00:36:47,993 ERROR [stderr] (MSC service thread 1-3) org.jboss.solder.config.xml.util.XmlConfigurationException: Could not resolve node MailConfig in namespace urn:java:org.jboss.seam.mail.core at vfs:/D:/appsvr/jboss-as-7.0.1.Final/bin/content/siorc.war/WEB-INF/classes/META-INF/seam-beans.xml:21
      
      00:36:47,994 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.solder.config.xml.model.ModelBuilder.resolveNode(ModelBuilder.java:146)
      
      00:36:47,994 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.solder.config.xml.model.ModelBuilder.build(ModelBuilder.java:86)
      
      00:36:47,994 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.solder.config.xml.bootstrap.XmlConfigExtension.beforeBeanDiscovery(XmlConfigExtension.java:93)
      
      00:36:47,994 ERROR [stderr] (MSC service thread 1-3)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      
      00:36:47,995 ERROR [stderr] (MSC service thread 1-3)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      
      00:36:47,996 ERROR [stderr] (MSC service thread 1-3)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      
      00:36:47,996 ERROR [stderr] (MSC service thread 1-3)      at java.lang.reflect.Method.invoke(Method.java:597)
      
      00:36:47,996 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
      
      00:36:47,996 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
      
      00:36:48,001 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
      
      00:36:48,001 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
      
      00:36:48,001 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
      
      00:36:48,001 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
      
      00:36:48,002 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
      
      00:36:48,002 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
      
      00:36:48,002 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
      
      00:36:48,002 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
      
      00:36:48,002 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:88)
      
      00:36:48,003 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:52)
      
      00:36:48,003 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.weld.bootstrap.events.BeforeBeanDiscoveryImpl.fire(BeforeBeanDiscoveryImpl.java:48)
      
      00:36:48,003 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:351)
      
      00:36:48,003 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:80)
      
      00:36:48,004 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.as.weld.services.WeldService.start(WeldService.java:89)
      
      00:36:48,004 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
      
      00:36:48,004 ERROR [stderr] (MSC service thread 1-3)      at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
      
      00:36:48,004 ERROR [stderr] (MSC service thread 1-3)      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      
      00:36:48,004 ERROR [stderr] (MSC service thread 1-3)      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      
      



      and



      00:36:53,053 WARN  [org.jboss.modules] (MSC service thread 1-3) Failed to define class org.jboss.seam.mail.core.MailTransporterImpl in Module "deployment.siorc.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/jboss/seam/mail/core/MailTransporterImpl (Module "deployment.siorc.war:main" from Service Module Loader)
           at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:401)
           at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261)
           at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76)
           at org.jboss.modules.Module.loadModuleClass(Module.java:588)
           at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183)
           at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
           at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
           at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
           at org.jboss.as.weld.WeldModuleResourceLoader.classForName(WeldModuleResourceLoader.java:68) [jboss-as-weld-7.0.1.Final.jar:7.0.1.Final]
           at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:82) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
           at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:134) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
           at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:191) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
           at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:368) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
           at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:81) [jboss-as-weld-7.0.1.Final.jar:7.0.1.Final]
           at org.jboss.as.weld.services.WeldService.start(WeldService.java:89) [jboss-as-weld-7.0.1.Final.jar:7.0.1.Final]
           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
           at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]
           at java.lang.Thread.run(Thread.java:662) [:1.6.0_29]
      Caused by: java.lang.NoClassDefFoundError: org/jboss/seam/mail/core/MailTransporter
           at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_29]
           at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) [:1.6.0_29]
           at java.lang.ClassLoader.defineClass(ClassLoader.java:615) [:1.6.0_29]
           at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) [:1.6.0_29]
           at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397)
           ... 19 more
      Caused by: java.lang.ClassNotFoundException: org.jboss.seam.mail.core.MailTransporter from [Module "deployment.siorc.war:main" from Service Module Loader]
           at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
           at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)
           at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
           at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)
           at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)
           at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)
           ... 24 more
      



      and


      java.lang.Exception: Could not resolve node MailConfig in namespace urn:java:org.jboss.seam.mail.core at vfs:/D:/appsvr/jboss-as-7.0.1.Final/bin/content/siorc.war/WEB-INF/classes/META-INF/seam-beans.xml:21
           at org.jboss.solder.config.xml.bootstrap.XmlConfigExtension.beforeBeanDiscovery(XmlConfigExtension.java:121)
           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:597)
           at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
           at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
           at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
           at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
           at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
           at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
           at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
           at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
           at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
           at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
           at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:88)
           at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:52)
           at org.jboss.weld.bootstrap.events.BeforeBeanDiscoveryImpl.fire(BeforeBeanDiscoveryImpl.java:48)
           at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:351)
           at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:80)
           at org.jboss.as.weld.services.WeldService.start(WeldService.java:89)
           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
           at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
           at java.lang.Thread.run(Thread.java:662)
      
           at org.jboss.as.weld.services.WeldService.start(WeldService.java:96)
           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
           at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]
           at java.lang.Thread.run(Thread.java:662) [:1.6.0_29]
      Caused by: org.jboss.weld.exceptions.DefinitionException: Exception List with 1 exceptions:
      Exception 0 :
      java.lang.Exception: Could not resolve node MailConfig in namespace urn:java:org.jboss.seam.mail.core at vfs:/D:/appsvr/jboss-as-7.0.1.Final/bin/content/siorc.war/WEB-INF/classes/META-INF/seam-beans.xml:21
           at org.jboss.solder.config.xml.bootstrap.XmlConfigExtension.beforeBeanDiscovery(XmlConfigExtension.java:121)
           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:597)
           at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
           at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
           at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
           at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
           at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
           at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
           at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
           at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
           at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
           at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
           at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:88)
           at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:52)
           at org.jboss.weld.bootstrap.events.BeforeBeanDiscoveryImpl.fire(BeforeBeanDiscoveryImpl.java:48)
           at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:351)
           at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:80)
           at org.jboss.as.weld.services.WeldService.start(WeldService.java:89)
           at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
           at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
           at java.lang.Thread.run(Thread.java:662)
      
           at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:55)
           at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:43)
           at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:380)
           at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:81)
           at org.jboss.as.weld.services.WeldService.start(WeldService.java:89)
           ... 5 more
      
      00:36:54,392 INFO  [org.h
      
      

        • 2. Re: Exception after Seam 3 mail 3.1.0 SNAPSHOT was updated
          zeeman Novice

          Seam mail works for me with these POM setup:


                    <dependency>
                         <groupId>org.jboss.seam.mail</groupId>
                         <artifactId>seam-mail-api</artifactId>
                         <version>3.1.0-SNAPSHOT</version>
                         <scope>compile</scope>
                    </dependency>
                    <dependency>
                         <groupId>org.jboss.seam.mail</groupId>
                         <artifactId>seam-mail</artifactId>
                         <version>3.1.0-SNAPSHOT</version>
                         <scope>compile</scope>
                         <exclusions>
                              <exclusion>
                                   <groupId>org.jboss.seam.solder</groupId>
                                   <artifactId>seam-solder</artifactId>
                              </exclusion>
                              <exclusion>
                                   <groupId>org.jboss.arquillian.junit</groupId>
                                   <artifactId>arquillian-junit-container</artifactId>
                              </exclusion>
                         </exclusions>
                    </dependency>