You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by kotoole <ke...@gmail.com> on 2016/07/06 03:43:18 UTC
Problems with Karaf 4.0.5 vs. Karaf 4.0.4
With Karaf 4.0.5, it appears Internet access is required to resolve
namespaces.
When Internet access is disabled, I receive the following error among
others:
21:56:21,785 | WARN | 1.6.1 | | Dynamically adding namespace handler
http://cxf.apache.org/configuration/parameterized-types to bundle xxx/1.0.0
21:56:42,778 | ERROR | 1.6.1 | | Unable to start blueprint container for
bundle xxx/1.0.0
org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name
'pt:ParameterizedBoolean' to a(n) 'simpleType definition' component.
at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)[:]
at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)[:]
Also, I am unable to use shell commands using old schemas:
org.xml.sax.SAXParseException: src-import.3.1: The namespace attribute,
'http://schemas.xmlsoap.org/wsdl/', of an <import> element information item
must be identical to the targetNamespace attribute,
'http://karaf.apache.org/xmlns/shell/v1.1.0', 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)[:]
--
View this message in context: http://karaf.922171.n3.nabble.com/Problems-with-Karaf-4-0-5-vs-Karaf-4-0-4-tp4047129.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Problems with Karaf 4.0.5 vs. Karaf 4.0.4
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
we had an issue in Aries Blueprint in the past around this. However, it
has been fixed. Let me double check.
Can you create a Jira ?
Thanks,
Regards
JB
On 07/06/2016 05:43 AM, kotoole wrote:
> With Karaf 4.0.5, it appears Internet access is required to resolve
> namespaces.
>
> When Internet access is disabled, I receive the following error among
> others:
> 21:56:21,785 | WARN | 1.6.1 | | Dynamically adding namespace handler
> http://cxf.apache.org/configuration/parameterized-types to bundle xxx/1.0.0
> 21:56:42,778 | ERROR | 1.6.1 | | Unable to start blueprint container for
> bundle xxx/1.0.0
> org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name
> 'pt:ParameterizedBoolean' to a(n) 'simpleType definition' component.
> at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)[:]
> at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)[:]
>
> Also, I am unable to use shell commands using old schemas:
> org.xml.sax.SAXParseException: src-import.3.1: The namespace attribute,
> 'http://schemas.xmlsoap.org/wsdl/', of an <import> element information item
> must be identical to the targetNamespace attribute,
> 'http://karaf.apache.org/xmlns/shell/v1.1.0', 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)[:]
>
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Problems-with-Karaf-4-0-5-vs-Karaf-4-0-4-tp4047129.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Problems with Karaf 4.0.5 vs. Karaf 4.0.4
Posted by Michael Täschner <m....@gmail.com>.
Hi Christian,
unfortunately this is not under my control. The referenced type ("
pt:ParameterizedBoolean") and the corresponding namespace are not actually
configured by me but seem to be used internally. This made the issue even
more irritating ...
Thanks and Best Regards,
Michael
2016-07-11 18:15 GMT+02:00 Christian Lutz <Ch...@kreeloo.de>:
> Hello Michael,
>
> there is an old related question in stack overflow.
>
>
> http://stackoverflow.com/questions/1729307/spring-schemalocation-fails-when-there-is-no-internet-connection
>
> if you can manipulate your .xsd files you may add classpath before your
> location e.g.
>
> classpath:spring-context-2.1.xsd
>
> in this case the local xsd file will be used.
> (As far as I understand this problem :)
>
> So maybe in your case this helps.
>
> Christian
>
>
>
>
> Am 11.07.2016 um 17:19 schrieb Michael Täschner <m....@gmail.com>:
>
> Hi,
>
> I have run into the same issue with ServiceMix 6.1.2 / Karaf 3.0.7 and
> added a comment to the referenced jira issue. As we are operating our
> containers in a backbone environment there is no internet access available,
> which makes this issue critical for us. Strangely enough the referenced
> schema is located in cxf-core/schemas/configuration/parameterized-types.xsd
> but is not read from there ?!
>
> Best Regards,
> Michael
>
> 2016-07-06 15:46 GMT+02:00 kotoole <ke...@gmail.com>:
>
>> I am using felix.
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/Problems-with-Karaf-4-0-5-vs-Karaf-4-0-4-tp4047129p4047134.html
>> Sent from the Karaf - User mailing list archive at Nabble.com
>> <http://nabble.com>.
>>
>
>
>
Re: Problems with Karaf 4.0.5 vs. Karaf 4.0.4
Posted by Christian Lutz <Ch...@kreeloo.de>.
Hello Michael,
there is an old related question in stack overflow.
http://stackoverflow.com/questions/1729307/spring-schemalocation-fails-when-there-is-no-internet-connection <http://stackoverflow.com/questions/1729307/spring-schemalocation-fails-when-there-is-no-internet-connection>
if you can manipulate your .xsd files you may add classpath before your location e.g.
classpath:spring-context-2.1.xsd
in this case the local xsd file will be used.
(As far as I understand this problem :)
So maybe in your case this helps.
Christian
> Am 11.07.2016 um 17:19 schrieb Michael Täschner <m....@gmail.com>:
>
> Hi,
>
> I have run into the same issue with ServiceMix 6.1.2 / Karaf 3.0.7 and added a comment to the referenced jira issue. As we are operating our containers in a backbone environment there is no internet access available, which makes this issue critical for us. Strangely enough the referenced schema is located in cxf-core/schemas/configuration/parameterized-types.xsd but is not read from there ?!
>
> Best Regards,
> Michael
>
> 2016-07-06 15:46 GMT+02:00 kotoole <kevin.j.otoole@gmail.com <ma...@gmail.com>>:
> I am using felix.
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Problems-with-Karaf-4-0-5-vs-Karaf-4-0-4-tp4047129p4047134.html <http://karaf.922171.n3.nabble.com/Problems-with-Karaf-4-0-5-vs-Karaf-4-0-4-tp4047129p4047134.html>
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
Re: Problems with Karaf 4.0.5 vs. Karaf 4.0.4
Posted by Michael Täschner <m....@gmail.com>.
Hi,
I have run into the same issue with ServiceMix 6.1.2 / Karaf 3.0.7 and
added a comment to the referenced jira issue. As we are operating our
containers in a backbone environment there is no internet access available,
which makes this issue critical for us. Strangely enough the referenced
schema is located in cxf-core/schemas/configuration/parameterized-types.xsd
but is not read from there ?!
Best Regards,
Michael
2016-07-06 15:46 GMT+02:00 kotoole <ke...@gmail.com>:
> I am using felix.
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Problems-with-Karaf-4-0-5-vs-Karaf-4-0-4-tp4047129p4047134.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
Re: Problems with Karaf 4.0.5 vs. Karaf 4.0.4
Posted by kotoole <ke...@gmail.com>.
I am using felix.
--
View this message in context: http://karaf.922171.n3.nabble.com/Problems-with-Karaf-4-0-5-vs-Karaf-4-0-4-tp4047129p4047134.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Problems with Karaf 4.0.5 vs. Karaf 4.0.4
Posted by Christian Lutz <Ch...@kreeloo.de>.
Issue Karaf-4608. I do know that the exception is different. But I saw the same exception if the blueprint is different.
Christian
> Am 06.07.2016 um 07:20 schrieb Jean-Baptiste Onofré <jb...@nanthrax.net>:
>
> Thanks Christian for the Jira,
>
> I will take a look and fix in Blueprint (or downgrade for Karaf 4.0.6).
>
> Regards
> JB
>
>> On 07/06/2016 07:12 AM, Christian Lutz wrote:
>> I created a bug report for this yesterday. I dont have the issue number by hand. So just look in jira. I guess the problem is because of a chaning in aries blueprint 1.6.1.
>>
>> Which framework did you use felix or equinox?
>>
>>> Am 06.07.2016 um 05:43 schrieb kotoole <ke...@gmail.com>:
>>>
>>> With Karaf 4.0.5, it appears Internet access is required to resolve
>>> namespaces.
>>>
>>> When Internet access is disabled, I receive the following error among
>>> others:
>>> 21:56:21,785 | WARN | 1.6.1 | | Dynamically adding namespace handler
>>> http://cxf.apache.org/configuration/parameterized-types to bundle xxx/1.0.0
>>> 21:56:42,778 | ERROR | 1.6.1 | | Unable to start blueprint container for
>>> bundle xxx/1.0.0
>>> org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name
>>> 'pt:ParameterizedBoolean' to a(n) 'simpleType definition' component.
>>> at
>>> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
>>> Source)[:]
>>> at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)[:]
>>>
>>> Also, I am unable to use shell commands using old schemas:
>>> org.xml.sax.SAXParseException: src-import.3.1: The namespace attribute,
>>> 'http://schemas.xmlsoap.org/wsdl/', of an <import> element information item
>>> must be identical to the targetNamespace attribute,
>>> 'http://karaf.apache.org/xmlns/shell/v1.1.0', 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)[:]
>>>
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context: http://karaf.922171.n3.nabble.com/Problems-with-Karaf-4-0-5-vs-Karaf-4-0-4-tp4047129.html
>>> Sent from the Karaf - User mailing list archive at Nabble.com.
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
Re: Problems with Karaf 4.0.5 vs. Karaf 4.0.4
Posted by kotoole <ke...@gmail.com>.
I think I am actually encountering a different issue than the one originally
reported. It is still related to namespaces, but offline access does not
appear to be the issue.
I apologize for the confusion. I do believe Aries Blueprint Core 1.6.2 fixed
the original problem reported. I will create a follow up post about the new
problem I am encountering.
--
View this message in context: http://karaf.922171.n3.nabble.com/Problems-with-Karaf-4-0-5-vs-Karaf-4-0-4-tp4047129p4047819.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Problems with Karaf 4.0.5 vs. Karaf 4.0.4
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi JP
Karaf 4.0.6 already uses Aries Blueprint Core 1.6.2:
https://github.com/apache/karaf/blob/karaf-4.0.6/pom.xml
So, it seems to not be enough. That's why I have to investigate.
Regards
JB
On 09/01/2016 11:27 AM, CLEMENT Jean-Philippe wrote:
> Hi JB,
>
> As far as I understand, using blueprint-core-1.6.2 instead of 1.6.1 should fix the problem.
>
> It could be nice to include the fix in Karaf 4.0.6... do you think it is achievable?
>
> JP
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofr [mailto:jb@nanthrax.net]
> Envoy : mercredi 31 aot 2016 17:15
> : user@karaf.apache.org
> Objet : Re: Problems with Karaf 4.0.5 vs. Karaf 4.0.4
>
> I updated the Jira to include in Karaf 4.0.7.
>
> Let me try to reproduce and investigate.
>
> Regards
> JB
>
> On 08/31/2016 05:12 PM, kotoole wrote:
>> Any update on this? https://issues.apache.org/jira/browse/KARAF-4608
>>
>> I was hopeful that https://issues.apache.org/jira/browse/ARIES-1540
>> would fix the problem, but it does not appear so. Karaf 4.0.6 still
>> exhibits the same problem.
>>
>> This is a showstopper issue for us.
>>
>>
>>
>> --
>> View this message in context:
>> http://karaf.922171.n3.nabble.com/Problems-with-Karaf-4-0-5-vs-Karaf-4
>> -0-4-tp4047129p4047788.html Sent from the Karaf - User mailing list
>> archive at Nabble.com.
>>
>
> --
> Jean-Baptiste Onofr
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Problems with Karaf 4.0.5 vs. Karaf 4.0.4
Posted by Guillaume Nodet <gn...@apache.org>.
Karaf 4.0.6 already includes blueprint-core-1.6.2.
However, the last comment on KARAF-4608 seems to indicate this is not
sufficient.
2016-09-01 11:27 GMT+02:00 CLEMENT Jean-Philippe <
jean-philippe.clement@fr.thalesgroup.com>:
> Hi JB,
>
> As far as I understand, using blueprint-core-1.6.2 instead of 1.6.1 should
> fix the problem.
>
> It could be nice to include the fix in Karaf 4.0.6... do you think it is
> achievable?
>
> JP
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : mercredi 31 août 2016 17:15
> À : user@karaf.apache.org
> Objet : Re: Problems with Karaf 4.0.5 vs. Karaf 4.0.4
>
> I updated the Jira to include in Karaf 4.0.7.
>
> Let me try to reproduce and investigate.
>
> Regards
> JB
>
> On 08/31/2016 05:12 PM, kotoole wrote:
> > Any update on this? https://issues.apache.org/jira/browse/KARAF-4608
> >
> > I was hopeful that https://issues.apache.org/jira/browse/ARIES-1540
> > would fix the problem, but it does not appear so. Karaf 4.0.6 still
> > exhibits the same problem.
> >
> > This is a showstopper issue for us.
> >
> >
> >
> > --
> > View this message in context:
> > http://karaf.922171.n3.nabble.com/Problems-with-Karaf-4-0-5-vs-Karaf-4
> > -0-4-tp4047129p4047788.html Sent from the Karaf - User mailing list
> > archive at Nabble.com.
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration
Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/
RE: Problems with Karaf 4.0.5 vs. Karaf 4.0.4
Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Hi JB,
As far as I understand, using blueprint-core-1.6.2 instead of 1.6.1 should fix the problem.
It could be nice to include the fix in Karaf 4.0.6... do you think it is achievable?
JP
-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
Envoyé : mercredi 31 août 2016 17:15
À : user@karaf.apache.org
Objet : Re: Problems with Karaf 4.0.5 vs. Karaf 4.0.4
I updated the Jira to include in Karaf 4.0.7.
Let me try to reproduce and investigate.
Regards
JB
On 08/31/2016 05:12 PM, kotoole wrote:
> Any update on this? https://issues.apache.org/jira/browse/KARAF-4608
>
> I was hopeful that https://issues.apache.org/jira/browse/ARIES-1540
> would fix the problem, but it does not appear so. Karaf 4.0.6 still
> exhibits the same problem.
>
> This is a showstopper issue for us.
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Problems-with-Karaf-4-0-5-vs-Karaf-4
> -0-4-tp4047129p4047788.html Sent from the Karaf - User mailing list
> archive at Nabble.com.
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Problems with Karaf 4.0.5 vs. Karaf 4.0.4
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
I updated the Jira to include in Karaf 4.0.7.
Let me try to reproduce and investigate.
Regards
JB
On 08/31/2016 05:12 PM, kotoole wrote:
> Any update on this? https://issues.apache.org/jira/browse/KARAF-4608
>
> I was hopeful that https://issues.apache.org/jira/browse/ARIES-1540 would
> fix the problem, but it does not appear so. Karaf 4.0.6 still exhibits the
> same problem.
>
> This is a showstopper issue for us.
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Problems-with-Karaf-4-0-5-vs-Karaf-4-0-4-tp4047129p4047788.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Problems with Karaf 4.0.5 vs. Karaf 4.0.4
Posted by kotoole <ke...@gmail.com>.
Any update on this? https://issues.apache.org/jira/browse/KARAF-4608
I was hopeful that https://issues.apache.org/jira/browse/ARIES-1540 would
fix the problem, but it does not appear so. Karaf 4.0.6 still exhibits the
same problem.
This is a showstopper issue for us.
--
View this message in context: http://karaf.922171.n3.nabble.com/Problems-with-Karaf-4-0-5-vs-Karaf-4-0-4-tp4047129p4047788.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Problems with Karaf 4.0.5 vs. Karaf 4.0.4
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Thanks Christian for the Jira,
I will take a look and fix in Blueprint (or downgrade for Karaf 4.0.6).
Regards
JB
On 07/06/2016 07:12 AM, Christian Lutz wrote:
> I created a bug report for this yesterday. I dont have the issue number by hand. So just look in jira. I guess the problem is because of a chaning in aries blueprint 1.6.1.
>
> Which framework did you use felix or equinox?
>
>> Am 06.07.2016 um 05:43 schrieb kotoole <ke...@gmail.com>:
>>
>> With Karaf 4.0.5, it appears Internet access is required to resolve
>> namespaces.
>>
>> When Internet access is disabled, I receive the following error among
>> others:
>> 21:56:21,785 | WARN | 1.6.1 | | Dynamically adding namespace handler
>> http://cxf.apache.org/configuration/parameterized-types to bundle xxx/1.0.0
>> 21:56:42,778 | ERROR | 1.6.1 | | Unable to start blueprint container for
>> bundle xxx/1.0.0
>> org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name
>> 'pt:ParameterizedBoolean' to a(n) 'simpleType definition' component.
>> at
>> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
>> Source)[:]
>> at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)[:]
>>
>> Also, I am unable to use shell commands using old schemas:
>> org.xml.sax.SAXParseException: src-import.3.1: The namespace attribute,
>> 'http://schemas.xmlsoap.org/wsdl/', of an <import> element information item
>> must be identical to the targetNamespace attribute,
>> 'http://karaf.apache.org/xmlns/shell/v1.1.0', 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)[:]
>>
>>
>>
>>
>>
>> --
>> View this message in context: http://karaf.922171.n3.nabble.com/Problems-with-Karaf-4-0-5-vs-Karaf-4-0-4-tp4047129.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Problems with Karaf 4.0.5 vs. Karaf 4.0.4
Posted by Christian Lutz <Ch...@kreeloo.de>.
I created a bug report for this yesterday. I dont have the issue number by hand. So just look in jira. I guess the problem is because of a chaning in aries blueprint 1.6.1.
Which framework did you use felix or equinox?
> Am 06.07.2016 um 05:43 schrieb kotoole <ke...@gmail.com>:
>
> With Karaf 4.0.5, it appears Internet access is required to resolve
> namespaces.
>
> When Internet access is disabled, I receive the following error among
> others:
> 21:56:21,785 | WARN | 1.6.1 | | Dynamically adding namespace handler
> http://cxf.apache.org/configuration/parameterized-types to bundle xxx/1.0.0
> 21:56:42,778 | ERROR | 1.6.1 | | Unable to start blueprint container for
> bundle xxx/1.0.0
> org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name
> 'pt:ParameterizedBoolean' to a(n) 'simpleType definition' component.
> at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)[:]
> at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)[:]
>
> Also, I am unable to use shell commands using old schemas:
> org.xml.sax.SAXParseException: src-import.3.1: The namespace attribute,
> 'http://schemas.xmlsoap.org/wsdl/', of an <import> element information item
> must be identical to the targetNamespace attribute,
> 'http://karaf.apache.org/xmlns/shell/v1.1.0', 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)[:]
>
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Problems-with-Karaf-4-0-5-vs-Karaf-4-0-4-tp4047129.html
> Sent from the Karaf - User mailing list archive at Nabble.com.