aspose file tools*
The moose likes Other Application Frameworks and the fly likes First Wicket Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "First Wicket Problem" Watch "First Wicket Problem" New topic
Author

First Wicket Problem

Nikhil Jose
Greenhorn

Joined: Nov 13, 2010
Posts: 1
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

Joined: Feb 18, 2003
Posts: 166
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>


Jeremy Wilson
sbarlster sbarlstersbarlster
Greenhorn

Joined: Mar 05, 2011
Posts: 1
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

Joined: Mar 28, 2011
Posts: 26
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: First Wicket Problem
 
Similar Threads
load on startup
problem in running first wicket application
Problem running app under Tomcat v7
Cant Run Simple Jersey REST Webservice Example
Unable to load tag handler class "com.opensymphony.webwork.views.jsp.PropertyTag