Hey Rainer,

1) "traces use PW 0.8.0-SNAPSHOT"?

Do you use PW 0.8 for your experiments or still 0.7.2?

In case of 0.8 which bundles do you deploy into your osgi environment?

2) Can you attach the spring.xml of your bundle?

You can't import the internal package because it is not exported. What I'm
confused about is that he tries at all. This should not happen since spring
loads the namespace from the bundle classloader of the pw bundle?

Thanks and kind regards,
Andreas

On Tue, Aug 9, 2011 at 00:43, Rainer W <[email protected]> wrote:

> Okay thx, Now, how to get the wicket namespace working?
>
> Spring wants a Namespace handler:
>
> [SpringOsgiExtenderThread-1] DEBUG
> org.springframework.osgi.context.support.OsgiBundleXmlApplicationContext -
> Pre refres
> h error
> org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
> Configuration problem: Unable to locate Spring
>  NamespaceHandler for XML schema namespace [
> http://www.ops4j.org/schema/wicket]
> Offending resource: URL
> [bundleentry://25.fwk1228283922/META-INF/spring/application.xml]
>
>         at
> org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
>         at
> org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)
>         at
> org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)
>         at
> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:28
> 1)
>         at
> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDel
> egate.java:1294)
>         at
> org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDel
> egate.java:1287)
>         at
> org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDef
> initionDocumentReader.java:135)
>
> Which i guess is
> org.ops4j.pax.wicket.internal.injection.spring.SpringNamespaceHandler
>
> but adding a "Import-Package :
> org.ops4j.pax.wicket.internal.injection.spring" will cause:
>
> org.osgi.framework.BundleException: The bundle
> "de.bitnoise.demo.pax-wicket-demo-web_1.0.0.SNAPSHOT [25]" could not be r
> esolved. Reason: Missing Constraint: Import-Package:
> org.ops4j.pax.wicket.internal.injection.spring; version="0.0.0"
>         at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:
> 1317)
>         at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:130
> 1)
>         at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:319)
>         at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)
>         at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:276)
>         at
> org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java:252)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> any ideas?
>
> PS: traces use PW 0.8.0-SNAPSHOT
>
> Chers Rainer
>
>
>
> _______________________________________________
> general mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/general
>
>
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to