aspose file tools*
The moose likes JBoss/WildFly and the fly likes JBoss 7 and Eclipse - HTTP 404 resource not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss 7 and Eclipse - HTTP 404 resource not available" Watch "JBoss 7 and Eclipse - HTTP 404 resource not available" New topic
Author

JBoss 7 and Eclipse - HTTP 404 resource not available

Shannon Sims
Ranch Hand

Joined: Jul 03, 2003
Posts: 197
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

Joined: Nov 09, 2011
Posts: 1030
    
    5

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

Joined: Jul 03, 2003
Posts: 197
Hi James, thanks for catching my moron mistake! Yes, the index.html was in the wrong place.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss 7 and Eclipse - HTTP 404 resource not available