Uploaded image for project: 'JBoss WFK 2'
  1. JBoss WFK 2
  2. WFK2-817

CNFE during deployment of the seam-gen ear/war projects

    Details

    • Target Release:
    • Release Notes Docs Status:
      Not Required

      Description

      I've generated ear and war project with the seam-gen tool and none of them has been successfully deployed on EAP. In both cases I got CNFE:

      13:52:52,411 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.unit."warproject.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."warproject.war".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "warproject.war"
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [jboss-as-server-7.4.2.Final-redhat-2.jar:7.4.2.Final-redhat-2]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
      	at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
      Caused by: java.lang.LinkageError: Failed to link org/richfaces/renderkit/MessageRendererBase (Module "deployment.warproject.war:main" from Service Module Loader)
      	at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:487) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_45]
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_45]
      	at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_45]
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_45]
      	at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.as.web.deployment.ServletContainerInitializerDeploymentProcessor.loadClassInfoSet(ServletContainerInitializerDeploymentProcessor.java:253)
      	at org.jboss.as.web.deployment.ServletContainerInitializerDeploymentProcessor.deploy(ServletContainerInitializerDeploymentProcessor.java:165)
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [jboss-as-server-7.4.2.Final-redhat-2.jar:7.4.2.Final-redhat-2]
      	... 5 more
      Caused by: java.lang.NoClassDefFoundError: org/richfaces/renderkit/RendererBase
      	at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.7.0_45]
      	at java.lang.ClassLoader.defineClass(ClassLoader.java:800) [rt.jar:1.7.0_45]
      	at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	... 40 more
      Caused by: java.lang.ClassNotFoundException: org.richfaces.renderkit.RendererBase from [Module "deployment.warproject.war:main" from Service Module Loader]
      	at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.4.Final-redhat-1]
      	... 44 more
      
      13:52:52,421 ERROR [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "warproject.war" was rolled back with the following failure message: 
      {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"warproject.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"warproject.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment \"warproject.war\"
          Caused by: java.lang.LinkageError: Failed to link org/richfaces/renderkit/MessageRendererBase (Module \"deployment.warproject.war:main\" from Service Module Loader)
          Caused by: java.lang.NoClassDefFoundError: org/richfaces/renderkit/RendererBase
          Caused by: java.lang.ClassNotFoundException: org.richfaces.renderkit.RendererBase from [Module \"deployment.warproject.war:main\" from Service Module Loader]"}}
      

      war setup process:

      init:
      
      setup:
           [echo] Welcome to seam-gen 2.3.5.Final-redhat-1 :-)
           [echo] Answer each question or hit ENTER to accept the default (in brackets)
           [echo] 
          [input] Enter the directory where you want the project to be created (should not contain spaces) [/home/mjobanek/wfk/tmp/seam-gen] [/home/mjobanek/wfk/tmp/seam-gen]
      
          [input] Enter your JBoss AS home directory [/home/mjobanek/servers/jboss-eap-6.3] [/home/mjobanek/servers/jboss-eap-6.3]
      
          [input] Enter the project name [myproject] [myproject]
      warproject
           [echo] Accepted project name as: warproject
          [input] Select a RichFaces skin [blueSky] ([blueSky], emeraldTown, ruby, classic, japanCherry, wine, deepMarine, DEFAULT, plain)
      
          [input] Is this project deployed as an EAR (with EJB components) or a WAR (with no EJB support)? [ear] ([ear], war)
      war
          [input] Enter the base package name for your Java classes [com.mydomain.warproject] [com.mydomain.warproject]
      
          [input] Enter the Java package name for your session beans [com.mydomain.myproject.action] [com.mydomain.myproject.action]
      
          [input] Enter the Java package name for your entity beans [com.mydomain.myproject.model] [com.mydomain.myproject.model]
      
          [input] Enter the Java package name for your test cases [com.mydomain.myproject.test] [com.mydomain.myproject.test]
      
          [input] What kind of database are you using? [mysql] (hsql, [mysql], derby, oracle, postgres, mssql, db2, sybase, enterprisedb, h2)
      
          [input] Enter the filesystem path to the JDBC driver jar [/home/mjobanek/weld/tmp/seam/mysql-connector-java-5.1.7-bin.jar] [/home/mjobanek/weld/tmp/seam/mysql-connector-java-5.1.7-bin.jar]
      
          [input] skipping input as property driver.license.jar.new has already been set.
          [input] Enter the Hibernate dialect for your database [org.hibernate.dialect.MySQLDialect] [org.hibernate.dialect.MySQLDialect]
      
          [input] Enter the JDBC driver class for your database [com.mysql.jdbc.Driver] [com.mysql.jdbc.Driver]
      
          [input] Enter the JDBC DataSource class for your database [com.mysql.jdbc.jdbc2.optional.MysqlDataSource] [com.mysql.jdbc.jdbc2.optional.MysqlDataSource]
      
          [input] Enter the JDBC URL for your database [jdbc:mysql://vmg08.mw.lab.eng.bos.redhat.com/seam3] [jdbc:mysql://vmg08.mw.lab.eng.bos.redhat.com/seam3]
      
          [input] Enter the database username [seam] [seam]
      
          [input] Enter the database password [seam] [seam]
      
          [input] skipping input as property hibernate.default_schema.entered has already been set.
          [input] Enter the database catalog name (Enter '-' to clear previous value) [] []
      
          [input] Are you working with tables that already exist in the database? [y] ([y], n)
      
          [input] Do you want to recreate the database tables and execute import.sql each time you deploy? [n] (y, [n])
      
         [delete] Deleting: /home/mjobanek/wfk/jboss-wfk-2.7.0.ER2/jboss-seam-2.3.5.Final-redhat-1/tmp/jboss-wfk-2.7.0.ER2/jboss-seam-2.3.5.Final-redhat-1/seam-gen/build.properties
      [propertyfile] Creating new property file: /home/mjobanek/wfk/jboss-wfk-2.7.0.ER2/jboss-seam-2.3.5.Final-redhat-1/tmp/jboss-wfk-2.7.0.ER2/jboss-seam-2.3.5.Final-redhat-1/seam-gen/build.properties
           [echo] Installing JDBC driver jar to JBoss AS
           [copy] Copying 1 file to /home/mjobanek/servers/jboss-eap-6.3/standalone/deployments
      
      init:
      
      init-properties:
           [echo] /home/mjobanek/servers/jboss-eap-6.3
      
      validate-workspace:
      
      validate-project:
      
      settings:
           [echo] JBoss AS home: /home/mjobanek/servers/jboss-eap-6.3
           [echo] Project name: warproject
           [echo] Project location: /home/mjobanek/wfk/tmp/seam-gen/warproject
           [echo] Project type: war
           [echo] IceFaces: ${icefaces.new}
           [echo] Action package: com.mydomain.myproject.action
           [echo] Model package: com.mydomain.myproject.model
           [echo] Test package: com.mydomain.myproject.test
           [echo] JDBC driver class: com.mysql.jdbc.Driver
           [echo] JDBC DataSource class: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
           [echo] Hibernate dialect: org.hibernate.dialect.MySQLDialect
           [echo] JDBC URL: jdbc:mysql://vmg08.mw.lab.eng.bos.redhat.com/seam3
           [echo] Database username: seam
           [echo] Database password: seam
           [echo] 
           [echo] Type './seam create-project' to create the new project
      
      BUILD SUCCESSFUL
      Total time: 31 seconds
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                manaRH Marek Novotny
                Reporter:
                mjobanek Matous Jobanek
                Tester:
                Matous Jobanek
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: