1 Reply Latest reply on Dec 3, 2012 11:28 AM by Ranganathan Kaliyur Mannar

    Seam 2.3.0 war deployment in JBoss AS 7.1.1 error

    Ranganathan Kaliyur Mannar Newbie

      Hi,

      I am building a seam 2.3.0.Final project with maven and did a war deployment in JBoss AS 7.1.1. I got the following error and I am clueless. Any help is appreciated:

       

      ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/hand_mvn_single_proj]] (MSC service thread 1-7) Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener: java.lang.RuntimeException: Error handling file /content/hand_mvn_single_proj-0.1-SNAPSHOT.war/WEB-INF/lib/jboss-seam-2.3.0.Final.jar

                at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:134) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]

                at org.jboss.seam.deployment.URLScanner.handle(URLScanner.java:107) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]

                at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:90) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]

                at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:119) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]

                at org.jboss.seam.init.Initialization.create(Initialization.java:131) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]

                at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]

                at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392) [jbossweb-7.0.13.Final.jar:]

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850) [jbossweb-7.0.13.Final.jar:]

                at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90) [jboss-as-web-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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_32]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_32]

                at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_32]

      Caused by: java.util.zip.ZipException: error in opening zip file

                at java.util.zip.ZipFile.open(Native Method) [rt.jar:1.6.0_32]

                at java.util.zip.ZipFile.<init>(ZipFile.java:127) [rt.jar:1.6.0_32]

                at java.util.zip.ZipFile.<init>(ZipFile.java:143) [rt.jar:1.6.0_32]

                at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:123) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]

                ... 13 more

       

       

       

      I used the seam bom in my pom.xml as:

          <dependencyManagement>

              <dependencies>

                  <dependency>

                      <groupId>org.richfaces</groupId>

                      <artifactId>richfaces-bom</artifactId>

                      <version>${org.richfaces.bom.version}</version>

                      <scope>import</scope>

                      <type>pom</type>

                  </dependency>

                  <dependency>

                         <groupId>org.jboss.seam</groupId>

                         <artifactId>bom</artifactId>

                         <version>${seam.version}</version>

                         <type>pom</type>

                         <scope>import</scope>

                     </dependency>

              </dependencies>

          </dependencyManagement>

       

       

      I use the jboss-maven plugin to deploy:

      <plugin>

      <groupId>org.jboss.as.plugins</groupId>

      <artifactId>jboss-as-maven-plugin</artifactId>

      <version>7.3.Final</version>

      <executions>

          <execution>

              <phase>install</phase>

              <goals>

                  <goal>deploy</goal>

              </goals>

          </execution>

      </executions>

       

       

      Thanks,

      Ranga.