File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

First Wicket Problem

 
Nikhil Jose
Greenhorn
Posts: 1
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm new here just like o'm new to web programming and wicket. I was trying to learn wicket framework by going through some of the tutorials available in the net. I decided to create a small hello world program. But when running the application, it gives me error. Can anyone rectify what i'm missing.

These are my configurations and tools
Eclipse Helios
Apache Tomcat 7.0
Wicket 1.4.13

I created the project using Eclipse -> Project -> Web -> Dynamic Web Project. Created packages, added wicket jar to build path,web.xml etc. I tried to run the application through Run -> Run as Server

These are my files. HelloWorld.java


HelloWorldApplication.java

HelloWorld.html


web.xml


This is the output i got


Thanks
Nikhil
 
Jeremy Wilson
Ranch Hand
Posts: 166
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your web xml wicket is a filter not a servlet.

<filter>
<filter-name>ApplicationName</filter-name>
<filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class>
<init-param>
<param-name>applicationClassName</param-name>
<param-value>your.package.Application</param-value>
</init-param>
<init-param>
<param-name>configuration</param-name>
<param-value>deployment</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>Helloworld</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
 
sbarlster sbarlstersbarlster
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have been trying to deploy a Wicket app. Neither the WicketFilter nor the WicketServlet is working.
They both get 404 not found.
Still tweaking the deployment.
 
rajeev yadav
Greenhorn
Posts: 26
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the war name that you are deploying. In address bar try giving in this format:

http://localhost:8080/<war name>

example if war is wickettestapp.war than url will be http://localhost:8080/wickettestapp
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic