1) I switched to 0.8.0-SNAPSHOT from yesterday evening.
2) attached is the spring xml
Cheers Rainer
On Tue, Aug 9, 2011 at 4:07 AM, Andreas Pieber <[email protected]> wrote:
> 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
>
>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright OPS4J
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:osgi="http://www.springframework.org/schema/osgi"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:osgix="http://www.springframework.org/schema/osgi-compendium" xmlns:wicket="http://www.ops4j.org/schema/wicket"
xsi:schemaLocation="http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/osgi-compendium http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd
">
<!-- For simplicity we use the pax-wicket namespace again. Still, it is not required here and you can do the "direct" approach
instead if you prefer it. -->
<wicket:application id="applicationId" class="de.bitnoise.demo.web.WicketApplication"
applicationName="springdm.injection.simple" mountPoint="test" />
<!-- This represents a very simple bean. In fact this does not have to be a bean but rather every named entity (such as
an OSGi service or any other named element could be defined)
<bean id="defaultMyServiceBean" class="org.ops4j.pax.wicket.samples.springdm.injection.simple.internal.service.DefaultMyService" />
-->
</beans>_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general