2 Replies Latest reply on Jul 28, 2011 11:34 AM by Thierry Ler

    Cannot deploy the booking example to AS 6

    Thierry Ler Newbie

      Hello,


      I used to work with Seam 2, that I liked. I should like Seam 3.


      Now I am discovering Seam 3 and I am trying to deploy the booking example. But it failed. I do not understand why.


      I followed the readme instructions :




      mvn package jboss:hard-deploy





      logs :






      ...
      INFO Building war: C:\dev\javadev\seam-examples-3.0.0.Final-0-ga15ff24\seam-examples-81aec0a\booking\target\seam-booking.war
      INFO
      INFO  jboss-maven-plugin:1.4.1:hard-deploy (default-cli) @ seam-booking ---
      INFO Copying C:\dev\javadev\seam-examples-3.0.0.Final-0-ga15ff24\seam-examples-81aec0a\booking\src\main\resources-jbossas\booking-ds.xml to C:\dev\s
      ervers\jbossies\jboss-6.0.0.Final\server\default\deploy\booking-ds.xml
      [INFO Copying C:\dev\javadev\seam-examples-3.0.0.Final-0-ga15ff24\seam-examples-81aec0a\booking\target\seam-booking.war to C:\dev\servers\jbossies\jb
      oss-6.0.0.Final\server\default\deploy\seam-booking.war
      INFO ------------------------------------------------------------------------
      INFO BUILD SUCCESS
      INFO ------------------------------------------------------------------------
      INFO Total time: 8.320s
      INFO Finished at: Thu Jul 28 09:24:16 CEST 2011
      INFO Final Memory: 20M/52M
      INFO ------------------------------------------------------------------------







      but I get errors in the Jboss term :





      09:29:43,742 INFO  [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.0.0.Final "Neo"] Started in 18s:503ms
      ...
      09:30:31,131 INFO  [org.jboss.jpa.mcint.beans.metadata.plugins.PersistenceUnitValueMetaData] iDependOn persistence.unit:unitName=jboss-ejb3-timerservi
      ce-mk2.jar#timerdb
      09:30:31,141 INFO  [org.jboss.jpa.deployment.PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=jboss-ejb3-timerservice-mk
      2.jar#timerdb
      09:30:32,085 INFO  [org.hibernate.annotations.common.Version] Hibernate Commons Annotations 3.2.0.Final
      09:30:32,099 INFO  [org.hibernate.cfg.Environment] Hibernate 3.6.0.Final
      09:30:32,103 INFO  [org.hibernate.cfg.Environment] hibernate.properties not found
      09:30:32,108 INFO  [org.hibernate.cfg.Environment] Bytecode provider name : javassist
      09:30:32,116 INFO  [org.hibernate.cfg.Environment] using JDK 1.4 java.sql.Timestamp handling       (here wy 1.4 ?)
      09:30:32,256 INFO  [org.hibernate.ejb.Version] Hibernate EntityManager 3.6.0.Final
      ...
       
      09:30:46,513 INFO  [org.jboss.seam.config.xml.bootstrap.XmlConfigExtension] Wrapping InjectionTarget to set field values: org.jboss.seam.security.Iden
      tityImpl
      09:30:46,705 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Start: name=vfs:///C:/dev/servers/jbossies/jboss
      -6.0.0.Final/server/default/deploy/seam-booking.war WeldBootstrapBean state=Create: org.jboss.weld.exceptions.WeldException: by java.lang.ClassFormatE
      rror: Illegal class name "org/jboss/seam/security/management/action/org$jboss$weld$bean-jboss$classloader:id="vfs:$$$C:$dev$servers$jbossies$jboss-6$0
      $0$Final$server$default$deploy$seam-booking$war"-ManagedBean-org$jboss$seam$security$management$action$RoleAction[@javax$enterprise$context$Conversati
      onScoped()@javax$inject$Named(value=)]{org$jboss$seam$security$management$action$RoleAction$conversation[@javax$inject$Inject()]$org$jboss$seam$securi
      ty$management$action$RoleAction$identitySession[@javax$inject$Inject()]$org$jboss$seam$security$management$action$RoleAction$deleteRoleType[@org$jboss
      $seam$transaction$Transactional(value=REQUIRED)@org$jboss$seam$transaction$TransactionalInterceptorBinding()](java$lang$String)$org$jboss$seam$securit
      y$management$action$RoleAction$save[@org$jboss$seam$transaction$Transactional(value=REQUIRED)@org$jboss$seam$transaction$TransactionalInterceptorBindi
      ng()]()$} $$_WeldSubclass" in class file org/jboss/seam/security/management/action/org$jboss$weld$bean-jboss$classloader:id="vfs:
              at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:285) [:6.0.0.Final]
              at org.jboss.weld.bean.AbstractClassBean.createEnhancedSubclass(AbstractClassBean.java:673) [:6.0.0.Final]
              at org.jboss.weld.bean.AbstractClassBean.initEnhancedSubclass(AbstractClassBean.java:659) [:6.0.0.Final]
              at org.jboss.weld.bean.AbstractClassBean.initializeAfterBeanDiscovery(AbstractClassBean.java:354) [:6.0.0.Final]
              at org.jboss.weld.bean.ManagedBean.initializeAfterBeanDiscovery(ManagedBean.java:420) [:6.0.0.Final]
              at org.jboss.weld.bootstrap.BeanDeployment.doAfterBeanDiscovery(BeanDeployment.java:230) [:6.0.0.Final]
              at org.jboss.weld.bootstrap.BeanDeployment.afterBeanDiscovery(BeanDeployment.java:219) [:6.0.0.Final]
              at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:368) [:6.0.0.Final]
              at org.jboss.weld.integration.deployer.env.helpers.BootstrapBean.boot(BootstrapBean.java:92) [:6.0.0.Final]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0 26]
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [:1.6.0 26]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.6.026]
              at java.lang.reflect.Method.invoke(Unknown Source) [:1.6.0 26]
              at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60) [jboss-reflect.jar:2.2.0.GA]
              at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect.jar:2.2.0.GA]
              at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-reflect.jar:2.2.0.GA]
              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257)
      [jboss-kernel.jar:2.2.0.GA]
              at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) [jboss-kernel.jar:2.2.0.GA]
              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125) [jboss-k
      ernel.jar:2.2.0.GA]
              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72) [jboss-kernel.ja
      r:2.2.0.GA]
              at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202) [jboss-kernel.jar:2.2.0.GA]
              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-depende
      ncy.jar:2.2.0.GA]





      Does anyone can help me ?


      I used Maven 3.0.3, JDK 1.6.0 26 (oracle on win, open on linux), tried with Jboss 6.0 and Jboss 7.0, on Windows 7, and unbuntu with same result.