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

Not able to display starting jsp page index.jsp

 
prasad regula
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does addrbook_v3 have to do with index.jsp?
 
prasad regula
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is the name I have given in the build.xml to generate a war file with that name
 
prasad regula
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The build.xml is not useful.

Rather, how about showing web.xml?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
description The requested resource (/addrbook_v3/) is not available.

Have you verified that Tomcat is even starting the web app?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the way, ant -p will show a list of build targets that have description attributes (the "public" tasks).
 
prasad regula
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the Tomcat Manager Application to verify that the web app has started properly.
 
prasad regula
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is what I got with ant -p

 
prasad regula
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it. I forgot giving the jsp page name in <welcome file list> element
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic