This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes JSP does not display in Browser Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "JSP does not display in Browser" Watch "JSP does not display in Browser" New topic
Author

JSP does not display in Browser

Shannon Sims
Ranch Hand

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

Joined: Jul 03, 2003
Posts: 187
Thanks Bear, it's good to know at least this wasn't a code issue.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56201
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Shannon Sims
Ranch Hand

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

Joined: Jan 10, 2002
Posts: 56201
    
  13

Thanks for posting back with your fix!
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JSP does not display in Browser
 
Similar Threads
My Tomcat does not build my URL
getting error when deploying web app in weblogic 10.0
please help me with my jsf pickle
Apache + Tomcat + JSF? ***newbee
The requested resource (/welcome) is not available." HTTP Status 404 - /welcome