Web.xml, welcome-file não exibindo a Home Page

Olá pessoal,

Estou com um problemão aqui, estou desenvolvendo uma aplicação EJB no Jboss 7.1, porém quando eu acesso a página: http://localhost:8080/ é retornado um erro 404.
A aplicação é compilada normalmente, o servidor sobre normalmente, estou utilizando resteasy e as requisições estão Ok, é só essa home page que não está funcionando.

Lá no meu Web.xml eu coloquei a configuração para carregar a página:

	<welcome-file-list>
		<welcome-file>index.html</welcome-file>
	</welcome-file-list>

Mas continua não funcionando.

Vocês tem alguma sugestão do que poderia ser?

No log do console aparece o quê?

Meu console:

Last login: Sun Oct 28 21:02:20 on ttys002
MacBook-Pro-de-Douglas:bin Douglas$ sh standalone.sh
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /Users/Douglas/Documents/Me/Tools/jboss-as-7.1.1.Final

  JAVA: /Library/Java/Home//bin/java

  JAVA_OPTS: -d32 -client -Xms64m -Xmx512m -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 -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n

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

Listening for transport dt_socket at address: 8787
21:23:20,363 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
21:23:20,693 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
21:23:20,786 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
21:23:22,375 INFO  [org.xnio] XNIO Version 3.0.3.GA
21:23:22,383 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
21:23:22,390 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
21:23:22,403 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
21:23:22,455 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
21:23:22,465 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
21:23:22,489 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
21:23:22,600 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
21:23:22,622 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
21:23:22,634 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
21:23:22,659 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
21:23:22,720 INFO  [org.jboss.as.naming] (MSC service thread 1-1) JBAS011802: Starting Naming Service
21:23:22,893 INFO  [org.jboss.as.security] (MSC service thread 1-3) JBAS013100: Current PicketBox version=4.0.7.Final
21:23:22,897 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
21:23:23,052 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-2) JBAS015400: Bound mail session [java:jboss/mail/Default]
21:23:23,058 INFO  [org.jboss.as.connector] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
21:23:23,094 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010404: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.1)
21:23:23,135 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-4) JBoss Web Services - Stack CXF Server 4.0.2.GA
21:23:23,792 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-4) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080
21:23:24,582 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-2) JBAS015012: Started FileSystemDeploymentService for directory /Users/Douglas/Documents/Me/Tools/jboss-as-7.1.1.Final/standalone/deployments
21:23:24,593 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /127.0.0.1:9999
21:23:24,593 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on /127.0.0.1:4447
21:23:24,871 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
21:23:24,897 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) JBAS010400: Bound data source [java:/MyAplicationDS]
21:23:25,062 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "myAplication-1.0.ear"
21:23:26,122 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "commons-collections-3.2.jar"
21:23:26,122 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "MyAplication-WEB-1.0.war"
21:23:26,123 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "commons-lang-2.3.jar"
21:23:26,123 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "commons-logging-1.1.1.jar"
21:23:26,129 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "mysql-connector-java-5.0.2.jar"
21:23:26,130 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "MyAplication-EJB-1.0.jar"
21:23:27,015 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) JBAS011401: Read persistence.xml for MyAplicationPU
21:23:27,326 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean named UserRepositoryBean in deployment unit subdeployment "MyAplication-EJB-1.0.jar" of deployment "myAplication-1.0.ear" are as follows:

	java:global/myAplication-1.0/MyAplication-EJB-1.0/UserRepositoryBean!me.myAplication.user.domain.UserRepository
	java:app/MyAplication-EJB-1.0/UserRepositoryBean!me.myAplication.user.domain.UserRepository
	java:module/UserRepositoryBean!me.myAplication.user.domain.UserRepository
	java:global/myAplication-1.0/MyAplication-EJB-1.0/UserRepositoryBean
	java:app/MyAplication-EJB-1.0/UserRepositoryBean
	java:module/UserRepositoryBean

21:23:27,353 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean named UserControllerBean in deployment unit subdeployment "MyAplication-EJB-1.0.jar" of deployment "myAplication-1.0.ear" are as follows:

	java:global/myAplication-1.0/MyAplication-EJB-1.0/UserControllerBean!me.myAplication.user.controller.UserControllerBean
	java:app/MyAplication-EJB-1.0/UserControllerBean!me.myAplication.user.controller.UserControllerBean
	java:module/UserControllerBean!me.myAplication.user.controller.UserControllerBean
	java:global/myAplication-1.0/MyAplication-EJB-1.0/UserControllerBean
	java:app/MyAplication-EJB-1.0/UserControllerBean
	java:module/UserControllerBean

