• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

Tapestry and Tomcat

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tools I am using are:
Tapestry 4.x
Tomcat 5.5.x
Eclipse java europa
Situation:
I can see tomcat up and running
Problem:
Now when I am trying to use Tapestry to run Hello World application, I am running into problems. It is perhaps not recognizing the file, as it is showing me page not found error.
Error message:
Document base (the path which I am providing in the context file) does not exist or is not a readable directory.
What I have done so far:
I can see Home.html and Home.page and web.xml in the C:\workspace\Hello World\context\WEB-INF. Also the HelloWorld.xml (context file) is there C:\Tomcat\conf\Catalina\localhost. I am following the example from the book and have checked the contents many a time and cannot find any mis-match with that. I have double checked the path in the context file as well and it is telling tomcat to look in the workspace directory for the html page. I can post the file contents if that can make it more clear, but rest assured it is the same as from book.
Can I get some help here?, thanks
 
author
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, the first question is: to which URL you are trying to navigate when you are getting the 404 error. If you are following Kent Tong's book, it should be something like http://localhost:8080/HelloWorld/app.

If you are doing this (to not forget /app in the end!) then please list the contents of your web.xml.

Cheers,
 
Nasir Munir
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry for not explaining my question properly.
Yes I am using the book by Tong.
I have been using this URL to navigate to the page:
http://localhost:8080/HelloWorld/app

The contents of web.xml are:
 
Alexander Kolesnikov
author
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm... Everything seems to be all right. It can be just a simple typo somewhere.
 
Nasir Munir
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
are you the one who wrote step by step jakarta - tapestry ? It gives me immense pleasure to know that you are answering my questions.
I am trying to set up tapestry framework at home, and I will try to re-do the whole setup, I hope it should work this time.
At any rate, please update the tapestry installation from version 3.x to 4.x. I liked your article and was very helpful. If you could update that to latest version, that would be great.
Thanks a lot for all your help. Tapestry seems a little complicated, not that I am giving up on it. I hope with more time spent on that, I will be in a better position to understand that well.
Thanks again.
 
And tomorrow is the circus! We can go to the circus! I love the circus! We can take this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!