3 Replies Latest reply on Nov 7, 2012 10:41 PM by kevin ren

    Error in Solder in a Seam Persistence project

    Monique Monteiro Newbie

      Hi all,


         I'm new to Seam, especially version 3.  I created an empty project with Forge and it was successfully deployed to JBoss 6.


         But when I added Seam Persistence dependencies, the application failed to be deployed to JBoss 6 and the following error appeared:



      DEPLOYMENTS MISSING DEPENDENCIES:
        Deployment "jboss-switchboard:appName=TesteSeam3-1-1.0.0-SNAPSHOT,module=Teste
      Seam3-1-1.0.0-SNAPSHOT" is missing the following dependencies:
          Dependency "java:global/cdi/TesteSeam3-1-1.0.0-SNAPSHOT/TesteSeam3-1-1.0.0-S
      NAPSHOT/BeanManager" (should be in state "Installed", but is actually in state "
      ** NOT FOUND Depends on 'java:global/cdi/TesteSeam3-1-1.0.0-SNAPSHOT/TesteSeam3-
      1-1.0.0-SNAPSHOT/BeanManager' **")
        Deployment "jboss.web.deployment:war=/TesteSeam3-1-1.0.0-SNAPSHOT" is missing
      the following dependencies:
          Dependency "vfs:///C:/jboss-as-distribution-6.0.0.Final/jboss-6.0.0.Final/se
      rver/default/deploy/TesteSeam3-1-1.0.0-SNAPSHOT.war_WeldBootstrapBean" (should b
      e in state "Create", but is actually in state "**ERROR**")
      
      DEPLOYMENTS IN ERROR:
        Deployment "vfs:///C:/jboss-as-distribution-6.0.0.Final/jboss-6.0.0.Final/serv
      er/default/deploy/TesteSeam3-1-1.0.0-SNAPSHOT.war_WeldBootstrapBean" is in error
       due to the following reason(s): java.lang.RuntimeException: Service class org.j
      boss.seam.solder.bean.generic.GenericBeanExtension didn't implement the Extensio
      n interface, **ERROR**
        Deployment "java:global/cdi/TesteSeam3-1-1.0.0-SNAPSHOT/TesteSeam3-1-1.0.0-SNA
      PSHOT/BeanManager" is in error due to the following reason(s): ** NOT FOUND Depe
      nds on 'java:global/cdi/TesteSeam3-1-1.0.0-SNAPSHOT/TesteSeam3-1-1.0.0-SNAPSHOT/
      BeanManager' **
      
              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(Dep
      loyersImpl.java:1228) [:2.2.0.GA]
              at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainD
      eployerImpl.java:905) [:2.2.0.GA]
              at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.c
      heckComplete(MainDeployerPlugin.java:87) [:6.0.0.Final]
              at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.che
      ckAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]
              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceB
      ootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.0.0.Final]
              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceB
      ootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
              at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(A
      bstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
              at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.r
      un(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
              at java.lang.Thread.run(Thread.java:662) [:1.6.0_23]



         Here is my pom.xml file:


      <?xml version="1.0" encoding="UTF-8"?>
      <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <modelVersion>4.0.0</modelVersion>
        <groupId>testes.seam3</groupId>
        <artifactId>TesteSeam3-1</artifactId>
        <version>1.0.0-SNAPSHOT</version>
        <packaging>war</packaging>
        <dependencies>
          <dependency>
            <groupId>org.jboss.spec</groupId>
            <artifactId>jboss-javaee-6.0</artifactId>
            <version>1.0.0.CR1</version>
            <type>pom</type>
            <scope>provided</scope>
          </dependency>
          <dependency>
               <groupId>org.jboss.seam.persistence</groupId>
               <artifactId>seam-persistence-api</artifactId>
               <version>3.0.0.Final</version>
               <type>pom</type>
               <scope>runtime</scope>
          </dependency>
          <dependency>
               <groupId>org.jboss.seam.persistence</groupId>
               <artifactId>seam-persistence-impl</artifactId>
               <version>3.0.0.Final</version>
               <type>pom</type>
               <scope>runtime</scope>
          </dependency>
          <dependency>
               <groupId>org.jboss.seam.solder</groupId>
               <artifactId>seam-solder</artifactId>
               <version>3.0.0.Final</version>
               <type>pom</type>
               <scope>runtime</scope>
          </dependency>
          <dependency>
               <groupId>org.jboss.seam.xml</groupId>
               <artifactId>seam-xml-config</artifactId>
               <version>3.0.0.Alpha2</version>
               <type>jar</type>
               <scope>runtime</scope>
          </dependency>
        </dependencies>
        <repositories>
          <repository>
            <id>JBOSS_NEXUS</id>
            <url>http://repository.jboss.org/nexus/content/groups/public</url>
          </repository>
        </repositories>
        <build>
          <plugins>
            <plugin>
              <artifactId>maven-compiler-plugin</artifactId>
              <configuration>
                <source>1.6</source>
                <target>1.6</target>
              </configuration>
            </plugin>
          </plugins>
        </build>
      </project>



      Does anyone have any idea about what may be wrong?


      Thanks in advance!