aspose file tools
The moose likes JSP and the fly likes Not able to display starting jsp page index.jsp 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 » Java » JSP
Reply Bookmark "Not able to display starting jsp page index.jsp" Watch "Not able to display starting jsp page index.jsp" New topic
Author

Not able to display starting jsp page index.jsp

prasad regula
Greenhorn

Joined: Jul 03, 2006
Posts: 24
I have developed a new project. The folder structure of the project is


D:\Prasad\spring_workspace\Addressbook_threePatterns>
----src
----test
----build
----lib
----war
--------WEB-INF
--------jsp
--------lib
--------web.xml
--------index.jsp
----build.xml


I am getting the following ERROR

type Status report

message /addrbook_v3/

description The requested resource (/addrbook_v3/) is not available.


PRSubject
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

What does addrbook_v3 have to do with index.jsp?

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
prasad regula
Greenhorn

Joined: Jul 03, 2006
Posts: 24
That is the name I have given in the build.xml to generate a war file with that name
prasad regula
Greenhorn

Joined: Jul 03, 2006
Posts: 24
What should I do to display that page, because without displaying the first page I cannot move ahead with my project.. Here below is my build.xml
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

The build.xml is not useful.

Rather, how about showing web.xml?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

description The requested resource (/addrbook_v3/) is not available.

Have you verified that Tomcat is even starting the web app?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

By the way, ant -p will show a list of build targets that have description attributes (the "public" tasks).
prasad regula
Greenhorn

Joined: Jul 03, 2006
Posts: 24
Here below is my web.xml. It is located in WEB-INF folder. I could see the tomcat hompage at http://localhost:8080
----WEB-INF
--------web.xml

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

Use the Tomcat Manager Application to verify that the web app has started properly.
prasad regula
Greenhorn

Joined: Jul 03, 2006
Posts: 24
This is what I got with ant -p

prasad regula
Greenhorn

Joined: Jul 03, 2006
Posts: 24
This is what I am seeing at tomcat Manager


/addrbook_v3 true 0 Start Stop Reload Undeploy
Expiry Session with idle ≥ 30 minutes
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Yeah. I was telling you because you have a "usage" target you have to maintain by hand, and there's no reason to.
prasad regula
Greenhorn

Joined: Jul 03, 2006
Posts: 24
I got it. I forgot giving the jsp page name in <welcome file list> element
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Not able to display starting jsp page index.jsp
 
Similar Threads
[JSTL] The absolute uri cannot be resolved in either web.xml or the jar files deployed
Pagination Using Struts
running a servlet
Stripes 1.5 with eclipse 3.5 +tomcat 6
HTTP Status 500 Error