• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

JBoss 7 and Eclipse - HTTP 404 resource not available

 
Ranch Hand
Posts: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • Likes 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 201
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi James, thanks for catching my moron mistake! Yes, the index.html was in the wrong place.
 
I found some pretty shells, some sea glass and this lovely tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic