karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: [VOTE] Apache Karaf 4.0.5 release (take 2)
Date Wed, 06 Apr 2016 06:10:31 GMT
Regarding the issue, I suspect it's related to this change in Aries 
Blueprint:

---------------------------
commit b685f35c9c9074d26a3d2af63bc4aa41ec5c0b6e
Author: Guillaume Nodet <gnodet@apache.org>
Date:   Fri Mar 11 13:47:57 2016 +0000

     [ARIES-1290][ARIES-1503] Better handling of XSD imports between 
namespace handlers (e.g. cm->ext)

     git-svn-id: https://svn.apache.org/repos/asf/aries/trunk@1734559 
13f79535-47bb-0310-9956-ffa450edef68
-----------------------------

and especially this part:

+        } else if 
(namespace.startsWith("http://aries.apache.org/blueprint/xmlns/blueprint-ext")) 
{
+            try {
+                Bundle extBundle = 
FrameworkUtil.getBundle(PlaceholdersUtils.class);
+                Class<?> extNsHandlerClazz = 
extBundle.loadClass("org.apache.aries.blueprint.ext.impl.ExtNamespaceHandler");
+                return ((NamespaceHandler) 
extNsHandlerClazz.newInstance()).getSchemaLocation(namespace);
+            } catch (Throwable t) {
+                LOGGER.warn("Could not locate ext namespace schema", t);
+                return null;
+            }

Let me try to ping Guillaume today, but IMHO, it's a -1 due to this 
change in Aries.

Regards
JB

On 04/05/2016 10:19 PM, Jean-Baptiste Onofré wrote:
> I tried with Camel 2.16.2, camel-blueprint, and simple route in
> blueprint: it works fine.
>
> I tried with your XML, and actually I have the same problem.
>
> It sounds like a Aries Blueprint bug. Let me try if I downgrade to
> blueprint 1.5.x and check the change in aries blueprint (I know
> Guillaume did some enhancements & changes).
>
> Honestly, I would consider as a blocker for the release, so, I will
> probably revert my vote to -1. I just want to make more tests.
>
> Regards
> JB
>
> On 04/05/2016 09:46 PM, Krzysztof Sobkowiak wrote:
>> Hi
>>
>> I tried to upgrade ServiceMix to the new version and have several
>> problems with blueprint.
>>
>> 2016-04-05 21:42:05,485 | INFO  | pool-46-thread-1 |
>> FeaturesServiceImpl              | 9 - org.apache.karaf.features.core
>> - 4.0.5 |   cxf-wsn-receive/7.0.0.SNAPSHOT
>> 2016-04-05 21:42:05,567 | ERROR | pool-46-thread-1 |
>> BlueprintContainerImpl           | 28 -
>> org.apache.aries.blueprint.core - 1.6.0 | Unable to start blueprint
>> container for bundle cxf-wsn-receive/7.0.0.SNAPSHOT
>> org.xml.sax.SAXParseException: src-import.3.1: The namespace
>> attribute,
>> 'http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0', of an
>> <import> element information item must be identical to the
>> targetNamespace attribute, 'http://camel.apache.org/schema/blueprint',
>> of the imported document.
>>      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.constructTrees(Unknown
>> Source)[:]
>>      at
>> org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown
>> Source)[:]
>>      at
>> org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown
>> Source)[:]
>>
>> or
>>
>>
>> 2016-04-05 21:31:36,969 | ERROR | pool-42-thread-1 |
>> BlueprintContainerImpl           | 28 -
>> org.apache.aries.blueprint.core - 1.6.0 | Unable to start blueprint
>> container for bundle drools-camel-cxf-server/7.0.0.SNAPSHOT
>> org.xml.sax.SAXParseException: src-import.3.1: The namespace
>> attribute, 'http://cxf.apache.org/configuration/beans', of an <import>
>> element information item must be identical to the targetNamespace
>> attribute, 'http://camel.apache.org/schema/blueprint', of the imported
>> document.
>>      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.constructTrees(Unknown
>> Source)[:]
>>      at
>> org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown
>> Source)[:]
>>
>>
>>
>> Here my try to reproduce one of them in K405
>>
>> Assume you have following simple blueprint (I have reduced one of the
>> blueprints from the examples)
>>
>> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
>>             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>
>> xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
>>
>> xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
>> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
>>
>>      <!-- AdminConfig property place holder for the
>> org.apache.servicemix.examples.cxf.receive"  -->
>>      <cm:property-placeholder
>> persistent-id="org.apache.servicemix.examples.cxf.receive"
>> update-strategy="reload">
>>          <cm:default-properties>
>>              <cm:property name="endpoint"
>> value="http://localhost:12345/test/"/>
>>              <cm:property name="topic" value="MyTopic" />
>>          </cm:default-properties>
>>      </cm:property-placeholder>
>>
>>      <camelContext xmlns="http://camel.apache.org/schema/blueprint">
>>
>>      </camelContext>
>> </blueprint>
>>
>>
>> Next
>>
>> karaf@root()> feature:repo-add camel 2.16.2
>> Adding feature url
>> mvn:org.apache.camel.karaf/apache-camel/2.16.2/xml/features
>> karaf@root()> feature:install camel-blueprint
>>
>>
>> Deploy the blueprint into deploy directory (the same problem occurs
>> when the blueprint is part of a bundle). Tho log contains following error
>>
>>
>> 2016-04-05 21:15:47,932 | INFO  | raf-4.0.5/deploy |
>> fileinstall                      | 8 - org.apache.felix.fileinstall -
>> 3.5.4 | Installing bundle x.xml / 0.0.0
>> 2016-04-05 21:15:48,216 | ERROR | raf-4.0.5/deploy |
>> BlueprintContainerImpl           | 13 -
>> org.apache.aries.blueprint.core - 1.6.0 | Unable to start blueprint
>> container for bundle x.xml/0.0.0
>> org.xml.sax.SAXParseException: src-import.3.1: The namespace
>> attribute,
>> 'http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0', of an
>> <import> element information item must be identical to the
>> targetNamespace attribute, 'http://camel.apache.org/schema/blueprint',
>> of the imported document.
>>      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.constructTrees(Unknown
>> Source)[:]
>>      at
>> org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(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)[:]
>>
>>
>> The same happens with Camel 2.17.0.
>> This error didn't occur in K404. I think, it can be caused by upgrade
>> to Aries Blueprint 1.6.0.
>>
>>
>> Please, correct me if I'm missing something I should do after this
>> upgrade. But when it's a new issue introduced by upgrade to Aries
>> Blueprint 1.6.0 the people using Camel with Karaf will not be happy
>> with the new version. ServiceMix will be broken too.
>>
>> I'd like to vote with -1, non-binding, but I'm giving -0. Please
>> decide, whether this is issue which should stop the release.
>>
>> Kindly regards
>> Krzysztof
>>
>>
>>
>>
>>
>> On 04.04.2016 22:38, Jean-Baptiste Onofré wrote:
>>> Hi all,
>>>
>>> I submit Karaf Container 4.0.5 release to your vote.
>>>
>>> Release Note:
>>> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12311140&version=12334629
>>>
>>>
>>> Staging Repository:
>>> https://repository.apache.org/content/repositories/orgapachekaraf-1060/
>>>
>>> Git tag:
>>> karaf-4.0.5
>>>
>>> Please vote to approve this release:
>>>
>>> [ ] +1 Approve the release
>>> [ ] -1 Don't approve the release (please provide specific comments)
>>>
>>> This vote will be open for at least 72 hours.
>>>
>>> Thanks,
>>> Regards
>>> JB
>>
>

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

Mime
View raw message