• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

First Wicket Problem

 
Greenhorn
Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic