1 Reply Latest reply on Sep 16, 2011 8:22 PM by Aldo Bonzi

    need help running register example with tomcat and postgres

    Tim McGuire Newbie
      Having trouble geting registry example running in tomcat with postgresql. 
      I first ran registry example successfully with Jboss AS (and hsqldb).
      Then I
      Switched to tomcat (6) with embedded jboss.

      ran ant clean as instructed before switching to tomcat

      got past "already registered" issues by placing jboss-seam.jar in tomcat lib folder and removing other webapps.

      got past one "unresolved" issue by placing log4j.jar in tomcat lib folder.

      facing the following errors:
      <blockquote>
      INFO  [org.jboss.ejb3.EJBContainer] STARTED EJB: org.jboss.seam.transaction.EjbSynchronizations ejbName: EjbSynchronizations
      Sep 13, 2011 6:06:12 PM org.apache.tomcat.util.modeler.Registry registerComponent
      SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/jboss-seam-registration,J2EEApplication=none,J2EEServer=none
      Sep 13, 2011 6:06:12 PM org.apache.catalina.startup.HostConfig deployWAR
      SEVERE: Error deploying web application archive jboss-seam-registration.war
      java.lang.RuntimeException: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

      *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}

      jboss.j2ee:jar=jboss-seam-registration.jar,name=RegisterAction,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=jboss-seam-registration.jar,unitName=userDatabase **}

      persistence.units:jar=jboss-seam-registration.jar,unitName=userDatabase
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'jboss.jca:name=regDatasource,service=DataSourceBinding **}


      *** CONTEXTS IN ERROR: Name -> Error

      <UNKNOWN> -> ** UNRESOLVED Demands 'jboss.jca:name=regDatasource,service=DataSourceBinding **


              at org.jboss.embedded.tomcat.WebinfScanner.lifecycleEvent(WebinfScanner.java:94)
              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4612)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
              at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
              at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
              at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1385)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306)
              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
              at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1389)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1653)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1662)
              at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1642)
              at java.lang.Thread.run(Thread.java:662)
      Caused by: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

      *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}

      jboss.j2ee:jar=jboss-seam-registration.jar,name=RegisterAction,service=EJB3
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'persistence.units:jar=jboss-seam-registration.jar,unitName=userDatabase **}

      persistence.units:jar=jboss-seam-registration.jar,unitName=userDatabase
      -> <UNKNOWN>{Described:** UNRESOLVED Demands 'jboss.jca:name=regDatasource,service=DataSourceBinding **}


      *** CONTEXTS IN ERROR: Name -> Error

      <UNKNOWN> -> ** UNRESOLVED Demands 'jboss.jca:name=regDatasource,service=DataSourceBinding **


              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:576)
              at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:559)
              at org.jboss.embedded.DeploymentGroup.process(DeploymentGroup.java:128)
              at org.jboss.embedded.tomcat.WebinfScanner.lifecycleEvent(WebinfScanner.java:90)
              ... 16 more
      </blockquote>