wood burning stoves 2.0*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
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: 197
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: 197
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: 60741
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Shannon Sims
Ranch Hand

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

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