Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP does not display in Browser

 
Shannon Sims
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone. Thanks for reading my post!

I have a simple JSP that will not display. I created a web project in Eclipse Helios (latest release) with the application server JBoss 5.0.1. When I try to view the JSP in Eclipse, I get this error: The requested resource (/DisplayDemo/TestDisplay.jsp) is not available. I also tried outside of Eclipse in IE9 using localhost:8080/DisplayDemo/TestDisplay.jsp which produces the same results: The requested resource (/DisplayDemo/TestDisplay.jsp) is not available. . I've tried several things, but I'm still doing something wrong; also search this issue and nothing seemed to help.

The JSP is located directly under the WebContent directory in Eclipse. This is the simple JSP with just the word "Hello World" (adding more code later):


And this is what is in my web.xml:


So, I hope I given you enough information to resolve this issue.

Thanks for helping me from wasting a LOT of time!
 
Shannon Sims
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bear, it's good to know at least this wasn't a code issue.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64985
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think so, but I'm not an eclipse user so it's hard to know for sure. Someone eclipse-savvy should be able to help.
 
Shannon Sims
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since Bear thought this was a IDE issue, I played around with several project settings and added JBoss 5.1 as a server to my IDE. Doing all this, I noticed the "Targeted Runtimes" wasn't set on the project. I set it the JBoss 5.1 and now it's working. Hopefully, if someone comes across this issue, hopefully all you need to do is set the Target Runtime setting.

Thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64985
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for posting back with your fix!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic