I did some more looking into it but I am still getting this error 

org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name
'tns:model' to a(n) 'type definition' component.
 at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)[:]
 at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)[:]
 at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)[:]
 at
org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(Unknown
Source)[:]
 at
org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(Unknown
Source)[:]
 at
org.apache.xerces.impl.xs.traversers.XSDHandler.getGlobalDecl(Unknown
Source)[:]
 at
org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseNamedElement(Unknown
Source)[:]
 at
org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseLocal(Unknown
Source)[:]
 at
org.apache.xerces.impl.xs.traversers.XSDHandler.traverseLocalElements(Unknown
Source)[:]
 at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown
Source)[:]
 at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown
Source)[:]
 at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown
Source)[:]
 at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown
Source)[:]
 at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown
Source)[:]
 at
org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl.createSchema(NamespaceHandlerRegistryImpl.java:336)[10:org.apache.aries.blueprint.core:1.4.3]
 at
org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl.getSchema(NamespaceHandlerRegistryImpl.java:250)[10:org.apache.aries.blueprint.core:1.4.3]
 at
org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl.access$300(NamespaceHandlerRegistryImpl.java:75)[10:org.apache.aries.blueprint.core:1.4.3]
 at
org.apache.aries.blueprint.namespace.NamespaceHandlerRegistryImpl$NamespaceHandlerSetImpl.getSchema(NamespaceHandlerRegistryImpl.java:546)[10:org.apache.aries.blueprint.core:1.4.3]
 at
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:321)[10:org.apache.aries.blueprint.core:1.4.3]
 at
org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:269)[10:org.apache.aries.blueprint.core:1.4.3]
 at
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:294)[10:org.apache.aries.blueprint.core:1.4.3]
 at
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:263)[10:org.apache.aries.blueprint.core:1.4.3]
 at
org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:253)[10:org.apache.aries.blueprint.core:1.4.3]
 at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)[19:org.apache.aries.util:1.1.0]
 at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)[19:org.apache.aries.util:1.1.0]
 at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)[19:org.apache.aries.util:1.1.0]
 at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)[19:org.apache.aries.util:1.1.0]
 at
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)[19:org.apache.aries.util:1.1.0]
 at
org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179)[org.apache.felix.framework-5.0.0.jar:]
 at
org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730)[org.apache.felix.framework-5.0.0.jar:]
 at
org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:485)[org.apache.felix.framework-5.0.0.jar:]
 at
org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4520)[org.apache.felix.framework-5.0.0.jar:]
 at
org.apache.felix.framework.Felix.startBundle(Felix.java:2166)[org.apache.felix.framework-5.0.0.jar:]
 at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:977)[org.apache.felix.framework-5.0.0.jar:]
 at
org.apache.felix.framework.BundleImpl.start(BundleImpl.java:964)[org.apache.felix.framework-5.0.0.jar:]
 at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1171)[6:org.apache.karaf.features.core:4.0.0.SNAPSHOT]
 at
org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:826)[6:org.apache.karaf.features.core:4.0.0.SNAPSHOT]
 at
org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1061)[6:org.apache.karaf.features.core:4.0.0.SNAPSHOT]
 at
org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(FeaturesServiceImpl.java:960)[6:org.apache.karaf.features.core:4.0.0.SNAPSHOT]
 at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_79]
 at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_79]
 at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_79]
 at java.lang.Thread.run(Thread.java:745)[:1.7.0_79] 

I see where tns:model is contained in both 

http://cxf.apache.org/schemas/blueprint/jaxrs.xsd and
http://cxf.apache.org/schemas/blueprint/jaxrs-common.xsd 

however even when I embed them in the blueprint file and change the name
from tns:model I get the same error. I was hoping someone might be able
to get me on the right track as I dont feel like I am looking in the
right place. 

I am using karaf 4.0 and got the same error in M2 and the snapshot from
today. 

any help would be appreciated. 

Thanks for everything, 

 David 

On 2015-05-19 17:05, [email protected] wrote: 

> The issue is http://cxf.apache.org/schemas/blueprint/jaxrs.xsd [5] 
> 
> at the line <xsd:element name="model" type="tns:model" minOccurs="0"/>
> under server 
> 
> I dont think it likes the name tns there defined as the same thing as
> the main xmlns. 
> 
> On 2015-05-19 12:48, [email protected] wrote:
> 
>> I am sorry you are correct. I had that previously and then made a poor 
>> attempt at fixing the problem by removing the first blueprint. I have 
>> readded it to be the same as my original file but am still facing the same 
>> error. I am thinking I made a change somewhere else that messed things up. 
>> Thank you for your help. On 2015-05-19 12:40, Jean-Baptiste Onofré wrote: If 
>> you define the schema location, you should define the location for all 
>> schema: xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 [1] 
>> [1 [1]] [1] http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd [2] [2 
>> [2]] [4] http://cxf.apache.org/blueprint/jaxrs [3] [3 [3]] [3] 
>> http://cxf.apache.org/schema/blueprint/jaxrs.xsd [4] [4 [4]] [6 [4]]" 
>> Regards JB On 05/19/2015 06:17 PM, [email protected] wrote: I am 
>> getting an error 2015-05-19 12:09:53,722 | ERROR | FelixStartLevel | 
>> BlueprintContainerImpl | 16 - org.apache.aries.blueprint.core - 1.4.2 | 
>> Unable to start blueprint container for bundle ****
org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'tns:model' 
to a(n) 'type definition' component. at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
Source)[:] at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown 
Source)[:] I don't think I was getting this before but don't know if I fat 
fingered something that I didn't mean to. Has someone hit this
> 
> issue before. Here is the top of my cxf definition <blueprint 
> xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0 [1] [1 [1]] [1 [1]]" 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance [6] [5 [6]] [2 [5]]" 
> xmlns:jaxrs="http://cxf.apache.org/blueprint/jaxrs [3] [3 [3]] [3 [3]]" 
> xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd 
> [2] [2 [2]] [4] http://cxf.apache.org/blueprint/jaxrs [3] [3 [3]] [3]
> 
> http://cxf.apache.org/schemas/blueprint/jaxrs.xsd [5] [6 [5]] [5 [6]]">
> 
> Links:
> ------
> [1] http://www.osgi.org/xmlns/blueprint/v1.0.0 [1] [1 [1]]
> [2] http://www.w3.org/2001/XMLSchema-instance [6] [5 [6]]
> [3] http://cxf.apache.org/blueprint/jaxrs [3] [3 [3]]
> [4] http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd [2] [2 [2]]
> [5] http://cxf.apache.org/schemas/blueprint/jaxrs.xsd [5] [6 [5]]
> [6] http://cxf.apache.org/schema/blueprint/jaxrs.xsd [4] [4 [4]]
> 
> Links:
> ------
> [1] http://www.osgi.org/xmlns/blueprint/v1.0.0 [1]
> [2] http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd [2]
> [3] http://cxf.apache.org/blueprint/jaxrs [3]
> [4] http://cxf.apache.org/schema/blueprint/jaxrs.xsd [4]
> [5] http://www.w3.org/2001/XMLSchema-instance [6]
> [6] http://cxf.apache.org/schemas/blueprint/jaxrs.xsd [5]
 

Links:
------
[1] http://www.osgi.org/xmlns/blueprint/v1.0.0
[2] http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
[3] http://cxf.apache.org/blueprint/jaxrs
[4] http://cxf.apache.org/schema/blueprint/jaxrs.xsd
[5] http://cxf.apache.org/schemas/blueprint/jaxrs.xsd
[6] http://www.w3.org/2001/XMLSchema-instance

Reply via email to