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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
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: 61769
    
  67

What does addrbook_v3 have to do with index.jsp?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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: 61769
    
  67

The build.xml is not useful.

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

Joined: Jan 10, 2002
Posts: 61769
    
  67

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: 61769
    
  67

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://aspose.com/file-tools
 
subject: Not able to display starting jsp page index.jsp