21:23:27,803 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) JBAS011402: Starting Persistence Unit Service 'myAplication-1.0.ear/MyAplication-EJB-1.0.jar#MyAplicationPU'
21:23:27,950 WARN  [org.jboss.jaxrs] (MSC service thread 1-2) JBAS011204: resteasy.scan found and ignored in web.xml. This is not necessary, as Resteasy will use the container integration in the JAX-RS 1.1 specification in section 2.3.2
21:23:28,165 INFO  [org.apache.catalina.core.StandardContext] (MSC service thread 1-1) The listener "com.sun.faces.config.ConfigureListener" is already configured for this context. The duplicate definition has been ignored.
21:23:28,209 INFO  [org.hibernate.annotations.common.Version] (MSC service thread 1-3) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
21:23:28,242 INFO  [org.hibernate.Version] (MSC service thread 1-3) HHH000412: Hibernate Core {4.0.1.Final}
21:23:28,245 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-3) HHH000206: hibernate.properties not found
21:23:28,251 INFO  [org.hibernate.cfg.Environment] (MSC service thread 1-3) HHH000021: Bytecode provider name : javassist
21:23:28,344 INFO  [org.hibernate.ejb.Ejb3Configuration] (MSC service thread 1-3) HHH000204: Processing PersistenceUnitInfo [
	name: MyAplicationPU
	...]
21:23:28,688 INFO  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (MSC service thread 1-3) HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
21:23:28,707 INFO  [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-1) Inicializando Mojarra 2.1.7-jbossorg-1 (20120227-1401) para o contexto '/myAplication'
21:23:29,183 INFO  [org.hibernate.dialect.Dialect] (MSC service thread 1-3) HHH000400: Using dialect: org.hibernate.dialect.PostgreSQLDialect
21:23:29,244 INFO  [org.hibernate.engine.jdbc.internal.LobCreatorBuilder] (MSC service thread 1-3) HHH000424: Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
21:23:29,288 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (MSC service thread 1-3) HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory
21:23:29,312 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-3) HHH000397: Using ASTQueryTranslatorFactory
21:23:29,415 INFO  [org.hibernate.validator.util.Version] (MSC service thread 1-3) Hibernate Validator 4.2.0.Final
21:23:30,388 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-3) HHH000228: Running hbm2ddl schema update
21:23:30,389 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-3) HHH000102: Fetching database metadata
21:23:30,402 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-3) HHH000396: Updating schema
21:23:30,765 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-3) HHH000261: Table found: public.users
21:23:30,766 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-3) HHH000037: Columns: [id, email, name, role, login, telephone, password]
21:23:30,767 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-3) HHH000108: Foreign keys: []
21:23:30,771 INFO  [org.hibernate.tool.hbm2ddl.TableMetadata] (MSC service thread 1-3) HHH000126: Indexes: [users_login_key, users_pkey, users_email_key]
21:23:30,772 INFO  [org.hibernate.tool.hbm2ddl.SchemaUpdate] (MSC service thread 1-3) HHH000232: Schema update complete
21:23:31,212 INFO  [org.jboss.web] (MSC service thread 1-1) JBAS018210: Registering web context: /myAplication
21:23:31,232 INFO  [org.jboss.as] (MSC service thread 1-2) JBAS015951: Admin console listening on http://127.0.0.1:9990
21:23:31,233 INFO  [org.jboss.as] (MSC service thread 1-2) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 11388ms - Started 484 of 574 services (88 services are passive or on-demand)
21:23:31,311 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "myAplication-1.0.ear"

E você tem index.html? Tá extatamente o mesmo nome?

o index.html está dentro da pasta webapp e o web.xml está dentro da pasta WEB-INF, que por sua vez está dentro da webapp.

[quote=Dougie880]o index.html está dentro da pasta webapp e o web.xml está dentro da pasta WEB-INF, que por sua vez está dentro da webapp.[/quote]404 é erro quando não encontra o recurso desejado.

No Eclipse o arquivo tem que ficar dentro da pasta WebContent. Não sei como está configurado o seu aí. =/

Olá.

Não sei qual IDE você está usando, mas no Eclipse, sua index deve ficar na pasta WebContent como o amigo aí em cima citou.

Existe essa pasta no seu projeto?

Veja se você realmente criou o projeto com a arquitetura de um projeto web.