karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: JPA with Karaf 4.0.1
Date Wed, 02 Sep 2015 15:01:28 GMT
I think it's a mix of namespace and handler mapping. Let me check.

Regards
JB

On 09/02/2015 04:51 PM, Damien wrote:
> Thanks for your answer JB.
>
> I have the same issue with namspace:
> http://aries.apache.org/xmlns/jpan/v1.1.0
>
> But if i do
>
> bundle:list -t 30 :
>
>
>   54 | Active   |  30 | 2.1.0                | Apache Aries JPA blueprint
>   55 | Active   |  30 | 2.1.0                | Apache Aries JPA container
>   56 | Active   |  30 | 2.1.0                | Apache Aries JPA support
>
> bundle:services 54
>
>
> Apache Aries JPA blueprint (54) provides:
> -----------------------------------------
> [org.apache.aries.blueprint.NamespaceHandler]
>
> service:get org.apache.aries.blueprint.NamespaceHandler
>
>
> [org.apache.aries.blueprint.NamespaceHandler]
> ---------------------------------------------
>   osgi.service.blueprint.namespace =
> http://aries.apache.org/xmlns/jpan/v1.0.0
>   service.bundleid = 54
>   service.id = 107
>   service.scope = singleton
> Provided by :
>   Apache Aries JPA blueprint (54)
> Used by:
>   Apache Aries Blueprint Core (41)
>
> So I tried with namespace "http://aries.apache.org/xmlns/jpan/v1.0.0" and i
> got this error :
>
> log:display
>
> org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to
> validate xml
>          at
> org.apache.aries.blueprint.parser.Parser.validate(Parser.java:317)[41:org.apache.aries.blueprint.core:1.4.3]
>          at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:321)[41:org.apache.aries.blueprint.core:1.4.3]
>          at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:269)[41:org.apache.aries.blueprint.core:1.4.3]
>          at
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:294)[41:org.apache.aries.blueprint.core:1.4.3]
>          at
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:263)[41:org.apache.aries.blueprint.core:1.4.3]
>          at
> org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:253)[41:org.apache.aries.blueprint.core:1.4.3]
>          at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)[59:org.apache.aries.util:1.1.0]
>          at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)[59:org.apache.aries.util:1.1.0]
>          at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)[59:org.apache.aries.util:1.1.0]
>          at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)[59:org.apache.aries.util:1.1.0]
>          at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)[59:org.apache.aries.util:1.1.0]
>          at
> org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179)[org.apache.felix.framework-5.0.1.jar:]
>          at
> org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730)[org.apache.felix.framework-5.0.1.jar:]
>          at
> org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:485)[org.apache.felix.framework-5.0.1.jar:]
>          at
> org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4544)[org.apache.felix.framework-5.0.1.jar:]
>          at
> org.apache.felix.framework.Felix.startBundle(Felix.java:2166)[org.apache.felix.framework-5.0.1.jar:]
>          at
> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:977)[org.apache.felix.framework-5.0.1.jar:]
>          at
> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:964)[org.apache.felix.framework-5.0.1.jar:]
>          at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1189)[8:org.apache.karaf.features.core:4.0.1]
>          at
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:836)[8:org.apache.karaf.features.core:4.0.1]
>          at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1079)[8:org.apache.karaf.features.core:4.0.1]
>          at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:975)[8:org.apache.karaf.features.core:4.0.1]
>          at
> java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_45]
>          at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_45]
>          at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_45]
>          at java.lang.Thread.run(Thread.java:745)[:1.8.0_45]
> Caused by: org.xml.sax.SAXParseException; cvc-complex-type.2.4.c : Le
> caractÞre gÚnÚrique concordant est strict, mais aucune dÚclaration ne peut
> Ûtre trouvÚe pour l'ÚlÚment 'jpa:unit'.
>          at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)[:1.8.0_45]
>          at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)[:1.8.0_45]
>          at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:437)[:1.8.0_45]
>          at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:368)[:1.8.0_45]
>          at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:325)[:1.8.0_45]
>          at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:458)[:1.8.0_45]
>          at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3237)[:1.8.0_45]
>          at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1917)[:1.8.0_45]
>          at
> com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:746)[:1.8.0_45]
>          at
> com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.beginNode(DOMValidatorHelper.java:277)[:1.8.0_45]
>          at
> com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(DOMValidatorHelper.java:244)[:1.8.0_45]
>          at
> com.sun.org.apache.xerces.internal.jaxp.validation.DOMValidatorHelper.validate(DOMValidatorHelper.java:190)[:1.8.0_45]
>          at
> com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:109)[:1.8.0_45]
>          at
> javax.xml.validation.Validator.validate(Validator.java:124)[:1.8.0_45]
>          at
> org.apache.aries.blueprint.parser.Parser.validate(Parser.java:314)[41:org.apache.aries.blueprint.core:1.4.3]
>
>
> And this a fragment of my blueprint.xml
>   <bean id="daoService" class="mongoose.core.jpa.impl.DaoServiceImpl">
>          <jpa:unit property="entityManagerFactory" unitname="mg" />
>   </bean>
>
> So i run out of ideas :(
>
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/JPA-with-Karaf-4-0-1-tp4042279p4042283.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message