Martijn,
When you get a chance you may want to subscribe to
[EMAIL PROTECTED] Some interesting things will be
happening there.
Cheers,
Alex
Martijn Dashorst wrote:
All,
I've been pioneering with Oscar and Wicket ever since december last
year, but need to upgrade my Wicket version from 0.9.18-beta to 1.0.1
or newer.
I've got the following problem: Wicket can't find my markup in my
oscar bundles (anymore).
Previous setup:
EAR/
oscar-bundle-foo.jar
oscar-bundle-bar.jar
oscar.jar
my-base.jar
wicket-core.jar
WAR/
WEB-INF/lib
wicket-application.jar
There are other jars available, but these are the relevant jars.
my-base.jar contains a page, which lays out a menu and a panel. It
also contains a menu registry.
I use Oscar to get all IMenu items, which return a label for addition
in the menu, and a Panel class, which needs to be instantiated and put
in the menu-panel page.
The oscar-bundle-foo.jar contains a service that implements the IMenu
interface, and adds the Foo label with the FooPanel to the menu registry.
The oscar-bundle-bar.jar contains a service that implements the IMenu
interface, and adds the Bar label with the BarPanel to the menu registry.
The wicket-application.jar contains the WebApplication class, and sets
the homepage to the page contained in the my-base.jar
When I run this with wicket-0.9.18 then everything works OK. All
classloading seems to happen the way it should.
Now when I run this using wicket-1.0.1 and/or wicket-1.1-b? I get
ClassDefNotFoundError on 'wicket.Component' etc.
In order to get past this trouble, I have to move the wicket jar to
the WAR/WEB-INF/lib directory. But when I do that, my resources from
the oscar bundles are not loaded anymore.
As Eelco mentioned in his post on the -dev list, Wicket should use the
referencing Component's ClassLoader to retrieve the markup. However,
that is probably hard to fix, and I was hoping anyone else has
experience with later versions of Wicket and Oscar, and loading markup
from within bundles.
Martijn
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing
& QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user