5 Replies Latest reply on Feb 9, 2013 7:53 AM by Rodmar Conde

    Error on richfaces-showcase deployment

    teddy rachmayadi Newbie

      Hi,

      i tried to deploy richfaces-showcase project, the one that's included in richfaces-4.2.0.Final.zip, using jboss as 7.1.1

      The console gave me these messages:

       

      13:27:41,304 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "richfaces-showcase.war"

      13:27:42,880 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor' for service type 'com.sun.faces.spi.injectionprovider'

      13:27:42,882 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection' for service type 'com.sun.faces.spi.injectionprovider'

      13:27:42,887 INFO  [org.jboss.as.pojo] (MSC service thread 1-2) JBAS017000: Found legacy bean/pojo namespace: urn:jboss:bean-deployer:2.0 - might be missing some xml features (potential exceptions).

      13:27:42,899 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) JBAS011401: Read persistence.xml for richfaces-showcase

      13:27:43,097 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002: Processing weld deployment richfaces-showcase.war

      13:27:43,369 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) JBAS010403: Deploying JDBC-compliant driver class org.hsqldb.jdbc.JDBCDriver (version 2.0)

      13:27:43,371 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016005: Starting Services for CDI deployment: richfaces-showcase.war

      13:27:43,381 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011402: Starting Persistence Unit Service 'richfaces-showcase.war#richfaces-showcase'

      13:27:43,382 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-3) HHH000204: Processing PersistenceUnitInfo [

          name: richfaces-showcase

          ...]

      13:27:43,432 WARN  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-3) HHH000181: No appropriate connection provider encountered, assuming application will be supplying connections

      13:27:43,434 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.persistenceunit."richfaces-showcase.war#richfaces-showcase": org.jboss.msc.service.StartException in service jboss.persistenceunit."richfaces-showcase.war#richfaces-showcase": Failed to start service

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_20]

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

          at java.lang.Thread.run(Thread.java:636) [rt.jar:1.6.0_20]

      Caused by: javax.persistence.PersistenceException: [PersistenceUnit: richfaces-showcase] Unable to build EntityManagerFactory

          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)

          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)

          at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)

          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)

          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          ... 3 more

      Caused by: org.hibernate.HibernateException: Connection cannot be null when 'hibernate.dialect' not set

          at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:97)

          at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:67)

          at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:176)

          at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)

          at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)

          at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

          at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)

          at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270)

          at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266)

          at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735)

          at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)

          at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)

          ... 9 more

       

      13:27:43,657 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS015870: Deploy of deployment "richfaces-showcase.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"richfaces-showcase.war#richfaces-showcase\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"richfaces-showcase.war#richfaces-showcase\": Failed to start service"}}

      13:27:43,705 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015877: Stopped deployment richfaces-showcase.war in 48ms

      13:27:43,706 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.persistenceunit."richfaces-showcase.war#richfaces-showcase": org.jboss.msc.service.StartException in service jboss.persistenceunit."richfaces-showcase.war#richfaces-showcase": Failed to start service

       

      13:27:43,709 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 2) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"richfaces-showcase.war#richfaces-showcase\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"richfaces-showcase.war#richfaces-showcase\": Failed to start service"}}}}

       

       

      anybody know how to fix this error and make the richfaces-showcase run properly?

        • 1. Re: Error on richfaces-showcase deployment
          Brian Leathem Master

          We creatae different artifacts for the different runtimes.  You'll want to be sure to create the artifact for the jboss 7.1.x runtime by activating the correct profile when you build.  Details of building/deploying are in the readme, or you can download the artifact directly from the maven repository:

          https://repository.jboss.org/nexus/content/groups/public-jboss/org/richfaces/examples/richfaces-showcase/4.2.0.Final/richfaces-showcase-4.2.0.Final-jbas71.war

           

          Be warned, AS 7.1.1 shipped with mojarra 2.1.7 which breaks some things in the showcase.  We are addressing these with our 4.2.1 release (CR1 is imminent).

           

          Brian Leathem

          • 2. Re: Error on richfaces-showcase deployment
            Mrinal Shaw Newbie

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

             

            Same problem - using 4.2.3 and Jboss 7.1.1. and using eclipse Juno.  Is there a fix for this ?

             

             

            23:40:53,530 INFO [org.hibernate.cfg.Environment] (MSC service thread 1-6) HHH000021: Bytecode provider name : javassist

            23:40:53,639 INFO [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-6) HHH000204: Processing PersistenceUnitInfo [

            name: richfaces-showcase

            ...]

            23:40:55,060 WARN [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-6) HHH000181: No appropriate connection provider encountered, assuming application will be supplying connections

            23:40:55,107 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.persistenceunit."richfaces-showcase.war#richfaces-showcase":

            org.jboss.msc.service.StartException

            in service jboss.persistenceunit."richfaces-showcase.war#richfaces-showcase": Failed to start service

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(

            ServiceControllerImpl.java:1767

            ) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_25]

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_25]

            at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_25]

            Caused by:

            javax.persistence.PersistenceException

            : [PersistenceUnit: richfaces-showcase] Unable to build EntityManagerFactory

            at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(

            Ejb3Configuration.java:914

            )

            at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(

            Ejb3Configuration.java:889

            )

            at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(

            HibernatePersistence.java:73

            )

            at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(

            PersistenceUnitServiceImpl.java:162

            )

            at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(

            PersistenceUnitServiceImpl.java:85

            )

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(

            ServiceControllerImpl.java:1811

            ) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(

            ServiceControllerImpl.java:1746

            ) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

            ... 3 more

            Caused by:

            org.hibernate.HibernateException

            : Connection cannot be null when 'hibernate.dialect' not set

            at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(

            DialectFactoryImpl.java:97

            )

            at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(

            DialectFactoryImpl.java:67

            )

            at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(

            JdbcServicesImpl.java:176

            )

            at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(

            StandardServiceRegistryImpl.java:75

            )

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(

            AbstractServiceRegistryImpl.java:159

            )

            at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(

            AbstractServiceRegistryImpl.java:131

            )

            at org.hibernate.cfg.SettingsFactory.buildSettings(

            SettingsFactory.java:71

            )

            at org.hibernate.cfg.Configuration.buildSettingsInternal(

            Configuration.java:2270

            )

            at org.hibernate.cfg.Configuration.buildSettings(

            Configuration.java:2266

            )

            at org.hibernate.cfg.Configuration.buildSessionFactory(

            Configuration.java:1735

            )

            at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(

            EntityManagerFactoryImpl.java:84

            )

            at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(

            Ejb3Configuration.java:904

            )

            ... 9 more

             

            23:40:55,497 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "richfaces-showcase.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"richfaces-showcase.war#richfaces-showcase\"" => "

            org.jboss.msc.service.StartException

            in service jboss.persistenceunit.\"richfaces-showcase.war#richfaces-showcase\": Failed to start service"}}

            23:40:55,872 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment richfaces-showcase.war in 372ms

            23:40:55,872 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

            JBAS014777: Services which failed to start: service jboss.persistenceunit."richfaces-showcase.war#richfaces-showcase":

            org.jboss.msc.service.StartException

            in service jboss.persistenceunit."richfaces-showcase.war#richfaces-showcase": Failed to start service

            • 3. Re: Error on richfaces-showcase deployment
              Rodmar Conde Newbie

              Hello,

               

              I have the same problem with Jboss 7.1.1 and RichFaces 4.3.0 Final  =(

               

              15:14:30,011 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "richfaces-showcase.war"

              15:14:39,645 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor' for service type 'com.sun.faces.spi.injectionprovider'

              15:14:39,660 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection' for service type 'com.sun.faces.spi.injectionprovider'

              15:14:39,737 INFO  [org.jboss.as.pojo] (MSC service thread 1-2) JBAS017000: Found legacy bean/pojo namespace: urn:jboss:bean-deployer:2.0 - might be missing some xml features (potential exceptions).

              15:14:40,773 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) JBAS011401: Read persistence.xml for richfaces-showcase

              15:14:41,252 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) JBAS018567: Deployment "deployment.richfaces-showcase.war" is using a private module ("org.jboss.as.protocol:main") which may be changed or removed in future versions without notice.

              15:14:41,268 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) JBAS018567: Deployment "deployment.richfaces-showcase.war" is using a private module ("org.jboss.marshalling.river:main") which may be changed or removed in future versions without notice.

              15:14:43,688 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) JBAS016002: Processing weld deployment richfaces-showcase.war

              15:14:45,263 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) JBAS010403: Deploying JDBC-compliant driver class org.hsqldb.jdbc.JDBCDriver (version 2.0)

              15:14:45,270 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016005: Starting Services for CDI deployment: richfaces-showcase.war

              15:14:45,390 INFO  [org.jboss.weld.Version] (MSC service thread 1-3) WELD-000900 1.1.5 (AS71)

              15:14:45,710 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011402: Starting Persistence Unit Service 'richfaces-showcase.war#richfaces-showcase'

              15:14:46,394 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-1) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

              15:14:46,416 INFO  [org.hibernate.Version] (MSC service thread 1-1) HHH000412: Hibernate Core {4.0.1.Final}

              15:14:46,424 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-1) HHH000206: hibernate.properties not found

              15:14:46,430 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-1) HHH000021: Bytecode provider name : javassist

              15:14:46,585 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-1) HHH000204: Processing PersistenceUnitInfo [

              name: richfaces-showcase

              ...]

              15:14:47,390 WARN  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-1) HHH000181: No appropriate connection provider encountered, assuming application will be supplying connections

              15:14:47,455 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.persistenceunit."richfaces-showcase.war#richfaces-showcase": org.jboss.msc.service.StartException in service jboss.persistenceunit."richfaces-showcase.war#richfaces-showcase": Failed to start service

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]

              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]

              Caused by: javax.persistence.PersistenceException: [PersistenceUnit: richfaces-showcase] Unable to build EntityManagerFactory

              at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:914)

              at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)

              at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)

              at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)

              at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              ... 3 more

              Caused by: org.hibernate.HibernateException: Connection cannot be null when 'hibernate.dialect' not set

              at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:97)

              at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:67)

              at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:176)

              at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)

              at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)

              at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)

              at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)

              at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2270)

              at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2266)

              at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1735)

              at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)

              at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)

              ... 9 more

               

              15:14:47,763 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "richfaces-showcase.war" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"richfaces-showcase.war#richfaces-showcase\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"richfaces-showcase.war#richfaces-showcase\": Failed to start service"}}

              15:14:48,132 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment richfaces-showcase.war in 373ms

              15:14:48,143 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

              JBAS014777:   Services which failed to start:      service jboss.persistenceunit."richfaces-showcase.war#richfaces-showcase": org.jboss.msc.service.StartException in service jboss.persistenceunit."richfaces-showcase.war#richfaces-showcase": Failed to start service

               

              15:14:48,151 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.persistenceunit.\"richfaces-showcase.war#richfaces-showcase\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"richfaces-showcase.war#richfaces-showcase\": Failed to start service"}}}}

               

               

               

               

              Inside the generated WAR file (richfaces-showcase-jbas71.war) there is:  /WEB-INF/classes/META-INF/persistence.xml as this:

               

              <?xml version="1.0" encoding="UTF-8"?>

              <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">

              <persistence-unit name="richfaces-showcase">

              </persistence-unit>

              </persistence>

               

               

              But, in the showcase project's directory there is showcase/src/main/resources-jbas71/META-INF/persistence.xml as this:

               

              <?xml version="1.0" encoding="UTF-8"?>

              <persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                  xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">

               

                  <persistence-unit name="richfaces-showcase" transaction-type="RESOURCE_LOCAL">

               

                      <non-jta-data-source>java:jboss/datasources/showcase</non-jta-data-source>

                      <class>org.richfaces.demo.arrangeablemodel.Person</class>

                      <properties>

                          <property name="hibernate.dialect" value="org.hibernate.dialect.HSQLDialect" />

                          <property name="hibernate.hbm2ddl.auto" value="create-drop" />

                      </properties>

               

                  </persistence-unit>

              </persistence>

               

               

              They are obviously different, is this producing the problem ?

               

              What other thing may I check ?

               

              Thank you!

              • 4. Re: Error on richfaces-showcase deployment
                Juraj Húska Master

                Hello guys,

                 

                I had same problem. It is caused by eclipse. Eclipse adds empty persistence.xml to the default location. Be sure to delete it. Then it should work.

                • 5. Re: Error on richfaces-showcase deployment
                  Rodmar Conde Newbie

                  Hello,

                   

                  I solved the problem.

                   

                  The solution was to modify the pom.xml file because there are some missing values. After adding these values it generates successfully the WAR file (with the right persistence.xml).

                   

                  I inspired in this issue's discussion:

                   

                  https://issues.jboss.org/browse/RF-12385

                   

                  These are the modifications to pom.xml file:

                   

                  <profile>

                  <id>jbas71</id>

                  <properties>

                  <container.classifier>jbas71</container.classifier>

                  <container.resources>src/main/resources-jbas71</container.resources>

                  <container.webapp>src/main/webapp-jbas71</container.webapp>

                  <dependency.scope>provided</dependency.scope>

                  </properties>

                  <build>

                  <plugins>

                  <plugin>

                  <!-- any changes in this plugin configuration should be repeated in the "release" profile executions -->

                  <artifactId>maven-war-plugin</artifactId>

                  <configuration>

                  <classifier>jbas71</classifier>

                  <webappDirectory>${project.build.directory}/${project.build.finalName}-jbas71

                  </webappDirectory>

                   

                  <packagingExcludes>${jbas71.excluded.libraries}</packagingExcludes>

                  <warSourceExcludes>${jbas71.excluded.libraries}</warSourceExcludes>

                  <archive>

                  <manifestEntries>

                  <Dependencies>${jbas71.manifest.dependencies}</Dependencies>

                  </manifestEntries>

                  </archive>

                   

                  <webResources>

                  <resource>

                  <directory>src/main/webapp</directory>

                  </resource>

                  <resource>

                  <directory>src/main/webapp-tomcat</directory>

                  <excludes>

                  <exclude>**</exclude>

                  </excludes>

                  </resource>

                  <resource>

                  <directory>src/main/webapp-jbas71</directory>

                  <targetPath>/</targetPath>

                  <filtering>true</filtering>

                  </resource>

                  <resource>

                  <directory>src/main/resources-jbas71</directory>

                  <targetPath>WEB-INF/classes</targetPath>

                  </resource>

                  <resource>

                  <directory>src/main/java</directory>

                  <targetPath>WEB-INF/src</targetPath>

                  </resource>

                  </webResources>

                   

                  </configuration>

                  </plugin>

                  <plugin>

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

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

                  <configuration>

                  <filename>richfaces-showcase-jbas71.war</filename>

                  </configuration>

                  </plugin>

                  </plugins>

                  </build>

                  </profile>

                   

                  Regards,