0 Replies Latest reply on Jul 26, 2013 4:19 PM by Mrinal Thigale

    Error while deploying Seam app on JBOSS 7

    Mrinal Thigale Newbie

      My Environment Setup is as below:

      JBOSS 7 + Postgres 9 + Seam 2.3

       

       

      Created default Seam app in Eclipse

      Was able to compile evrything

       

       

      Defined standalone.xml

       

       

       

       

      <datasources>

                      <datasource jta="true" jndi-name="java:jboss/loginDatasource" pool-name="loginDatasource_pool" enabled="true" use-java-context="true" use-ccm="false">

                          <connection-url>jdbc:postgresql://localhost:5432/challengeapp</connection-url>

                          <driver-class>org.postgresql.Driver</driver-class>

                          <driver>postgresql</driver>

                          <pool>

                              <min-pool-size>2</min-pool-size>

                              <max-pool-size>20</max-pool-size>

                          </pool>

                          <security>

                              <user-name>postgres</user-name>

                              <password>pa55word</password>

                          </security>

                          <validation>

                              <validate-on-match>false</validate-on-match>

                          </validation>

                      </datasource>

                          <datasource jta="true" jndi-name="java:jboss/ChallengeAppSeamDatasource" pool-name="ChallengeAppSeamDatasource" enabled="true" use-java-context="true" use-ccm="false">

                          <connection-url>jdbc:postgresql://localhost:5432/challengeapp</connection-url>

                          <driver-class>org.postgresql.Driver</driver-class>

                          <driver>postgresql</driver>

                          <pool>

                              <min-pool-size>2</min-pool-size>

                              <max-pool-size>20</max-pool-size>

                          </pool>

                          <security>

                              <user-name>postgres</user-name>

                              <password>pa55word</password>

                          </security>

                          <validation>

                              <validate-on-match>false</validate-on-match>

                          </validation>

                      </datasource>

       

                      <drivers>

                          <driver name="postgres" module="org.postgresql">

                              <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>

                          </driver>

                      </drivers>

                  </datasources>

              </subsystem>

       

       

       

       

      persistence.xml

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

      <!-- Persistence deployment descriptor for dev profile -->

      <persistence 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"

                   version="2.0">

                  

         <persistence-unit name="ChallengeAppSeam" transaction-type="JTA">

            <provider>org.hibernate.ejb.HibernatePersistence</provider>

            <jta-data-source>java:/ChallengeAppSeamDatasource</jta-data-source>

            <properties>

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

               <property name="hibernate.hbm2ddl.auto" value="validate"/>

               <property name="hibernate.show_sql" value="true"/>

               <property name="hibernate.format_sql" value="true"/>

               <property name="jboss.entity.manager.factory.jndi.name" value="java:/ChallengeAppSeamEntityManagerFactory"/>

            </properties>

         </persistence-unit>

         

      </persistence>

       

       

      Getting errors below on deployment

       

       

      01:33:14,793 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

      01:33:15,077 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

      01:33:15,146 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

      01:33:16,264 INFO  [org.xnio] XNIO Version 3.0.3.GA

      01:33:16,265 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

      01:33:16,275 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

      01:33:16,284 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

      01:33:16,330 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

      01:33:16,372 INFO  [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

      01:33:16,401 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

      01:33:16,417 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem

      01:33:16,420 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

      01:33:16,441 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

      01:33:16,443 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem

      01:33:16,445 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

      01:33:16,456 INFO  [org.jboss.as.security] (MSC service thread 1-2) JBAS013100: Current PicketBox version=4.0.7.Final

      01:33:16,491 INFO  [org.jboss.as.naming] (MSC service thread 1-8) JBAS011802: Starting Naming Service

      01:33:16,497 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-8) JBAS015400: Bound mail session [java:jboss/mail/Default]

      01:33:16,567 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.2)

      01:33:16,825 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-6) JBoss Web Services - Stack CXF Server 4.0.2.GA

      01:33:17,236 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-4) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080

      01:33:17,291 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-8) JBAS015012: Started FileSystemDeploymentService for directory C:\ServerEnvironment\jbossas7\jboss-as-7.1.1.Final\standalone\deployments

      01:33:17,297 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found ChallengeAppSeam.war in deployment directory. To trigger deployment create a file called ChallengeAppSeam.war.dodeploy

      01:33:17,304 INFO  [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on localhost/127.0.0.1:4447

      01:33:17,353 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /127.0.0.1:9999

      01:33:17,906 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.jdbc-driver.postgresql (missing) dependents: [service jboss.data-source.java:jboss/loginDatasource, service jboss.data-source.java:jboss/ChallengeAppSeamDatasource]

       

       

      Now sure what exactly is missing here as postgres driver was loaded.