Monday, June 4, 2007

Wicket : wicket.markup.MarkupNotFoundException after upgrading to Eclipse 3.2.2

After upgrading to Eclipse 3.2.2 my Wicket projects we're raising this error:

wicket.markup.MarkupNotFoundException: Markup not found. Component class: com.cinformatique.Page2 Enable debug messages for wicket.util.resource to get a list of all filenames tried
at wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:116)
at wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:827)
at wicket.Page.onRender(Page.java:851)
at wicket.Component.render(Component.java:1532)
at wicket.Page.renderPage(Page.java:410)

It seems that Eclipse has changed. Wicket needs to have the *.html pages with your *.java files in your Eclipse Default output folder (../target/classes/..).
To correct this annoying problem, change your project settings:
Java Compiler -> Building.
Remove *.html from the Filtered Resources for the output folder.


www.CInformatique.com

No comments: