4 Replies Latest reply on Mar 19, 2008 10:01 AM by Jeb Seibel

    JBPM, Tomcat6 and Postgres8.2 issue

    Jeb Seibel Newbie

      Heya, have a specific issue I cant seem to solve and looking for some help.

      I am deploying JBPM to Tomcat6 with a Postgres database.
      (My configuration follows)
      When I launch I am getting a specific error:

      SEVERE: Error listenerStart
      Mar 7, 2008 10:10:17 AM org.apache.catalina.core.StandardContext start
      SEVERE: Context [/web-console] startup failed due to previous errors

      HERE IS THE WHOLE OUTPUT WHEN I START TOMCAT6
      ==============================================================================
      Mar 7, 2008 10:10:11 AM org.apache.catalina.core.AprLifecycleListener init
      INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Java\jdks\jdk1.5.0
      _02\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Common Files\Sonic Shared;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI
      Technologies\ATI Control Panel;C:\PROGRA~1\SecureFX;C:\Program Files\DTN\IQFeed;C:\Program Files\VSS\win32;C:\Java\jdks\jdk1.5.0_02;C:\Program Files\DTN\IQFeed

      Mar 7, 2008 10:10:12 AM org.apache.coyote.http11.Http11Protocol init
      INFO: Initializing Coyote HTTP/1.1 on http-8080
      Mar 7, 2008 10:10:12 AM org.apache.catalina.startup.Catalina load
      INFO: Initialization processed in 2215 ms
      Mar 7, 2008 10:10:12 AM org.apache.catalina.core.StandardService start
      INFO: Starting service Catalina
      Mar 7, 2008 10:10:12 AM org.apache.catalina.core.StandardEngine start
      INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
      Mar 7, 2008 10:10:12 AM org.apache.catalina.startup.HostConfig deployWAR
      INFO: Deploying web application archive web-console.war
      Mar 7, 2008 10:10:16 AM org.apache.catalina.startup.ContextConfig validateSecurityRoles
      INFO: WARNING: Security role name user used in an <auth-constraint> without being defined in a <security-role>
      Mar 7, 2008 10:10:17 AM com.sun.faces.config.ConfigureListener contextInitialized
      INFO: Initializing Sun's JavaServer Faces implementation (1.2_03-b09-FCS) for context '/web-console'
      Mar 7, 2008 10:10:17 AM org.apache.catalina.core.StandardContext start
      SEVERE: Error listenerStart
      Mar 7, 2008 10:10:17 AM org.apache.catalina.core.StandardContext start
      SEVERE: Context [/web-console] startup failed due to previous errors
      Mar 7, 2008 10:10:17 AM org.jbpm.JbpmConfiguration getInstance
      INFO: using jbpm configuration resource 'jbpm.cfg.xml'
      Mar 7, 2008 10:10:17 AM org.jbpm.persistence.db.StaleObjectLogConfigurer hideStaleObjectExceptions
      INFO: stale object exceptions will be hidden from logging
      Mar 7, 2008 10:10:20 AM org.apache.coyote.http11.Http11Protocol start
      INFO: Starting Coyote HTTP/1.1 on http-8080
      Mar 7, 2008 10:10:20 AM org.apache.jk.common.ChannelSocket init
      INFO: JK: ajp13 listening on /0.0.0.0:8009
      Mar 7, 2008 10:10:21 AM org.apache.jk.server.JkMain start
      INFO: Jk running ID=0 time=0/70 config=null
      Mar 7, 2008 10:10:21 AM org.apache.catalina.startup.Catalina start
      INFO: Server startup in 8659 ms
      ==============================================================================

      My war file contains:

      Standard console dirs:
      /images
      /META-INF
      /sa
      /ua
      /WEB-INF
      /index.jsp

      Here are the jar files I have in the WAR:

      \Tomcat6\webapps\web-console\WEB-INF\lib:
      antlr-2.7.6.jar
      asm-attrs.jar
      asm.jar
      cglib.jar
      commons-collections.jar
      commons-fileupload.jar
      commons-io.jar
      commons-logging-1.0.4.jar
      dom4j-1.6.1.jar
      ehcache-1.1.jar
      el-api.jar
      el-ri.jar
      gravel-14.jar
      hibernate3.jar
      javassist.jar
      jboss-retro-1.1.0-rt.jar
      jbpm-identity.jar
      jbpm-jpdl.jar
      jbpm4jsf-14.jar
      jsf-api-14.jar
      jsf-facelets.jar
      jsf-impl-14.jar
      jta.jar
      log4j-1.2.11.jar

      Here is my Hibernate config (note we are NOT using DATASOURCE);
      hibernate.cfg.xml

      <!-- hibernate dialect -->
      org.hibernate.dialect.PostgreSQLDialect

      <!-- JDBC connection properties (begin) -->
      org.postgresql.Driver
      jdbc:postgresql://localhost:5432/JbpmDB
      postgres
      xxxxxxxx
      <!-- JDBC connection properties (end) -->

      org.hibernate.cache.HashtableCacheProvider

      <!-- DataSource properties (begin)
      java:/JbpmDS
      DataSource properties (end) -->

      Any help would be appreciated.
      Thanks in advance -

      - Jeb

        • 1. Re: JBPM, Tomcat6 and Postgres8.2 issue
          Jeb Seibel Newbie

          Someone pointed out that I didnt have the Postgres driver in the war. I have added it, but get the same issue...

          • 2. Re: JBPM, Tomcat6 and Postgres8.2 issue
            Ronald van Kuijk Master

             

            'the same issue'


            What issue? That the war did not start up correctly? There is way to little info in this to help you. Please provide more *detailed* error info. (notice the emphasis on detailed, not more)



            • 3. Re: JBPM, Tomcat6 and Postgres8.2 issue
              Martin Weiler Apprentice

              As Ronald already pointed out, without detailed information it's almost impossible to give proper advice. If you're experiencing problems, these are usually reflected in the logs, so it's always a good idea to have a look into these and report any exceptions you can find there.

              Right now, I would however point you to the wiki http://wiki.jboss.org/wiki/Wiki.jsp?page=JbpmOnTomcat and verify if what you have done somehow matches the steps reported there.

              Also, here are the contents of my jbpm-console.war I've deployed to Tomcat 6.0.10 for you to check as well (I've manually copied jbpm-j2ee.jar and commons-collections.jar after the ant run):

              [mputz@mputz webapps]$ tree ./jbpm-console/
              ./jbpm-console/
              |-- META-INF
              | `-- MANIFEST.MF
              |-- WEB-INF
              | |-- access.properties
              | |-- classes
              | | |-- hibernate.cfg.xml
              | | |-- jbpm.cfg.xml
              | | |-- jbpm.mail.templates.xml
              | | `-- messages.properties
              | |-- faces-config.xml
              | |-- jboss-web.xml
              | |-- jbpm4jsf-config.xml
              | |-- lib
              | | |-- activation.jar
              | | |-- antlr-2.7.6.jar
              | | |-- asm.jar
              | | |-- bsh.jar
              | | |-- cglib.jar
              | | |-- commons-collections.jar
              | | |-- commons-fileupload.jar
              | | |-- commons-io.jar
              | | |-- commons-logging.jar
              | | |-- dom4j.jar
              | | |-- gravel-14.jar
              | | |-- hibernate3.jar
              | | |-- javassist.jar
              | | |-- jboss-backport-concurrent.jar
              | | |-- jboss-j2ee.jar
              | | |-- jboss-retro-1.1.0-rt.jar
              | | |-- jbpm-identity.jar
              | | |-- jbpm-jpdl.jar
              | | |-- jbpm4jsf-14.jar
              | | |-- jsf-api-14.jar
              | | |-- jsf-facelets.jar
              | | `-- jsf-impl-14.jar
              | `-- web.xml
              


              I wouldn't put the db driver lib in the war, but rather in $tomcat/lib.

              Hope this helps.

              • 4. Re: JBPM, Tomcat6 and Postgres8.2 issue
                Jeb Seibel Newbie

                First off, thanks to both of you for replying.

                The heart of the matter was that I could not get anymore information than what I posted. I included the log output from Tomcat and that was pretty much all I had to go on.

                We eventually figured out that our war file was invalid, so the JVM wasn't even starting. Once we rebuilt the war file, Tomcat started up right away.

                Thanks again.