Hello everyone,
I wanted to upgrade my app from Pax-Wicket 3.0.1 on Karaf 3.0.0 to the
latest versions, but the blueprint injection doesn't seem to work.
I started a fresh installation of Karaf-4.0.8, installed
pax-wicket-3.0.4 with samples and all of them besides
blueprint-injection-simple are working.
I checked also on Karaf-4.0.5 (also the pax-wicket-3.0.5-SNAPSHOT
version) and Karaf-3.0.8, none of them worked.
The error is:
java.lang.IllegalStateException: For Component
org.ops4j.pax.wicket.samples.blueprint.injection.simple.internal.view.Homepage
1 [private
org.ops4j.pax.wicket.samples.blueprint.injection.simple.internal.service.MyService
org.ops4j.pax.wicket.samples.blueprint.injection.simple.internal.view.Homepage.serviceBean]
fields should be injected but only 0 [] had been injected. at
org.ops4j.pax.wicket.spi.support.DelegatingComponentInstanciationListener.inject(DelegatingComponentInstanciationListener.java:130)
at
org.ops4j.pax.wicket.internal.injection.ComponentInstantiationListenerFacade.onInstantiation(ComponentInstantiationListenerFacade.java:34)
at
org.apache.wicket.application.ComponentInstantiationListenerCollection$1.notify(ComponentInstantiationListenerCollection.java:38)
at
org.apache.wicket.application.ComponentInstantiationListenerCollection$1.notify(ComponentInstantiationListenerCollection.java:34)
at
org.apache.wicket.util.listener.ListenerCollection.notify(ListenerCollection.java:80)
at
org.apache.wicket.application.ComponentInstantiationListenerCollection.onInstantiation(ComponentInstantiationListenerCollection.java:33)
at org.apache.wicket.Component.<init>(Component.java:687) at
org.apache.wicket.MarkupContainer.<init>(MarkupContainer.java:121) at
org.apache.wicket.Page.<init>(Page.java:168) at
org.apache.wicket.Page.<init>(Page.java:132) at
org.apache.wicket.markup.html.WebPage.<init>(WebPage.java:75) at
org.ops4j.pax.wicket.samples.blueprint.injection.simple.internal.view.Homepage.<init>(Homepage.java:52)
Debugger shows that the DelegatingComponentInstanciationListner's
resolvers list is empty.
Am I missing something?
Steps to reproduce:
start karaf.
feature:repo-add mvn:org.ops4j.pax.wicket/paxwicket/3.0.4/xml/features
feature:repo-add mvn:org.ops4j.pax.wicket/features/3.0.4/xml/features
feature:repo-add
mvn:org.ops4j.pax.wicket.samples/features/3.0.4/xml/features
feature:install pax-wicket-blueprint
feature:install wicket-samples-blueprint-injection-simple
go to: http://localhost:8181/blueprint/injection/simple/
Thanks in advance for any help,
Bartek
--
--
------------------
OPS4J - http://www.ops4j.org - [email protected]
---
You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.