wood burning stoves 2.0*
The moose likes Other Application Frameworks and the fly likes Tapestry and Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Tapestry and Tomcat" Watch "Tapestry and Tomcat" New topic
Author

Tapestry and Tomcat

Nasir Munir
Greenhorn

Joined: May 31, 2002
Posts: 22
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
Alexander Kolesnikov
author
Ranch Hand

Joined: Feb 26, 2005
Posts: 99
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,


Alexander Kolesnikov<br />Java Web Developer<br />SCJP 1.4, SCWCD 1.4, SCBCD 1.3<br /><a href="http://sundraw.ws" target="_blank" rel="nofollow">Tapestry 5: Building Web Applications</a><br /><a href="http://sundraw.ws/batik.jsp" target="_blank" rel="nofollow">Java Drawing With Apache Batik</a>
Nasir Munir
Greenhorn

Joined: May 31, 2002
Posts: 22
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
Ranch Hand

Joined: Feb 26, 2005
Posts: 99
Hmm... Everything seems to be all right. It can be just a simple typo somewhere.
Nasir Munir
Greenhorn

Joined: May 31, 2002
Posts: 22
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.
 
 
subject: Tapestry and Tomcat
 
Similar Threads
Configuring a context outside of $CATALINA_HOME/webapps
Please help for Configuring Tomcat with Eclipse
Virtual Directory
TagLib Error
Simple Tapestry hello world example fails