6 Replies Latest reply on Jul 7, 2011 1:17 PM by Esteve Aviles

    AS7 + Seam3: Services with missing/unavailable dependencies

    Esteve Aviles Newbie

      Hi,

      I am trying to deploy a Seam 3 application in AS7 CR1 and I am getting errors that are hard to follow.

      First I get a WARN on JSF implementation:

      07:27:55,671 WARN  [org.jboss.as.web.deployment.WarClassloadingDependencyProcessor] (MSC service thread 1-3) Ukown JSF version MyFaces-2.0 Mojarra-2.0 will be used instead

      Do I have to change JSF implementation declared in web.xml?


      <context-param>


      <param-name>org.jboss.jbossfaces.JSF_CONFIG_NAME</param-name>


      <param-value>MyFaces-2.0</param-value>

      </context-param>

      Second and most annoying, the server triggers this message without further detail:

      07:27:54,781 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "teamgol.war"

      07:27:54,783 WARN  [org.jboss.as.web.deployment.WarStructureDeploymentProcessor] (MSC service thread 1-3) Files, except persistence.xml, under META-INF directory /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/classes/META-INF ignored as it is not a valid location for META-INF

      07:27:55,669 INFO  [org.jboss.jpa] (MSC service thread 1-1) read persistence.xml for teamgolPersistenceUnit

      07:27:55,671 WARN  [org.jboss.as.web.deployment.WarClassloadingDependencyProcessor] (MSC service thread 1-3) Ukown JSF version MyFaces-2.0 Mojarra-2.0 will be used instead

      07:27:55,702 INFO  [org.jboss.weld] (MSC service thread 1-4) Processing CDI deployment: teamgol.war

      07:27:55,742 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-4) JNDI bindings for session bean named ApplicationScheduler in deployment unit deployment "teamgol.war" are as follows:

       

       

                java:global/teamgol/ApplicationScheduler!com.pelopiti.teamgol.application.ApplicationScheduler

                java:app/teamgol/ApplicationScheduler!com.pelopiti.teamgol.application.ApplicationScheduler

                java:module/ApplicationScheduler!com.pelopiti.teamgol.application.ApplicationScheduler

                java:global/teamgol/ApplicationScheduler

                java:app/teamgol/ApplicationScheduler

                java:module/ApplicationScheduler

       

       

      07:27:55,916 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

      07:27:55,918 INFO  [org.jboss.weld] (MSC service thread 1-2) Starting Services for CDI deployment: teamgol.war

      07:27:55,941 INFO  [org.jboss.weld] (MSC service thread 1-1) Starting weld service

      07:27:55,994 INFO  [org.jboss.seam.solder.Version] (MSC service thread 1-1) Seam Solder null (build id: null)

      07:27:56,007 INFO  [org.jboss.seam.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-1) Seam Config XML provider starting...

      07:27:56,011 INFO  [org.jboss.seam.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-1) Loading XmlDocumentProvider: org.jboss.seam.config.xml.bootstrap.ResourceLoaderXmlDocumentProvider

      07:27:56,017 INFO  [org.jboss.seam.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-1) Reading XML file: vfs:/servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/classes/META-INF/seam-beans.xml

      07:27:56,024 INFO  [org.jboss.seam.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-1) Reading XML file: vfs:/servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/seam-catch-3.0.0.Final.jar/META-INF/beans.xml

      07:27:56,026 INFO  [org.jboss.seam.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-1) Reading XML file: vfs:/servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/seam-servlet-3.0.0.Final.jar/META-INF/beans.xml

      07:27:56,028 INFO  [org.jboss.seam.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-1) Reading XML file: vfs:/servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/seam-security-3.0.0.Final.jar/META-INF/beans.xml

      07:27:56,030 INFO  [org.jboss.seam.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-1) Reading XML file: vfs:/servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/seam-international-3.0.0.Final.jar/META-INF/beans.xml

      07:27:56,032 INFO  [org.jboss.seam.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-1) Reading XML file: vfs:/servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/seam-faces-3.0.0.Final.jar/META-INF/beans.xml

      07:27:56,041 INFO  [org.jboss.seam.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-1) Reading XML file: vfs:/servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/seam-solder-3.0.0.Final.jar/META-INF/beans.xml

      07:27:56,183 INFO  [org.jboss.seam.solder.core.CoreExtension] (MSC service thread 1-1) Preventing class org.jboss.seam.international.locale.LocaleConfiguration from being installed as bean due to @Veto annotation

      07:27:56,260 INFO  [org.jboss.seam.solder.core.CoreExtension] (MSC service thread 1-1) Preventing class org.jboss.seam.transaction.UTTransaction from being installed as bean due to @Veto annotation

      07:27:56,286 INFO  [org.jboss.seam.solder.core.CoreExtension] (MSC service thread 1-1) Preventing class org.jboss.seam.transaction.SeSynchronizations from being installed as bean due to @Veto annotation

      07:27:56,295 INFO  [org.jboss.seam.solder.core.CoreExtension] (MSC service thread 1-1) Preventing class org.jboss.seam.transaction.CMTTransaction from being installed as bean due to @Veto annotation

      07:27:56,298 INFO  [org.jboss.seam.solder.core.CoreExtension] (MSC service thread 1-1) Preventing class org.jboss.seam.transaction.EntityTransaction from being installed as bean due to @Veto annotation

      07:27:56,321 INFO  [org.jboss.seam.solder.core.CoreExtension] (MSC service thread 1-1) Preventing class org.jboss.seam.persistence.hibernate.HibernateManagedSessionExtensionImpl from being installed as bean due to @Veto annotation

      07:27:56,331 INFO  [org.jboss.seam.solder.core.CoreExtension] (MSC service thread 1-1) Preventing class org.jboss.seam.transaction.NoTransaction from being installed as bean due to @Veto annotation

      07:27:56,369 INFO  [org.jboss.seam.solder.core.CoreExtension] (MSC service thread 1-1) Preventing class org.jboss.seam.transaction.HibernateTransaction from being installed as bean due to @Veto annotation

      07:27:56,376 INFO  [org.jboss.seam.solder.core.CoreExtension] (MSC service thread 1-1) Preventing class org.jboss.seam.persistence.HibernatePersistenceProvider from being installed as bean due to @Veto annotation

      07:27:56,516 INFO  [org.jboss.seam.solder.core.CoreExtension] (MSC service thread 1-1) Preventing class org.jboss.seam.faces.validation.InputElement from being installed as bean due to @Veto annotation

      07:27:57,538 INFO  [org.jboss.seam.solder.core.CoreExtension] (MSC service thread 1-1) Preventing class org.jboss.seam.solder.core.VersionLoggerUtil from being installed as bean due to @Veto annotation

      07:27:57,835 INFO  [org.jboss.seam.solder.core.CoreExtension] (MSC service thread 1-1) Preventing class org.jboss.seam.solder.resourceLoader.ResourceProvider from being installed as bean due to @Veto annotation

      07:27:57,983 INFO  [org.jboss.seam.international.status.TypedStatusMessageBundleExtension] (MSC service thread 1-1) Add @MessageBundle to org.jboss.seam.solder.reflection.annotated.AnnotationBuilder.messages injection point for the type: org.jboss.seam.solder.support.SolderMessages

      07:27:57,994 INFO  [org.jboss.seam.international.status.TypedStatusMessageBundleExtension] (MSC service thread 1-1) Add @MessageBundle to org.jboss.seam.solder.reflection.annotated.AnnotatedTypeBuilder.messages injection point for the type: org.jboss.seam.solder.support.SolderMessages

      07:27:58,136 INFO  [org.jboss.seam.persistence.ManagedPersistenceContextExtension] (MSC service thread 1-1) Configuring Seam Managed Persistence Context from producer field com.pelopiti.teamgol.persistence.TeamgolEntityManagerProducer.emf with qualifiers [@javax.enterprise.inject.Any(), @com.pelopiti.teamgol.persistence.TeamgolEntityManager()]

      07:27:58,374 INFO  [org.jboss.seam.solder.core.CoreExtension] (MSC service thread 1-1) Preventing class org.jboss.seam.servlet.http.HttpServletRequestContext from being installed as bean due to @Veto annotation

      07:27:58,430 INFO  [org.jboss.seam.solder.core.CoreExtension] (MSC service thread 1-1) Preventing class org.jboss.seam.servlet.ServletRequestContext from being installed as bean due to @Veto annotation

      07:27:58,822 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "teamgol.war" was rolled back with failure message {"Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"teamgol.war\".component.\"org.jboss.seam.servlet.event.ServletEventBridgeFilter\".START","jboss.deployment.unit.\"teamgol.war\".component.\"org.jboss.seam.servlet.event.ServletEventBridgeServlet\".START","jboss.deployment.unit.\"teamgol.war\".component.\"org.jboss.seam.faces.beanManager.BeanManagerServletContextListener\".START","jboss.web.\"teamgol.war\"","jboss.persistenceunit.\"teamgol.war#teamgolPersistenceUnit\"","jboss.deployment.unit.\"teamgol.war\".component.\"com.ocpsoft.pretty.PrettyFilter\".START","jboss.deployment.unit.\"teamgol.war\".component.\"org.jboss.seam.servlet.event.ServletEventBridgeListener\".START","jboss.deployment.unit.\"teamgol.war\".component.\"org.jboss.seam.solder.resourceLoader.servlet.ResourceListener\".START","jboss.deployment.unit.\"teamgol.war\".component.\"org.jboss.as.weld.webtier.jsp.JspInitializationListener\".START","jboss.deployment.unit.\"teamgol.war\".component.\"com.ocpsoft.pretty.faces.component.tag.LinkTag\".START","jboss.deployment.unit.\"teamgol.war\".component.\"com.ocpsoft.pretty.faces.component.tag.UrlBufferTag\".START","jboss.deployment.unit.\"teamgol.war\".component.\"org.jboss.seam.servlet.exception.CatchExceptionFilter\".START","jboss.deployment.unit.\"teamgol.war\".component.\"com.ocpsoft.pretty.faces.config.PrettyConfigListener\".START","jboss.deployment.unit.\"teamgol.war\".component.ApplicationScheduler.START","jboss.deployment.unit.\"teamgol.war\".component.\"org.primefaces.resource.ResourceServlet\".START"]}

      07:27:58,850 INFO  [org.jboss.weld] (MSC service thread 1-1) Stopping weld service

      07:27:58,884 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment teamgol.war in 62ms

      07:27:58,886 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"teamgol.war\".component.\"org.jboss.seam.servlet.event.ServletEventBridgeFilter\".START","jboss.deployment.unit.\"teamgol.war\".component.\"org.jboss.seam.servlet.event.ServletEventBridgeServlet\".START","jboss.deployment.unit.\"teamgol.war\".component.\"org.jboss.seam.faces.beanManager.BeanManagerServletContextListener\".START","jboss.web.\"teamgol.war\"","jboss.persistenceunit.\"teamgol.war#teamgolPersistenceUnit\"","jboss.deployment.unit.\"teamgol.war\".component.\"com.ocpsoft.pretty.PrettyFilter\".START","jboss.deployment.unit.\"teamgol.war\".component.\"org.jboss.seam.servlet.event.ServletEventBridgeListener\".START","jboss.deployment.unit.\"teamgol.war\".component.\"org.jboss.seam.solder.resourceLoader.servlet.ResourceListener\".START","jboss.deployment.unit.\"teamgol.war\".component.\"org.jboss.as.weld.webtier.jsp.JspInitializationListener\".START","jboss.deployment.unit.\"teamgol.war\".component.\"com.ocpsoft.pretty.faces.component.tag.LinkTag\".START","jboss.deployment.unit.\"teamgol.war\".component.\"com.ocpsoft.pretty.faces.component.tag.UrlBufferTag\".START","jboss.deployment.unit.\"teamgol.war\".component.\"org.jboss.seam.servlet.exception.CatchExceptionFilter\".START","jboss.deployment.unit.\"teamgol.war\".component.\"com.ocpsoft.pretty.faces.config.PrettyConfigListener\".START","jboss.deployment.unit.\"teamgol.war\".component.ApplicationScheduler.START","jboss.deployment.unit.\"teamgol.war\".component.\"org.primefaces.resource.ResourceServlet\".START"]}}}

       

       

      My classpath is the following:

      /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/commons-lang-2.6.jar

      /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/joda-time-1.6.2.jar

      /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/mysql-connector-java-5.1.14.jar

      /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/ocpsoft-pretty-time-1.0.7.jar

      /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/picketlink-idm-api-1.5.0.Alpha02.jar

      /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/picketlink-idm-common-1.5.0.Alpha02.jar

      /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/picketlink-idm-core-1.5.0.Alpha02.jar

      /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/picketlink-idm-spi-1.5.0.Alpha02.jar

      /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/prettyfaces-jsf2-3.3.0.jar

      /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/primefaces-2.2.1.jar

      /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/seam-catch-3.0.0.Final.jar

      /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/seam-config-xml-3.0.0.Final.jar

      /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/seam-faces-3.0.0.Final.jar

      /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/seam-international-3.0.0.Final.jar

      /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/seam-persistence-3.0.0.Final.jar

      /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/seam-security-3.0.0.Final.jar

      /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/seam-servlet-3.0.0.Final.jar

      /servers/jboss-7.0.0.CR1/standalone/deployments/teamgol.war/WEB-INF/lib/seam-solder-3.0.0.Final.jar

       

      Thanks in advance-