By arungupta on Aug 05, 2009
Now that Apache Wicket 1.4 is available, migrating from previous versions is pretty straight forward.
Change the version in your POM file as:
And that's it!
The complete dependency may look like:
You may encounter the following error:
|2009-08-05 05:58:49.387::INFO: No Transaction
manager found - if your webapp requires one, please configure one.
ERROR - DiskPageStore - Couldn't load DiskPageStore index from file /Users/arungupta/workspaces/runner~subversion/wicket/runner/target/work/wicket.runner-filestore/DiskPageStoreIndex.
at java.security.AccessController.doPrivileged(Native Method)
At least I did :)
Fortunately the fix is simple and intuitive. Instead of running "mvn jetty:run", invoke the command:
|mvn clean jetty:run|
Basically, "clean" will clean out references to older version of Wicket jars in your project and voila!
If you are deploying as WAR file, then bundle Wicket jars in WEB-INF/lib instead of copying them to the shared folder of your application server.
Other Wicket tips on this blog are available here. Specifically TOTD #86 shows how to get started with Apache Wicket on GlassFish.
Please leave suggestions on other TOTD (Tip Of The Day) that you'd like to see. A complete archive of all the tips is available here.
Technorati: wicket glassfish migration