Eclipse RCP
20.09.2010 - 24.09.2010, Hamburg
git
07.10.2010 - 08.10.2010, Essen
16.08.2009

Running Maven-based Wicket projects in Eclipse

After you have created a new Wicket project according to the Wicket QuickStart instructions, you might wonder how to setup and run the project in Eclipse. There are two ways:

Using m2eclipse and WTP

Manually without m2eclipse tooling

Dominique Kraus-Ahma, 06. Februar, 18:38 Uhr

Thanks a lot,

always seeked for a way of comfortably using a maven project the "Dynamic Web Project" way and your tutorial helped a lot. Find it much more comfortable then using jetty as an embedded server.

Best whishes,

D.

J Dijkmeijer, 10. Februar, 15:14 Uhr

Hi thanks for the explanation, I'm currently running the m2 / wtp alternative, but I would like to add the wicket for debugging, setting breakpoints adding log stmts etc. What would be the quick way to do this? I failed to add wicket as a module to my parent project, because wicket has its own parent project already. Downloading the sources doesn't give me the opportunity to set breakpoints in the wicket code does it?

regards,
Jeroen

John, 12. April, 09:06 Uhr

Thank you. It worked for me! Verry good job!

Vladimir, 09. Mai, 11:41 Uhr

Unfortunately, it does not work for me.

I have created my first Wicket project "FarcWicket" according to the Wicket QuickStart instructions. With mvn package and mvn jetty:run - it works fine, In browser Firefox under http://localhost:8080/FarcWicket/ I can see the HomePage with corresponding message.

Now in Eclipse.
1) I have created an eclipse project mvn eclipse:eclipse -DdownloadSources=true,
downloaded Eclipse IDE for Java EE Developers and installed Maven Integration for Eclipse, Maven Integration for WTP, Maven POM (XML) Editor.
2) I have imported FarcWicket project into the workspace File > Import > Maven projects, added new server Window > Show View > Servers - Tomcat 6.0, configured the resource "FarcWicket" via "Add and Remove..." context menu and started this server.
In "Servers" view all is OK:
Tomcat v6.0 Server at localhost [Started, Synchronized]
FarcWicket [Synchronized]

But in the browser under http://localhost:8080/FarcWicket/ I see only:
HTTP Status 404 - /FarcWicket/
type Status report
message /FarcWicket/
description The requested resource (/FarcWicket/) is not available.
Apache Tomcat/6.0.14

Can you help me? What configuration is invalid by me?

I'm looking forward to your comments:

Schulungen

Ralf Ebert | Blog | Apache Wicket | Running Maven-based Wicket projects in Eclipse