Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss 7 and Eclipse - HTTP 404 resource not available

 
Shannon Sims
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello and thanks for viewing my post.
I cannot view the index page in my test web application. Here are the steps I have done thus far, am I missing a setup:

1. downloaded jboss-as-7.1.1.Final (Brontes) .zip file
2. unzipped file
3. added JBoss tools within Eclipse
4. created a Dynamic Web Project; target runtime: JBoss 7.1 Runtime; configuration: Default Configuration for JBoss 7.1 Runtime
5. added index.html (with hello world inside of it) to WEB-INF directory.
6. added web project: JBossTest to server
7. started server
8. open browser and went to http://localhost:8080/JBossTest/index.html
9. browser shows description: The requested resource (/JBossTest/index.html) is not available.

No errors show up in server.log. I can get to the "Welcome AS 7" screen if I go to the http://localhost:8080. I can see that JBoss created a JBossTest.war.deployed in the deployments directory. I went to JBoss site and followed their guide to se

Environment: Windows 7, Eclipse Kepler, JDK 1.6.0_45

Thanks!
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shannon

Are you sure the context root JBossTest is correct? Check the server logs when your application is deployed. You should see output similar to this:
INFO [org.jboss.web] (MSC service thread 1-1) JBAS018210: Registering web context: /XXX
where XXX is the context root assigned to your application.

However, I think your problem may be that the file index.html should not be within the WEB-INF folder, it should be at the same level within your war file.
 
Shannon Sims
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi James, thanks for catching my moron mistake! Yes, the index.html was in the wrong place.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic