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

    Error in Solder in a Seam Persistence project

    monilouise

      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!

        • 1. Re: Error in Solder in a Seam Persistence project
          monilouise

          I've just removed the dependencies seam-solder and seam-xml-config from pom.xml.  Even so, seam-solder is copyied to the classpath, but now the application is successfully deployed, without errors.  Now, only 3 jars are present: seam-persistence-impl, seam-persistence-api and seam-solder.


          I don't know if there will be other issues when I add some code to the application, but the removal of some dependencies specified in the official documentation (PDF bundled reference, page 122) solved the error reported above.


          • 2. Re: Error in Solder in a Seam Persistence project
            lightguard

            I'd have to see the class that was blowing up. Solder isn't a pom artifact either, though I doubt that was what was causing the problem. Could you also paste a listing of the deployed war before you made the change?

            • 3. Re: Error in Solder in a Seam Persistence project
              renyoumad

              Monique Monteiro is good

              I have same error on deploy, and I use seam 3.1.0 final

              It is ok after I deleted solder-tooling.jar and seam-security-external.jar, but no time to test which jar is culprit, maybe solder-tooling