5 Replies Latest reply on Mar 22, 2012 8:31 PM by Phanor Coll

    ERROR deploying web application to root context jbossAS 7.1

    Phanor Coll Newbie

      Im trying to deploy my web app to root context instead of using http://localhost:8080/webapp, I want to use http://localhost:8080..

       

      I modified standalone.xml, enable-welcome-root to false

       

      <virtual-server name="default-host" enable-welcome-root="false">

            <alias name="localhost"/>

      </virtual-server>

       

      and created jboss-web.xml in WEB-INF

       

      <jboss-web>

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

      </jboss-web>

       

      when I  enter http://localhost:8080, I get

      HTTP Status 404 - /


      type Status report

      message /

      description The requested resource (/) is not available.

       

       

      Im using jbossAS 7.1

        • 1. Re: ERROR deploying web application to root context jbossAS 7.1
          Tomaz Cerar Master

          Hi,

           

          what does your log say?

          There should be something about where it did application deploy to.

           

          Is this war deployment or ear?

           

          --

          tomaz

          • 2. Re: ERROR deploying web application to root context jbossAS 7.1
            Phanor Coll Newbie

            jboss server.log, i get this when I try localhost:8080

             

            12:30:51,394 TRACE [com.arjuna.ats.jta] (http--127.0.0.1-8080-1) BaseTransaction.getStatus

            12:30:51,463 TRACE [com.arjuna.ats.jta] (http--127.0.0.1-8080-1) BaseTransaction.getStatus

             

             

            Im deploying a war...

             

            Im I missing something?

            • 3. Re: ERROR deploying web application to root context jbossAS 7.1
              Tomaz Cerar Master

              hi,

               

              not while you are trying to access it, what does your log looks like when server is starting.

               

              --

              tomaz

              • 4. Re: ERROR deploying web application to root context jbossAS 7.1
                Phanor Coll Newbie

                this is de log whe the server is starting

                 

                 

                =========================================================================

                 

                  JBoss Bootstrap Environment

                 

                  JBOSS_HOME: /home/desarrollo/jboss_prod/jboss-as-7.1.0.Final

                 

                  JAVA: java

                 

                  JAVA_OPTS:  -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms1g -Xmx2g -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml

                 

                =========================================================================

                 

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

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

                19:46:09,216 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.0.Final "Thunder" starting

                19:46:09,985 INFO  [org.xnio] XNIO Version 3.0.3.GA

                19:46:09,986 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

                19:46:10,000 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA

                19:46:10,014 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.2.GA

                19:46:10,027 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

                19:46:10,050 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

                19:46:10,060 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

                19:46:10,078 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

                19:46:10,105 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem

                19:46:10,108 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem

                19:46:10,109 INFO  [org.jboss.as.connector] (MSC service thread 1-15) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.7.Final)

                19:46:10,111 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

                19:46:10,140 INFO  [org.jboss.as.security] (MSC service thread 1-15) JBAS013100: Current PicketBox version=4.0.6.final

                19:46:10,202 INFO  [org.jboss.as.naming] (MSC service thread 1-7) JBAS011802: Starting Naming Service

                19:46:10,206 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-10) JBAS015400: Bound mail session [java:jboss/mail/Default]

                19:46:10,302 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

                19:46:10,328 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-7) JBoss Web Services - Stack CXF Server 4.0.1.GA

                19:46:10,411 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-13) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080

                19:46:10,575 INFO  [com.arjuna.ats.jbossatx] (MSC service thread 1-9) ARJUNA032010: JBossTS Recovery Service (tag: JBOSSTS_4_16_2_Final) - JBoss Inc.

                19:46:10,595 INFO  [com.arjuna.ats.arjuna] (MSC service thread 1-9) ARJUNA012324: Start RecoveryActivators

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

                19:46:10,607 INFO  [org.jboss.as.remoting] (MSC service thread 1-12) JBAS017100: Listening on /127.0.0.1:4447

                19:46:10,610 INFO  [com.arjuna.ats.arjuna] (Transaction Expired Entry Monitor) ARJUNA012296: ExpiredEntryMonitor running at Thu, 22 Mar 2012 19:46:10

                19:46:10,613 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-7) JBAS015012: Started FileSystemDeploymentService for directory /home/desarrollo/jboss_prod/jboss-as-7.1.0.Final/standalone/deployments

                19:46:10,662 INFO  [com.arjuna.ats.arjuna] (MSC service thread 1-9) ARJUNA012343: RecoveryManagerImple is ready. Socket listener is turned off.

                19:46:10,663 INFO  [com.arjuna.ats.jbossatx] (MSC service thread 1-9) ARJUNA032013: Starting transaction recovery manager

                19:46:10,714 INFO  [com.arjuna.ats.jbossatx] (MSC service thread 1-13) ARJUNA032017: JBossTS Transaction Service (JTA version - tag: JBOSSTS_4_16_2_Final) - JBoss Inc.

                19:46:10,782 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-11) JBAS010400: Bound data source [java:/MySqlDS_datatestes]

                19:46:10,797 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.0.Final "Thunder" started in 2027ms - Started 134 of 206 services (71 services are passive or on-demand)

                19:46:10,813 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-11) JBAS015876: Starting deployment of "gowiproject.war"

                19:46:12,917 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor' for service type 'com.sun.faces.spi.injectionprovider'

                19:46:12,918 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection' for service type 'com.sun.faces.spi.injectionprovider'

                19:46:12,921 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Tomcat6InjectionProvider:org.apache.catalina.util.DefaultAnnotationProcessor' for service type 'com.sun.faces.spi.injectionprovider'

                19:46:12,922 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015893: Encountered invalid class name 'com.sun.faces.vendor.Jetty6InjectionProvider:org.mortbay.jetty.plus.annotation.InjectionCollection' for service type 'com.sun.faces.spi.injectionprovider'

                19:46:13,045 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.gowiproject.war" is using a private module ("org.w3c.css.sac:main") which may be changed or removed in future versions without notice.

                19:46:13,046 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-2) JBAS018567: Deployment "deployment.gowiproject.war" is using a private module ("net.sourceforge.cssparser:main") which may be changed or removed in future versions without notice.

                19:46:13,369 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named usuarioLogin in deployment unit deployment "gowiproject.war" are as follows:

                 

                        java:global/gowiproject/usuarioLogin!gowi.buslogic.UsuarioLogin

                        java:app/gowiproject/usuarioLogin!gowi.buslogic.UsuarioLogin

                        java:module/usuarioLogin!gowi.buslogic.UsuarioLogin

                        java:global/gowiproject/usuarioLogin

                        java:app/gowiproject/usuarioLogin

                        java:module/usuarioLogin

                 

                19:46:13,372 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-3) JNDI bindings for session bean named UsuarioCrearCuenta in deployment unit deployment "gowiproject.war" are as follows:

                 

                        java:global/gowiproject/UsuarioCrearCuenta!gowi.interfaces.UsuarioCrearCuenta

                        java:app/gowiproject/UsuarioCrearCuenta!gowi.interfaces.UsuarioCrearCuenta

                        java:module/UsuarioCrearCuenta!gowi.interfaces.UsuarioCrearCuenta

                        java:jboss/exported/gowiproject/UsuarioCrearCuenta!gowiico.interfaces.UsuarioCrearCuenta

                        java:global/gowiproject/UsuarioCrearCuenta

                        java:app/gowiproject/UsuarioCrearCuenta

                        java:module/UsuarioCrearCuenta

                 

                19:46:13,926 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-9) JBAS010404: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)

                19:46:14,101 INFO  [org.apache.catalina.core.StandardContext] (MSC service thread 1-14) The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.

                19:46:14,105 INFO  [org.apache.catalina.core.StandardContext] (MSC service thread 1-14) The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.

                19:46:14,215 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-14) Initializing Mojarra 2.1.5 (SNAPSHOT 20111202) for context ''

                19:46:15,596 INFO  [org.hibernate.validator.util.Version] (MSC service thread 1-14) Hibernate Validator 4.2.0.Final

                19:46:16,471 INFO  [org.richfaces.log.Cache] (MSC service thread 1-14) Selected fallback cache factory

                19:46:16,474 INFO  [org.richfaces.log.Cache] (MSC service thread 1-14) Creating LRUMap cache instance using parameters: {}

                19:46:16,483 INFO  [org.richfaces.log.Cache] (MSC service thread 1-14) Creating LRUMap cache instance of 512 items capacity

                19:46:16,573 INFO  [org.jboss.web] (MSC service thread 1-14) JBAS018210: Registering web context:

                19:46:16,638 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "gowiproject.war"

                • 5. Re: ERROR deploying web application to root context jbossAS 7.1
                  Phanor Coll Newbie

                  I added this line in web.xml

                   

                  <welcome-file>index.xhtml</welcome-file>

                   

                  now when I try localhost:8080, I get a response,but the <h:> tags dont render, so when I look at the source code, instead of getting

                   

                  <link type="text/css" rel="stylesheet" href="style.css" />

                   

                  I get

                   

                  <h:outputstylesheet name="bootstrap-responsive.css" library="css"></h:outputstylesheet>