1 Reply Latest reply on May 18, 2012 10:49 AM by Cody Lerum

    exception when send email with template, java.lang.ClassNotFoundException: org.jboss.seam.render.template.CompiledTemplateResource

    tyshan Shi Newbie

      16:33:28,932 INFO  [org.jboss.solder.Version] (MSC service thread 1-7) Solder 3.1.0.Final (build id: 3.1.0.Final)

      16:33:29,477 INFO  [org.jboss.weld.ClassLoading] (MSC service thread 1-7) WELD-000119 Not generating any bean definitions from org.jboss.seam.mail.templating.render.RenderTemplate because of underlying class loading error

      16:33:29,482 INFO  [org.jboss.weld.ClassLoading] (MSC service thread 1-7) catching: org.jboss.weld.resources.spi.ResourceLoadingException: Error loading class org.jboss.seam.mail.templating.render.RenderTemplate

          at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:152) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

          at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:86) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

          at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:115) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

          at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:171) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

          at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:336) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

          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.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_04]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_04]

          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_04]

      Caused by: java.lang.NoClassDefFoundError: Lorg/jboss/seam/render/template/CompiledTemplateResource;

          at java.lang.Class.getDeclaredFields0(Native Method) [rt.jar:1.7.0_04]

          at java.lang.Class.privateGetDeclaredFields(Class.java:2308) [rt.jar:1.7.0_04]

          at java.lang.Class.getDeclaredFields(Class.java:1760) [rt.jar:1.7.0_04]

          at org.jboss.weld.util.reflection.SecureReflections$4.work(SecureReflections.java:102) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

          at org.jboss.weld.util.reflection.SecureReflections$4.work(SecureReflections.java:99) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

          at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

          at org.jboss.weld.util.reflection.SecureReflectionAccess.runAndWrap(SecureReflectionAccess.java:63) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

          at org.jboss.weld.util.reflection.SecureReflections.getDeclaredFields(SecureReflections.java:99) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

          at org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:153) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

          at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:118) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

          at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:49) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

          at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:40) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

          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) [guava-r07.jar:]

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

          at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:149) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]

          ... 11 more

      Caused by: java.lang.ClassNotFoundException: org.jboss.seam.render.template.CompiledTemplateResource from [Module "deployment.backoffice.war: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.performLoadClass(ConcurrentClassLoader.java:398)

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

          ... 29 more

       

      16:33:29,634 INFO  [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-7) Preventing installation of default bean: org.jboss.seam.mail.core.MailConfig

      16:33:29,763 INFO  [org.jboss.solder.core.CoreExtension] (MSC service thread 1-7) Preventing class org.jboss.seam.persistence.HibernatePersistenceProvider from being installed as bean due to @Veto annotation

      16:33:29,812 INFO  [org.jboss.solder.core.CoreExtension] (MSC service thread 1-7) Preventing class org.jboss.seam.persistence.hibernate.HibernateManagedSessionExtensionImpl from being installed as bean due to @Veto annotation

      16:33:31,130 INFO  [org.jboss.solder.core.CoreExtension] (MSC service thread 1-7) Preventing class org.jboss.seam.international.locale.LocaleConfiguration from being installed as bean due to @Veto annotation

      16:33:31,341 INFO  [org.jboss.solder.core.CoreExtension] (MSC service thread 1-7) Preventing class org.jboss.seam.faces.validation.InputElement from being installed as bean due to @Veto annotation

      16:33:31,507 INFO  [org.jboss.solder.core.CoreExtension] (MSC service thread 1-7) Preventing class org.jboss.seam.transaction.NoTransaction from being installed as bean due to @Veto annotation

      16:33:31,520 INFO  [org.jboss.solder.core.CoreExtension] (MSC service thread 1-7) Preventing class org.jboss.seam.transaction.UTTransaction from being installed as bean due to @Veto annotation

      16:33:31,593 INFO  [org.jboss.solder.core.CoreExtension] (MSC service thread 1-7) Preventing class org.jboss.seam.transaction.HibernateTransaction from being installed as bean due to @Veto annotation

      16:33:31,622 INFO  [org.jboss.solder.core.CoreExtension] (MSC service thread 1-7) Preventing class org.jboss.seam.transaction.SeSynchronizations from being installed as bean due to @Veto annotation

      16:33:31,639 INFO  [org.jboss.solder.core.CoreExtension] (MSC service thread 1-7) Preventing class org.jboss.seam.transaction.CMTTransaction from being installed as bean due to @Veto annotation

      16:33:31,655 INFO  [org.jboss.solder.core.CoreExtension] (MSC service thread 1-7) Preventing class org.jboss.seam.transaction.EntityTransaction from being installed as bean due to @Veto annotation

      16:33:32,148 INFO  [org.jboss.solder.core.CoreExtension] (MSC service thread 1-7) Preventing class org.jboss.seam.security.SecurityEventMessages from being installed as bean due to @Veto annotation

      16:33:33,568 INFO  [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-7) Preventing installation of default bean: org.jboss.seam.mail.core.MailConfig

      16:33:33,958 INFO  [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-7) Wrapping InjectionTarget to set field values: org.jboss.seam.mail.core.MailConfig

      16:33:34,027 INFO  [org.jboss.seam.international.status.TypedStatusMessageBundleExtension] (MSC service thread 1-7) Add @MessageBundle to org.jboss.solder.reflection.annotated.AnnotationBuilder.messages injection point for the type: org.jboss.solder.support.SolderMessages

      16:33:34,122 INFO  [org.jboss.seam.international.status.TypedStatusMessageBundleExtension] (MSC service thread 1-7) Add @MessageBundle to org.jboss.solder.reflection.annotated.AnnotatedTypeBuilder.messages injection point for the type: org.jboss.solder.support.SolderMessages

      16:33:34,398 INFO  [org.jboss.solder.exception.control.extension] (MSC service thread 1-7) Adding handler Qualifiers: [@javax.enterprise.inject.Any()] TraversalMode: BREADTH_FIRST Handles Type: class java.lang.Throwable Precedence: -100 [method] public org.jboss.seam.transaction.SimpleTransactionExceptionHandler.markTransactionRollback(CaughtException<Throwable>) to known handlers

      16:33:35,049 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.unit."backoffice.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."backoffice.war".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [ELContext] with qualifiers [@Default] at injection point [[parameter 1] of [constructor] @Inject public org.jboss.solder.el.Expressions(ELContext, ExpressionFactory)]. Possible dependencies [[Producer Method [ELContext] with qualifiers [@Any @Default] declared as [[method] @Produces org.jboss.solder.el.ELContextProducer.createELContext()], Producer Method [ELContext] with qualifiers [@Any @Default] declared as [[method] @Produces org.jboss.seam.solder.el.ELContextProducer.createELContext()]]]

          at org.jboss.as.weld.services.WeldService.start(WeldService.java:83)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_04]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_04]

          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_04]

      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [ELContext] with qualifiers [@Default] at injection point [[parameter 1] of [constructor] @Inject public org.jboss.solder.el.Expressions(ELContext, ExpressionFactory)]. Possible dependencies [[Producer Method [ELContext] with qualifiers [@Any @Default] declared as [[method] @Produces org.jboss.solder.el.ELContextProducer.createELContext()], Producer Method [ELContext] with qualifiers [@Any @Default] declared as [[method] @Produces org.jboss.seam.solder.el.ELContextProducer.createELContext()]]]

          at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:278)

          at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:244)

          at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:107)

          at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:127)

          at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:346)

          at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:331)

          at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:366)

          at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)

          at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)

          ... 5 more

       

      16:33:35,346 INFO  [org.jboss.as.jpa] (MSC service thread 1-8) JBAS011403: Stopping Persistence Unit Service 'backoffice.war#backoffice_invy_PU'

      16:33:35,346 INFO  [org.jboss.as.server] (management-handler-thread - 23) JBAS015870: Deploy of deployment "backoffice.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"backoffice.war\".WeldService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"backoffice.war\".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [ELContext] with qualifiers [@Default] at injection point [[parameter 1] of [constructor] @Inject public org.jboss.solder.el.Expressions(ELContext, ExpressionFactory)]. Possible dependencies [[Producer Method [ELContext] with qualifiers [@Any @Default] declared as [[method] @Produces org.jboss.solder.el.ELContextProducer.createELContext()], Producer Method [ELContext] with qualifiers [@Any @Default] declared as [[method] @Produces org.jboss.seam.solder.el.ELContextProducer.createELContext()]]]"}}

      16:33:36,075 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment backoffice.war in 738ms

      16:33:36,080 INFO  [org.jboss.as.controller] (management-handler-thread - 23) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."backoffice.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."backoffice.war".WeldService: org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [ELContext] with qualifiers [@Default] at injection point [[parameter 1] of [constructor] @Inject public org.jboss.solder.el.Expressions(ELContext, ExpressionFactory)]. Possible dependencies [[Producer Method [ELContext] with qualifiers [@Any @Default] declared as [[method] @Produces org.jboss.solder.el.ELContextProducer.createELContext()], Producer Method [ELContext] with qualifiers [@Any @Default] declared as [[method] @Produces org.jboss.seam.solder.el.ELContextProducer.createELContext()]]]