This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • 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
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Simple Tapestry hello world example fails

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am following a book Enjoying web development with Tapestry.

The first chapter has a helloworld example where we create a Tapestry web project (say HelloWorld located at c:\Users\sachin\workspace\) in eclipse. The project has a home.html(located at c:\Users\sachin\workspace\HelloWorld\context\WEB-INF\), where I added the "Hello World" text in the body of the html. There are no other changes in the project. I now add a HelloWorld.xml in apache-tomcat\conf\catalina\localhost\

The contents of HelloWorld.xml are

<Context
docBase="c:/Users/sachin/workspace/HelloWorld/context"
path="/HelloWorld"/>

I deploy the project by starting the apache tomcat server manually.

Next I open the browser and type "http://localhost:8080/" which works fine.

Then I change the above URL to "http://localhost:8080/HelloWorld/app?service=page/Home" or "http://localhost:8080/HelloWorld", and my application fails to launch by giving the following error
----------------------------------------------------------------------------------
HTTP Status 404 - Servlet HelloWorld is not available

type Status report

message Servlet HelloWorld is not available

description The requested resource (Servlet HelloWorld is not available) is not available.
Apache Tomcat/6.0.24
--------------------------------------------------------------------------------------------------------------
My JDK is 1.6.

Any help in solving this issue shall be appreciated.

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably a good idea to switch to Tapestry 5, since it sounds like you're using Tapestry 4 which is no longer supported. Also check out Jumpstart (http://jumpstart.doublenegative.com.au:8080/jumpstart/)
 
You may have just won ten million dollars! Or, maybe a 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!