1 2 Previous Next 18 Replies Latest reply on Aug 24, 2013 6:12 AM by raffa.ciccio

    Jboss 7 Status 404

    raffa.ciccio Newbie

      Hello, I apologize for my English!

       

      I have a big problem:

      I followed the guide to create a new project with seam eclipse http://techieexchange.wordpress.com/2008/02/01/how-to-make-jboss-seam-work-with-eclipse-for-windows/

       

      I have Windows 8 (64 bit)

      jboss as 7.1.1 Final

      jboss seam 2.2.1 Final

      Eclipse 4.2 Classic

      Mysql 5.2

      mysql-connector-java5.0.8

      jdk 1.7.0

      ant 1.8

       

      Following the steps after I get Run As Ant Build successful

       

      {code}

      Buildfile: C:\Users\Di Rienzo\Workspaces\Eclipse 4.2 Classic\Progetto\build.xml

      init:

      clear-profile-artifacts:

         [delete] Deleting: C:\Users\Di Rienzo\Workspaces\Eclipse 4.2 Classic\Progetto\exploded-archives\Progetto.ear\Progetto_jar\META-INF\persistence.xml

         [delete] Deleting: C:\Users\Di Rienzo\Workspaces\Eclipse 4.2 Classic\Progetto\exploded-archives\Progetto.ear\Progetto_jar\import.sql

         [delete] Deleting: C:\Users\Di Rienzo\Workspaces\Eclipse 4.2 Classic\Progetto\exploded-archives\Progetto.ear\Progetto_war\WEB-INF\classes\components.properties

      groovy.compile:

      groovy.copy:

      compile:

      copyclasses:

      jar:

           [copy] Copying 1 file to C:\Users\Di Rienzo\Workspaces\Eclipse 4.2 Classic\Progetto\exploded-archives\Progetto.ear\Progetto_jar\META-INF

           [copy] Copying 1 file to C:\Users\Di Rienzo\Workspaces\Eclipse 4.2 Classic\Progetto\exploded-archives\Progetto.ear\Progetto_jar

      war:

           [copy] Copying 1 file to C:\Users\Di Rienzo\Workspaces\Eclipse 4.2 Classic\Progetto\exploded-archives\Progetto.ear\Progetto_war\WEB-INF\classes

      ear:

      stage:

      archive:

            [jar] Building jar: C:\Users\Di Rienzo\Workspaces\Eclipse 4.2 Classic\Progetto\dist\Progetto.jar

            [jar] Building jar: C:\Users\Di Rienzo\Workspaces\Eclipse 4.2 Classic\Progetto\dist\Progetto.war

            [jar] Building jar: C:\Users\Di Rienzo\Workspaces\Eclipse 4.2 Classic\Progetto\dist\Progetto.ear

      datasource:

      deploy:

           [copy] Copying 1 file to C:\Users\Di Rienzo\Desktop\jboss\jboss-as-7.1.1\server\default\deploy

      BUILD SUCCESSFUL

      Total time: 2 seconds

       

      {code}

       

      Progetto.ear and Project-ds.xml in ../server / default / deploy

      but if I access http://localhost:8080/Progetto tells me Status 404 The requested resource (/ project) is not available.

      The server is working properly http://localhost:8080

      How can I fix the problem?

        • 1. Re: Jboss 7 Status 404
          Nicklas Karlsson Master

          Deployment artifacts should go in <HOME>/standalone/deployments

          • 2. Re: Jboss 7 Status 404
            raffa.ciccio Newbie

            Eclipse makes a copy in the deploy folder.

            How do I copy it to deploy?

            • 3. Re: Jboss 7 Status 404
              Nicklas Karlsson Master

              Just like any normal file?

              • 4. Re: Jboss 7 Status 404
                raffa.ciccio Newbie

                I copied the files <progetto.ear and project-ds.xml <HOME> / standalone / deployments, but I have always the same error, so I thought it was wrong!

                • 5. Re: Jboss 7 Status 404
                  Nicklas Karlsson Master

                  Show the server log

                  • 6. Re: Jboss 7 Status 404
                    raffa.ciccio Newbie

                    I'm sorry but I know little jboss. But I only noticed now that if I start from the shell I get the following log with an error when there are files in your deployment.

                     

                    {code}

                    09:26:14,560 INFO  [org.jboss.as.security] (MSC service thread 1-3) JBAS013100: Current PicketBox version=4.0.7.Final

                    09:26:14,592 INFO  [org.jboss.remoting] (MSC service thread 1-4) JBoss Remoting version 3.2.3.GA

                    09:26:14,615 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

                    09:26:14,673 INFO  [org.jboss.as.connector] (MSC service thread 1-6) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

                    09:26:16,781 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

                    09:26:17,706 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080

                    09:26:18,229 INFO  [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service

                    09:26:18,236 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-6) JBAS015400: Bound mail session [java:jboss/mail/Default]

                    09:26:19,327 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-8) JBoss Web Services - Stack CXF Server 4.0.2.GA

                    09:26:19,824 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

                    09:26:20,620 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-7) JBAS015012: Started FileSystemDeploymentService for directory C:\Users\Di Rienzo\Desktop\jboss\jboss-as-7.1.1.Final\standalone\deployments

                    09:26:20,624 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment Prova-ds.xml

                    09:26:20,625 INFO  [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on /127.0.0.1:4447

                    09:26:20,625 INFO  [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on /127.0.0.1:9999

                    09:26:20,629 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment Prova.ear

                    09:26:21,000 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "Prova-ds.xml"

                    09:26:21,000 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015876: Starting deployment of "Prova.ear"

                    09:26:21,757 WARN  [org.jboss.metadata.parser.jboss.JBossAppMetaDataParser] (MSC service thread 1-1) loader-repository element in jboss-app.xml is deprecated and has been ignored

                    09:26:23,582 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."Prova-ds.xml".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."Prova-ds.xml".PARSE: Failed to process phase PARSE of deployment "Prova-ds.xml"

                              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.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_13]

                              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_13]

                              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_13]

                    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: IJ010061: Unexpected element: local-tx-datasource

                              at org.jboss.as.connector.deployers.processors.DsXmlDeploymentParsingProcessor.deploy(DsXmlDeploymentParsingProcessor.java:85)

                              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

                    Caused by: org.jboss.jca.common.metadata.ParserException: IJ010061: Unexpected element: local-tx-datasource

                              at org.jboss.jca.common.metadata.ds.DsParser.parseDataSources(DsParser.java:183)

                              at org.jboss.jca.common.metadata.ds.DsParser.parse(DsParser.java:119)

                              at org.jboss.jca.common.metadata.ds.DsParser.parse(DsParser.java:82)

                              at org.jboss.as.connector.deployers.processors.DsXmlDeploymentParsingProcessor.deploy(DsXmlDeploymentParsingProcessor.java:80)

                              ... 6 more

                     

                     

                    09:26:25,190 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "Prova.jar"

                    09:26:25,192 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "Prova.war"

                    09:26:25,194 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "jboss-seam.jar"

                    09:26:25,701 INFO  [org.jboss.as.jpa] (MSC service thread 1-6) JBAS011401: Read persistence.xml for Prova

                    09:26:26,214 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named EjbSynchronizations in deployment unit subdeployment "jboss-seam.jar" of deployment "Prova.ear" are as follows:

                     

                     

                              java:global/Prova/jboss-seam/EjbSynchronizations!org.jboss.seam.transaction.LocalEjbSynchronizations

                              java:app/jboss-seam/EjbSynchronizations!org.jboss.seam.transaction.LocalEjbSynchronizations

                              java:module/EjbSynchronizations!org.jboss.seam.transaction.LocalEjbSynchronizations

                              java:global/Prova/jboss-seam/EjbSynchronizations

                              java:app/jboss-seam/EjbSynchronizations

                              java:module/EjbSynchronizations

                     

                     

                    09:26:26,220 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named TimerServiceDispatcher in deployment unit subdeployment "jboss-seam.jar" of deployment "Prova.ear" are as follows:

                     

                     

                              java:global/Prova/jboss-seam/TimerServiceDispatcher!org.jboss.seam.async.LocalTimerServiceDispatcher

                              java:app/jboss-seam/TimerServiceDispatcher!org.jboss.seam.async.LocalTimerServiceDispatcher

                              java:module/TimerServiceDispatcher!org.jboss.seam.async.LocalTimerServiceDispatcher

                              java:global/Prova/jboss-seam/TimerServiceDispatcher

                              java:app/jboss-seam/TimerServiceDispatcher

                              java:module/TimerServiceDispatcher

                     

                     

                    09:26:26,243 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named AuthenticatorBean in deployment unit subdeployment "Prova.jar" of deployment "Prova.ear" are as follows:

                     

                     

                              java:global/Prova/Prova.jar/AuthenticatorBean!com.mydomain.Myfirst.action.Authenticator

                              java:app/Prova.jar/AuthenticatorBean!com.mydomain.Myfirst.action.Authenticator

                              java:module/AuthenticatorBean!com.mydomain.Myfirst.action.Authenticator

                              java:global/Prova/Prova.jar/AuthenticatorBean

                              java:app/Prova.jar/AuthenticatorBean

                              java:module/AuthenticatorBean

                     

                     

                    09:26:26,267 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC00001: Failed to start service jboss.deployment.subunit."Prova.ear"."Prova.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."Prova.ear"."Prova.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "Prova.war" of deployment "Prova.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.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_13]

                              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_13]

                              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_13]

                    Caused by: java.lang.NoClassDefFoundError: javax/faces/FacesException

                              at java.lang.Class.getDeclaredConstructors0(Native Method) [rt.jar:1.7.0_13]

                              at java.lang.Class.privateGetDeclaredConstructors(Class.java:2413) [rt.jar:1.7.0_13]

                              at java.lang.Class.getConstructor0(Class.java:2723) [rt.jar:1.7.0_13]

                              at java.lang.Class.getConstructor(Class.java:1676) [rt.jar:1.7.0_13]

                              at org.jboss.as.web.deployment.jsf.JsfManagedBeanProcessor.deploy(JsfManagedBeanProcessor.java:108)

                              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

                    Caused by: java.lang.ClassNotFoundException: javax.faces.FacesException from [Module "deployment.Prova.ear:main" from Service Module Loader]

                              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.1.GA]

                              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.1.GA]

                              ... 11 more

                     

                     

                    09:26:26,296 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "Prova.ear" was rolled back with no failure message

                    09:26:26,298 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "Prova-ds.xml" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"Prova-ds.xml\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Prova-ds.xml\".PARSE: Failed to process phase PARSE of deployment \"Prova-ds.xml\""}}

                    09:26:26,307 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment Prova-ds.xml in 8ms

                    09:26:26,324 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment Prova.jar in 22ms

                    09:26:26,334 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment jboss-seam.jar in 32ms

                    09:26:26,776 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015877: Stopped deployment Prova.war in 474ms

                    09:26:26,830 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment Prova.ear in 532ms

                    09:26:26,833 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

                    JBAS014775:    New missing/unsatisfied dependencies:

                          service jboss.naming.context.java.comp.Prova."Prova.jar".AuthenticatorBean (missing) dependents: [service jboss.naming.context.java.comp.Prova."Prova.jar".AuthenticatorBean.ValidatorFactory, service jboss.naming.context.java.comp.Prova."Prova.jar".AuthenticatorBean.Validator]

                          service jboss.naming.context.java.comp.Prova.jboss-seam.EjbSynchronizations (missing) dependents: [service jboss.naming.context.java.comp.Prova.jboss-seam.EjbSynchronizations.Validator, service jboss.naming.context.java.comp.Prova.jboss-seam.EjbSynchronizations.ValidatorFactory]

                          service jboss.naming.context.java.comp.Prova.jboss-seam.TimerServiceDispatcher (missing) dependents: [service jboss.naming.context.java.comp.Prova.jboss-seam.TimerServiceDispatcher.Validator, service jboss.naming.context.java.comp.Prova.jboss-seam.TimerServiceDispatcher.ValidatorFactory]

                    JBAS014777:   Services which failed to start:      service jboss.deployment.unit."Prova-ds.xml".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."Prova-ds.xml".PARSE: Failed to process phase PARSE of deployment "Prova-ds.xml"

                          service jboss.deployment.subunit."Prova.ear"."Prova.war".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."Prova.ear"."Prova.war".POST_MODULE: Failed to process phase POST_MODULE of subdeployment "Prova.war" of deployment "Prova.ear"

                     

                     

                    09:26:26,855 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.\"Prova-ds.xml\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Prova-ds.xml\".PARSE: Failed to process phase PARSE of deployment \"Prova-ds.xml\""}}}}

                    09:26:26,860 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back

                    {code}

                    If you start jboss from eclipse there is no error.

                     

                    {code}

                    09:30:21,071 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

                    09:30:22,597 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

                    09:30:22,730 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

                    09:30:27,619 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

                    09:30:27,622 INFO  [org.xnio] XNIO Version 3.0.3.GA

                    09:30:27,643 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

                    09:30:27,692 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

                    09:30:27,836 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

                    09:30:27,845 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

                    09:30:27,858 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem

                    09:30:27,858 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem

                    09:30:27,853 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

                    09:30:27,852 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

                    09:30:27,883 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

                    09:30:27,927 INFO  [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

                    09:30:28,204 INFO  [org.jboss.as.security] (MSC service thread 1-1) JBAS013100: Current PicketBox version=4.0.7.Final

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

                    09:30:30,363 INFO  [org.jboss.as.naming] (MSC service thread 1-6) JBAS011802: Starting Naming Service

                    09:30:30,369 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-6) JBAS015400: Bound mail session [java:jboss/mail/Default]

                    09:30:30,695 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080

                    09:30:31,482 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-4) JBoss Web Services - Stack CXF Server 4.0.2.GA

                    09:30:31,750 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

                    09:30:32,174 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-4) JBAS015012: Started FileSystemDeploymentService for directory C:\Users\Di Rienzo\jboss-as-7.1.1.Final\standalone\deployments

                    09:30:32,225 INFO  [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on /127.0.0.1:9999

                    09:30:32,225 INFO  [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on localhost/127.0.0.1:4447

                    09:30:32,672 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990

                    09:30:32,673 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 13035ms - Started 133 of 208 services (74 services are passive or on-demand)

                    {code}

                    The environment variable JBOSS_HOME is set to the path followed by the shell.

                    But if I have two different jboss running?

                    Thanks

                    • 7. Re: Jboss 7 Status 404
                      Nicklas Karlsson Master

                      There is a parse error in the datasource definition and probably some faces configuration error since the deployment didn't get the correct dependencies.

                      You shouldn't need JBOSS_HOME for anything but the eclipse-started-jboss must point somewhere else if you have the ear in the deployments folder but it doesn't show any deployment in the log.

                      • 8. Re: Jboss 7 Status 404
                        raffa.ciccio Newbie

                        I solved the problem of the two different log; eclipse did not point to the same folder.

                        But I have no idea how to solve the problem of dependencies. In the folder deployment, there is a file Raffa-ds.xml.failed

                         

                        {code} {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:"

                        => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"Raffa-ds.xml\".PARSE" =>

                        "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Raffa-ds.xml\".PARSE: Failed to process phase PARSE of deployment \"Raffa-ds.xml\""}}}}{code}

                        Raffa-ds.xml is:

                         

                        {code}

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

                        <!DOCTYPE datasources

                            PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"

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

                        <datasources>

                          

                           <local-tx-datasource>

                              <jndi-name>RaffaDatasource</jndi-name>

                              <use-java-context>true</use-java-context>

                              <connection-url>jdbc:///mysql/demo</connection-url>

                              <driver-class>com.mysql.jdbc.Driver</driver-class>

                              <user-name>root</user-name>

                              <password>ciccio</password>

                           </local-tx-datasource>

                           

                        </datasources> {code}

                         

                        Can you hel me to resolve the problem of dependencies?

                        • 9. Re: Jboss 7 Status 404
                          Nicklas Karlsson Master

                          Check the xml format in https://community.jboss.org/en/tools/blog/2012/02/28/excited-about-jboss-as-71-part-i-deployable-datasources

                           

                          Has the application worked before on another server? Does the war have a faces-config in the correct place?

                          • 10. Re: Jboss 7 Status 404
                            raffa.ciccio Newbie

                            I do not understand!

                            I wrote the file, I think following the guide.

                             

                            {code} 

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

                            <datasources xmlns="http://www.jboss.org/ironjacamar/schema">

                                <datasource

                                    jndi-name="java:jboss/datasources/employeedb"

                                    enabled="true"

                                    use-java-context="true" pool-name="employeedb">

                                    <connection-url>jdbc:mysql://localhost:3306/demo</connection-url>

                                    <driver>mysql-connector-java-5.0.8-bin.jar</driver>

                                    <pool></pool>

                                    <security>

                                        <user-name>root</user-name>

                                        <password>ciccio</password>

                                    </security>

                                </datasource>

                            </datasources>

                            {code}

                            But fails!

                            The application did not work on another server, the file faces-config is <Jboss-home> \ standalone \ deployments \ Raffa.ear \ Raffa.war \ WEB-INF.

                            I have not configured anything.

                            My step:

                            folder jboss-seam2.2

                            {code} seam setup{code}

                            I insert the data

                            then

                             

                            {code} seam create-project{code}

                            I copy the files that from in <jboss-home> / server / deploy to deployments where I have the file mysql-connector.jar deployed

                            I know I'm ignorant, but I need to create the environment for an exam.

                            Help Me!!!

                            • 11. Re: Jboss 7 Status 404
                              Nicklas Karlsson Master

                              What's the error related to the datasource?

                              • 12. Re: Jboss 7 Status 404
                                Nicklas Karlsson Master

                                And you should also remove all jsf-related jars from the WAR libs

                                • 13. Re: Jboss 7 Status 404
                                  raffa.ciccio Newbie

                                  Raffa-ds.xml.failed:

                                   

                                  {code} {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:"

                                  => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies"

                                  => ["jboss.data-source.jboss/datasources/employeedbjboss.jdbc-driver.mysql-connector-java-5_0_8-bin_jarMissing

                                  [jboss.data-source.jboss/datasources/employeedbjboss.jdbc-driver.mysql-connector-java-5_0_8-bin_jar]"]}}}{code}

                                   

                                  and in

                                  <home>\standalone\deployments\Io.ear\Io.war\WEB-INF\lib I deleted jsf-facelets.jar

                                  log is:

                                   

                                  {code} 

                                  14:37:00,295 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA

                                  14:37:00,427 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA

                                  14:37:00,467 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

                                  14:37:01,882 INFO  [org.xnio] XNIO Version 3.0.3.GA

                                  14:37:01,882 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

                                  14:37:01,888 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

                                  14:37:01,893 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

                                  14:37:01,924 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

                                  14:37:01,931 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

                                  14:37:01,938 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem

                                  14:37:01,942 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

                                  14:37:01,943 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

                                  14:37:01,962 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

                                  14:37:01,974 INFO  [org.jboss.as.connector] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)

                                  14:37:01,980 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

                                  14:37:01,989 INFO  [org.jboss.as.security] (MSC service thread 1-7) JBAS013100: Current PicketBox version=4.0.7.Final

                                  14:37:02,032 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem

                                  14:37:02,071 INFO  [org.jboss.as.naming] (MSC service thread 1-5) JBAS011802: Starting Naming Service

                                  14:37:02,075 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-2) JBAS015400: Bound mail session [java:jboss/mail/Default]

                                  14:37:02,177 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-6) JBoss Web Services - Stack CXF Server 4.0.2.GA

                                  14:37:02,390 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-7) JBAS015012: Started FileSystemDeploymentService for directory C:\Users\Di Rienzo\Desktop\jboss\jboss-as-7.1.1.Final\standalone\deployments

                                  14:37:02,427 INFO  [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found Io.ear in deployment directory. To trigger deployment create a file called Io.ear.dodeploy

                                  14:37:02,516 INFO  [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on localhost/127.0.0.1:4447

                                  14:37:02,526 INFO  [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on /127.0.0.1:9999

                                  14:37:02,533 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-7) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080

                                  14:37:02,633 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

                                  14:37:02,647 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015876: Starting deployment of "Io-ds.xml"

                                  14:37:02,647 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "mysql-connector-java-5.0.8-bin.jar"

                                  14:37:02,817 INFO  [org.jboss.as] (MSC service thread 1-8) JBAS015951: Admin console listening on http://127.0.0.1:9990

                                  14:37:02,818 ERROR [org.jboss.as] (MSC service thread 1-8) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 2717ms - Started 173 of 255 services (3 services failed or missing dependencies, 78 services are passive or on-demand)

                                  14:37:03,019 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "mysql-connector-java-5.0.8-bin.jar" was rolled back with no failure message

                                  14:37:03,024 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "Io-ds.xml" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.data-source.jboss/datasources/employeedbjboss.jdbc-driver.mysql-connector-java-5_0_8-bin_jarMissing[jboss.data-source.jboss/datasources/employeedbjboss.jdbc-driver.mysql-connector-java-5_0_8-bin_jar]"]}

                                  14:37:03,029 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) JBAS010409: Unbound data source [jboss/datasources/employeedb]

                                  14:37:03,038 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment Io-ds.xml in 16ms

                                  14:37:03,041 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment mysql-connector-java-5.0.8-bin.jar in 21ms

                                  14:37:03,043 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report

                                  JBAS014775:    New missing/unsatisfied dependencies:

                                        service jboss.jdbc-driver.mysql-connector-java-5_0_8-bin_jar (missing) dependents: [service jboss.data-source.jboss/datasources/employeedb]

                                   

                                   

                                  14:37:03,046 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.data-source.jboss/datasources/employeedbjboss.jdbc-driver.mysql-connector-java-5_0_8-bin_jarMissing[jboss.data-source.jboss/datasources/employeedbjboss.jdbc-driver.mysql-connector-java-5_0_8-bin_jar]"]}}}

                                  14:37:03,052 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back {code}

                                  • 14. Re: Jboss 7 Status 404
                                    Nicklas Karlsson Master

                                    Still complaining about the driver. Have you dropped the driver jar in the deployment folder, too?

                                    I usually use the driver-module approach myself. If you google around you will find several examples on how to setup mysql datasources for as7

                                    1 2 Previous Next