Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-941

Encountered an exception while porting a Seam application from EAP5.x to AS7, root cause ZipException

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Out of Date
    • No Release
    • 7.0.0.Final
    • None
    • None
    • Hide

      Take the current TopicIndex application and make the following changes:
      1. Comment out the <class-loading> element in jboss-web.xml.
      2. Need the fix for AS7-896 (AS7-474) which allows deployment to continue even though the timer service is out of scope for this release.
      3. Need the fix for AS7-910 which fixes the SecurityException for signed JARs.
      4. Set up the datasource as required in AS7

      • Modify the mysql-connector-java-5.1.16-bin.jar to add the META-INF/services/java.sql.Driver file containing one line com.mysql.jdbc.Driver
      • Copy the mysql-connector-java-5.1.16-bin.jar to the <jboss-release>/modules/com/mysql/main/ directory
      • Create the file <jboss-release>/modules/com/mysql/main/module.xml file
      • Add the <datasource> and <driver> elements to the standalone.xml file.
        5. Copy the following JARs to the application's WEB-INF/lib directory
        <jboss-release>/modules/org/slf4j/jcl-over-slf4j/main/jcl-over-slf4j-1.5.10.jar
        <jboss-release>/modules/org/slf4j/main/slf4j-api-1.5.10.jar
        <jboss-release>/modules/org/slf4j/impl/main/slf4j-jboss-logmanager-1.0.0.CR3.jar
        <jboss-release>/modules/org/jboss/logmanager/main/jboss-logmanager-1.2.0.CR7.jar
        <jboss-release>modules/org/apache/commons/collections/main/commons-collections-3.1.jar
        Deploy the TopicIndex.war file.
      Show
      Take the current TopicIndex application and make the following changes: 1. Comment out the <class-loading> element in jboss-web.xml. 2. Need the fix for AS7-896 ( AS7-474 ) which allows deployment to continue even though the timer service is out of scope for this release. 3. Need the fix for AS7-910 which fixes the SecurityException for signed JARs. 4. Set up the datasource as required in AS7 Modify the mysql-connector-java-5.1.16-bin.jar to add the META-INF/services/java.sql.Driver file containing one line com.mysql.jdbc.Driver Copy the mysql-connector-java-5.1.16-bin.jar to the <jboss-release>/modules/com/mysql/main/ directory Create the file <jboss-release>/modules/com/mysql/main/module.xml file Add the <datasource> and <driver> elements to the standalone.xml file. 5. Copy the following JARs to the application's WEB-INF/lib directory <jboss-release>/modules/org/slf4j/jcl-over-slf4j/main/jcl-over-slf4j-1.5.10.jar <jboss-release>/modules/org/slf4j/main/slf4j-api-1.5.10.jar <jboss-release>/modules/org/slf4j/impl/main/slf4j-jboss-logmanager-1.0.0.CR3.jar <jboss-release>/modules/org/jboss/logmanager/main/jboss-logmanager-1.2.0.CR7.jar <jboss-release>modules/org/apache/commons/collections/main/commons-collections-3.1.jar Deploy the TopicIndex.war file.

    Description

      I am porting the TopicIndex application that was built on EAP5.x to AS7. I have worked around a number of ClassNotFound and other issues. My current build is based on git://github.com/jbossejb3/jboss-as.git which as a fix for AS7-910 and I have coded around AS7-896.

      I am now seeing this exception in the log:
      09:46:45,570 INFO [javax.servlet.ServletContextListener] (MSC service thread 1-7) Welcome to Seam null
      09:46:45,588 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/TopicIndex]] (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/TopicIndex.war/WEB-INF/lib/jboss-seam-remoting.jar
      at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:134) [jboss-seam.jar:]
      at org.jboss.seam.deployment.URLScanner.handle(URLScanner.java:107) [jboss-seam.jar:]
      at org.jboss.seam.deployment.URLScanner.scanResources(URLScanner.java:90) [jboss-seam.jar:]
      at org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:119) [jboss-seam.jar:]
      at org.jboss.seam.init.Initialization.create(Initialization.java:130) [jboss-seam.jar:]
      at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36) [jboss-seam.jar:]
      at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3368) [jbossweb-7.0.0.CR1.jar:7.0.0.Beta4-SNAPSHOT]
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:3817) [jbossweb-7.0.0.CR1.jar:7.0.0.Beta4-SNAPSHOT]
      at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:70) [jboss-as-web-7.0.0.Beta4-SNAPSHOT.jar:7.0.0.Beta4-SNAPSHOT]
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1675)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_25]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_25]
      at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]
      Caused by: java.util.zip.ZipException: error in opening zip file
      at java.util.zip.ZipFile.open(Native Method) [:1.6.0_25]
      at java.util.zip.ZipFile.<init>(ZipFile.java:127) [:1.6.0_25]
      at java.util.zip.ZipFile.<init>(ZipFile.java:144) [:1.6.0_25]
      at org.jboss.seam.deployment.URLScanner.handleArchiveByFile(URLScanner.java:123) [jboss-seam.jar:]
      ... 12 more

      Attachments

        Activity

          People

            ajustin@redhat.com Ales Justin
            sgilda_jira Sande Gilda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: