5 Replies Latest reply on Sep 29, 2012 5:04 PM by camicase82

    Problem creating a simple project from seam 2.2.2 final on jboss as7

    camicase82

      Hi there guys, I have to migrate mi application from jboss5 to jboss7, so I started by building a war project on eclipse that can be deployed with webservices and my core stuff to jboss 7, till that everithing worked like a charm (I made all the changes needed in the configuration files in order to have it working), the I have to move to create an ear project with similar characteristics, here I found some issues that where corrected, but the I got stuck at this exception.

       

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011037: Unable to process modules in application.xml for EAR ["/C:/DEVELOPMENT/IDESWindows/jboss-as-7.1.1.Final/standalone/deployments/SalarixII7-ear.ear"], module file jboss-seam not found

                at org.jboss.as.ee.structure.EarStructureProcessor.deploy(EarStructureProcessor.java:168)

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                ... 5 more

       

      But after that i see seam deploying...

       

      I commented this <!--module-order>strict</module-order--> on jboss-app.xml because docmuentation said so

       

      here is my jboss-app.xml

       

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

      <!DOCTYPE jboss-app

          PUBLIC "-//JBoss//DTD J2EE Application 4.2//EN"

          "http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd">

       

       

      <jboss-app>

                <!--module-order>strict</module-order-->

                <loader-repository>

                          seam.jboss.org:loader=SalarixII7-ear.ear

                </loader-repository>

      </jboss-app>

       

      and appliation.xml

       

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

      <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">

        <display-name>SalarixII7-ear</display-name>

        <module>

          <ejb>jboss-seam</ejb>

        </module>

        <module>

          <web>

            <web-uri>SalarixII7.war</web-uri>

            <context-root>/SalarixII7</context-root>

          </web>

        </module>

        <module>

          <ejb>SalarixII7-ejb.jar</ejb>

        </module>

        <library-directory>lib</library-directory>

      </application>

       

      Aby help'll be reallya repciated. I alredy removed all the places on pom.xml where t sais that ti shoul exlcude jboss-seam, and when I deploy I can see the archive on ear root.

        • 1. Re: Problem creating a simple project from seam 2.2.2 final on jboss as7
          camicase82

          here is the full server log :s

           

          17:46:19,399 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

          17:46:19,623 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

          17:46:19,678 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

          17:46:20,611 INFO  [org.xnio] XNIO Version 3.0.3.GA

          17:46:20,611 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

          17:46:20,623 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

          17:46:20,632 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

          17:46:20,656 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

          17:46:20,660 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

          17:46:20,669 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

          17:46:20,682 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem

          17:46:20,684 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem

          17:46:20,699 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

          17:46:20,701 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

          17:46:20,715 INFO  [org.jboss.as.security] (MSC service thread 1-13) JBAS013100: Current PicketBox version=4.0.7.Final

          17:46:20,798 INFO  [org.jboss.as.connector] (MSC service thread 1-11) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

          17:46:20,811 INFO  [org.jboss.as.naming] (MSC service thread 1-16) JBAS011802: Starting Naming Service

          17:46:20,836 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-5) JBAS015400: Bound mail session [java:jboss/mail/Default]

          17:46:20,871 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

          17:46:20,925 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-13) JBoss Web Services - Stack CXF Server 4.0.2.GA

          17:46:21,258 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-8) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080

          17:46:21,279 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-4) JBAS015012: Started FileSystemDeploymentService for directory C:\DEVELOPMENT\IDESWindows\jboss-as-7.1.1.Final\standalone\deployments

          17:46:21,309 INFO  [org.jboss.as.remoting] (MSC service thread 1-5) JBAS017100: Listening on localhost/127.0.0.1:4447

          17:46:21,309 INFO  [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on /127.0.0.1:9999

          17:46:21,384 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-14) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

          17:46:21,426 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-12) JBAS015876: Starting deployment of "sqljdbc4.jar"

          17:46:21,866 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) JBAS010403: Deploying JDBC-compliant driver class com.microsoft.sqlserver.jdbc.SQLServerDriver (version 2.0)

          17:46:21,907 INFO  [org.jboss.as] (MSC service thread 1-15) JBAS015951: Admin console listening on http://127.0.0.1:9990

          17:46:21,909 INFO  [org.jboss.as] (MSC service thread 1-15) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 2809ms - Started 154 of 231 services (76 services are passive or on-demand)

          17:46:22,141 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "sqljdbc4.jar"

          17:46:27,172 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found SalarixII7-ear.ear in deployment directory. To trigger deployment create a file called SalarixII7-ear.ear.dodeploy

          17:46:32,223 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "SalarixII7-ear.ear"

          17:46:32,243 WARN  [org.jboss.metadata.parser.jboss.JBossAppMetaDataParser] (MSC service thread 1-15) loader-repository element in jboss-app.xml is deprecated and has been ignored

          17:46:32,427 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-15) MSC00001: Failed to start service jboss.deployment.unit."SalarixII7-ear.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."SalarixII7-ear.ear".STRUCTURE: Failed to process phase STRUCTURE of deployment "SalarixII7-ear.ear"

                    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                    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]

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

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

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

          Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011037: Unable to process modules in application.xml for EAR ["/C:/DEVELOPMENT/IDESWindows/jboss-as-7.1.1.Final/standalone/deployments/SalarixII7-ear.ear"], module file jboss-seam not found

                    at org.jboss.as.ee.structure.EarStructureProcessor.deploy(EarStructureProcessor.java:168)

                    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

                    ... 5 more

           

           

          17:46:32,440 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "SalarixII7-ear.ear" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"SalarixII7-ear.ear\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"SalarixII7-ear.ear\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"SalarixII7-ear.ear\""}}

          17:46:32,450 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-9) JBAS015877: Stopped deployment SalarixII7-ear.ear in 9ms

          17:46:32,452 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

          JBAS014777:   Services which failed to start:      service jboss.deployment.unit."SalarixII7-ear.ear".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."SalarixII7-ear.ear".STRUCTURE: Failed to process phase STRUCTURE of deployment "SalarixII7-ear.ear"

           

           

          17:46:32,455 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.deployment.unit.\"SalarixII7-ear.ear\".STRUCTURE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"SalarixII7-ear.ear\".STRUCTURE: Failed to process phase STRUCTURE of deployment \"SalarixII7-ear.ear\""}}}}

          • 2. Re: Problem creating a simple project from seam 2.2.2 final on jboss as7
            nickarls

            Do you need the jboss-app.xml file at all? I don't know how the loader-repository is interpreted in AS7.

            • 3. Re: Problem creating a simple project from seam 2.2.2 final on jboss as7
              camicase82

              As a matter of fact I did need it whe I started working on the web part of the project, now I have a simple example envolving web services, seam and envers...in case someone needs it

              • 4. Re: Problem creating a simple project from seam 2.2.2 final on jboss as7
                camicase82

                HI there, now im facing a pretty strange issue...I fanally made it ot build an ear project, and got a perfect integration with envers, but first of all the main web page isn't rendering, and when I place components on the war side of the project, seam isn't reading them, for example I have this very simple class on the war part, but in the components seam loads the "cosaBean" is never listed...any ideas??

                 

                '

                package org.jboss.samples.webservices;

                 

                 

                import org.jboss.seam.ScopeType;

                import org.jboss.seam.annotations.AutoCreate;

                import org.jboss.seam.annotations.Name;

                import org.jboss.seam.annotations.Scope;

                 

                 

                @Name("cosaBean")

                @AutoCreate

                @Scope(ScopeType.APPLICATION)

                public class Cosa {

                 

                 

                }

                • 5. Re: Problem creating a simple project from seam 2.2.2 final on jboss as7
                  camicase82

                  The last error was solved by just adding a seam.properties to the root of the code on the war part of the project (dooooh)...this file just tells seam that there are anotated classes on the innner packages and start scanning them, now im stuck beacuase jboss7 is just ignoring my standard-jaxws-endpoint-config.xml...any ideas??? I'll atach the current project in case some one needs it, it already have seam 2.2.2 working with envers on jboss7...almost everihing its ok just for the webservices integration