karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Kallas (Jira)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-6616) Karaf in offline mode w/ pre-installed features shows maven access errors
Date Mon, 23 Mar 2020 08:29:00 GMT

    [ https://issues.apache.org/jira/browse/KARAF-6616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17064622#comment-17064622
] 

Gerald Kallas commented on KARAF-6616:
--------------------------------------

[~jbonofre] do you have any news in between? Client is still waiting for a solution .. many
thanks in advance.

Gerald

> Karaf in offline mode w/ pre-installed features shows maven access errors
> -------------------------------------------------------------------------
>
>                 Key: KARAF-6616
>                 URL: https://issues.apache.org/jira/browse/KARAF-6616
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.7
>            Reporter: Gerald Kallas
>            Assignee: Jean-Baptiste Onofré
>            Priority: Minor
>         Attachments: Dockerfile, docker-compose.yml, org.ops4j.pax.url.mvn.cfg
>
>
> I started a vanilla Karaf 4.2.7 at
> /opt/apache-karaf-4.2.7
> /opt/apache-karaf (symbolic link to the folder above)
> and installed some features with Karaf client as following
> {code:java}
> feature:repo-add hawtio 2.9.0
> feature:repo-add activemq 5.15.11
> feature:repo-add camel 3.0.1
> feature:install webconsole hawtio activemq-broker-noweb camel camel-jms jms camel-http
camel-servlet camel-swagger-java camel-ftp camel-jackson camel-jsonpath camel-zipfile camel-velocity
> {code}
> After the installation I've stopped Karaf and packed the folder into a .tgz file. This
I'm using for a docker container creation. See Dockerfile and docker-compose.yml attached.
> I copied the relevant folders to the host directory and changed the org.ops4j.pax.url.mvn.cfg
(see attached as well). Afterwards I started the container.
> After the docker container startup the Karaf log shows entries like
> {code:java}
> 2020-02-09T02:20:24,286 | WARN  | FelixStartLevel  | AetherBasedResolver            
 | 4 - org.ops4j.pax.url.mvn - 2.6.1 | Error resolving artifact org.apache.camel.karaf:apache-camel:xml:features:3.0.1:
[Could not find artifact org.apache.camel.karaf:apache-camel:xml:features:3.0.1]
> java.io.IOException: Error resolving artifact org.apache.camel.karaf:apache-camel:xml:features:3.0.1:
[Could not find artifact org.apache.camel.karaf:apache-camel:xml:features:3.0.1]
>         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.configureIOException(AetherBasedResolver.java:803)
[!/:?]
>         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:774)
[!/:?]
>         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:657)
[!/:?]
>         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:598)
[!/:?]
>         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:565)
[!/:?]
>         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:555)
[!/:?]
>         at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:123)
[!/:?]
>         at java.net.URL.openStream(URL.java:1068) [?:1.8.0_242]
>         at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:113)
[!/:?]
>         at org.apache.karaf.features.internal.service.RepositoryImpl.<init>(RepositoryImpl.java:50)
[!/:?]
>         at org.apache.karaf.features.internal.service.RepositoryCacheImpl.create(RepositoryCacheImpl.java:51)
[!/:?]
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.getFeatureCache(FeaturesServiceImpl.java:605)
[!/:?]
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.ensureCacheLoaded(FeaturesServiceImpl.java:576)
[!/:?]
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.listRequiredRepositories(FeaturesServiceImpl.java:508)
[!/:?]
>         at org.apache.karaf.deployer.features.FeatureDeploymentListener.bundleChanged(FeatureDeploymentListener.java:240)
[!/:?]
>         at org.apache.karaf.deployer.features.FeatureDeploymentListener.init(FeatureDeploymentListener.java:95)
[!/:?]
>         at org.apache.karaf.deployer.features.osgi.Activator$DeploymentFinishedListener.deploymentEvent(Activator.java:86)
[!/:?]
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.registerListener(FeaturesServiceImpl.java:295)
[!/:?]
>         at org.apache.karaf.deployer.features.osgi.Activator.doStart(Activator.java:53)
[!/:?]
>         at org.apache.karaf.util.tracker.BaseActivator.start(BaseActivator.java:92) [!/:?]
>         at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
[org.apache.felix.framework-5.6.12.jar:?]
>         at org.apache.felix.framework.Felix.activateBundle(Felix.java:2240) [org.apache.felix.framework-5.6.12.jar:?]
>         at org.apache.felix.framework.Felix.startBundle(Felix.java:2146) [org.apache.felix.framework-5.6.12.jar:?]
>         at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373) [org.apache.felix.framework-5.6.12.jar:?]
>         at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
[org.apache.felix.framework-5.6.12.jar:?]
>         at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
>         Suppressed: shaded.org.eclipse.aether.transfer.ArtifactNotFoundException: Could
not find artifact org.apache.camel.karaf:apache-camel:xml:features:3.0.1
>                 at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:403)
~[!/:?]
>                 at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:215)
~[!/:?]
>                 at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:192)
~[!/:?]
>                 at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:247)
~[!/:?]
>                 at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:767)
[!/:?]
>                 at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:657)
[!/:?]
>                 at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:598)
[!/:?]
>                 at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:565)
[!/:?]
>                 at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:555)
[!/:?]
>                 at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:123)
[!/:?]
>                 at java.net.URL.openStream(URL.java:1068) [?:1.8.0_242]
>                 at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:113)
[!/:?]
>                 at org.apache.karaf.features.internal.service.RepositoryImpl.<init>(RepositoryImpl.java:50)
[!/:?]
>                 at org.apache.karaf.features.internal.service.RepositoryCacheImpl.create(RepositoryCacheImpl.java:51)
[!/:?]
>                 at org.apache.karaf.features.internal.service.FeaturesServiceImpl.getFeatureCache(FeaturesServiceImpl.java:605)
[!/:?]
>                 at org.apache.karaf.features.internal.service.FeaturesServiceImpl.ensureCacheLoaded(FeaturesServiceImpl.java:576)
[!/:?]
>                 at org.apache.karaf.features.internal.service.FeaturesServiceImpl.listRequiredRepositories(FeaturesServiceImpl.java:508)
[!/:?]
>                 at org.apache.karaf.deployer.features.FeatureDeploymentListener.bundleChanged(FeatureDeploymentListener.java:240)
[!/:?]
>                 at org.apache.karaf.deployer.features.FeatureDeploymentListener.init(FeatureDeploymentListener.java:95)
[!/:?]
>                 at org.apache.karaf.deployer.features.osgi.Activator$DeploymentFinishedListener.deploymentEvent(Activator.java:86)
[!/:?]
>                 at org.apache.karaf.features.internal.service.FeaturesServiceImpl.registerListener(FeaturesServiceImpl.java:295)
[!/:?]
>                 at org.apache.karaf.deployer.features.osgi.Activator.doStart(Activator.java:53)
[!/:?]
>                 at org.apache.karaf.util.tracker.BaseActivator.start(BaseActivator.java:92)
[!/:?]
>                 at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
[org.apache.felix.framework-5.6.12.jar:?]
>                 at org.apache.felix.framework.Felix.activateBundle(Felix.java:2240) [org.apache.felix.framework-5.6.12.jar:?]
>                 at org.apache.felix.framework.Felix.startBundle(Felix.java:2146) [org.apache.felix.framework-5.6.12.jar:?]
>                 at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373)
[org.apache.felix.framework-5.6.12.jar:?]
>                 at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
[org.apache.felix.framework-5.6.12.jar:?]
>                 at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
> Caused by: shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Error resolving
artifact org.apache.camel.karaf:apache-camel:xml:features:3.0.1
>         at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:413)
~[?:?]
>         at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:215)
~[?:?]
>         at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:192)
~[?:?]
>         at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:247)
~[?:?]
>         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:767)
~[?:?]
>         ... 24 more
> 2020-02-09T02:20:24,295 | WARN  | FelixStartLevel  | FeaturesServiceImpl            
 | 11 - org.apache.karaf.features.core - 4.2.7 | Can't load features repository mvn:org.apache.camel.karaf/apache-camel/3.0.1/xml/features
> java.lang.RuntimeException: Error resolving artifact org.apache.camel.karaf:apache-camel:xml:features:3.0.1:
[Could not find artifact org.apache.camel.karaf:apache-camel:xml:features:3.0.1] : mvn:org.apache.camel.karaf/apache-camel/3.0.1/xml/features
>         at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:116)
~[!/:?]
>         at org.apache.karaf.features.internal.service.RepositoryImpl.<init>(RepositoryImpl.java:50)
~[!/:?]
>         at org.apache.karaf.features.internal.service.RepositoryCacheImpl.create(RepositoryCacheImpl.java:51)
~[!/:?]
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.getFeatureCache(FeaturesServiceImpl.java:605)
[!/:?]
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.ensureCacheLoaded(FeaturesServiceImpl.java:576)
[!/:?]
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.listRequiredRepositories(FeaturesServiceImpl.java:508)
[!/:?]
>         at org.apache.karaf.deployer.features.FeatureDeploymentListener.bundleChanged(FeatureDeploymentListener.java:240)
[!/:?]
>         at org.apache.karaf.deployer.features.FeatureDeploymentListener.init(FeatureDeploymentListener.java:95)
[!/:?]
>         at org.apache.karaf.deployer.features.osgi.Activator$DeploymentFinishedListener.deploymentEvent(Activator.java:86)
[!/:?]
>         at org.apache.karaf.features.internal.service.FeaturesServiceImpl.registerListener(FeaturesServiceImpl.java:295)
[!/:?]
>         at org.apache.karaf.deployer.features.osgi.Activator.doStart(Activator.java:53)
[!/:?]
>         at org.apache.karaf.util.tracker.BaseActivator.start(BaseActivator.java:92) [!/:?]
>         at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
[org.apache.felix.framework-5.6.12.jar:?]
>         at org.apache.felix.framework.Felix.activateBundle(Felix.java:2240) [org.apache.felix.framework-5.6.12.jar:?]
>         at org.apache.felix.framework.Felix.startBundle(Felix.java:2146) [org.apache.felix.framework-5.6.12.jar:?]
>         at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373) [org.apache.felix.framework-5.6.12.jar:?]
>         at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
[org.apache.felix.framework-5.6.12.jar:?]
>         at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
> Caused by: java.io.IOException: Error resolving artifact org.apache.camel.karaf:apache-camel:xml:features:3.0.1:
[Could not find artifact org.apache.camel.karaf:apache-camel:xml:features:3.0.1]
>         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.configureIOException(AetherBasedResolver.java:803)
~[?:?]
>         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:774)
~[?:?]
>         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:657)
~[?:?]
>         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:598)
~[?:?]
>         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:565)
~[?:?]
>         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:555)
~[?:?]
>         at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:123)
~[?:?]
>         at java.net.URL.openStream(URL.java:1068) ~[?:1.8.0_242]
>         at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:113)
~[!/:?]
>         ... 17 more
>         Suppressed: shaded.org.eclipse.aether.transfer.ArtifactNotFoundException: Could
not find artifact org.apache.camel.karaf:apache-camel:xml:features:3.0.1
>                 at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:403)
~[?:?]
>                 at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:215)
~[?:?]
>                 at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:192)
~[?:?]
>                 at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:247)
~[?:?]
>                 at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:767)
~[?:?]
>                 at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:657)
~[?:?]
>                 at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:598)
~[?:?]
>                 at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:565)
~[?:?]
>                 at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:555)
~[?:?]
>                 at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:123)
~[?:?]
>                 at java.net.URL.openStream(URL.java:1068) ~[?:1.8.0_242]
>                 at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:113)
~[!/:?]
>                 at org.apache.karaf.features.internal.service.RepositoryImpl.<init>(RepositoryImpl.java:50)
~[!/:?]
>                 at org.apache.karaf.features.internal.service.RepositoryCacheImpl.create(RepositoryCacheImpl.java:51)
~[!/:?]
>                 at org.apache.karaf.features.internal.service.FeaturesServiceImpl.getFeatureCache(FeaturesServiceImpl.java:605)
[!/:?]
>                 at org.apache.karaf.features.internal.service.FeaturesServiceImpl.ensureCacheLoaded(FeaturesServiceImpl.java:576)
[!/:?]
>                 at org.apache.karaf.features.internal.service.FeaturesServiceImpl.listRequiredRepositories(FeaturesServiceImpl.java:508)
[!/:?]
>                 at org.apache.karaf.deployer.features.FeatureDeploymentListener.bundleChanged(FeatureDeploymentListener.java:240)
[!/:?]
>                 at org.apache.karaf.deployer.features.FeatureDeploymentListener.init(FeatureDeploymentListener.java:95)
[!/:?]
>                 at org.apache.karaf.deployer.features.osgi.Activator$DeploymentFinishedListener.deploymentEvent(Activator.java:86)
[!/:?]
>                 at org.apache.karaf.features.internal.service.FeaturesServiceImpl.registerListener(FeaturesServiceImpl.java:295)
[!/:?]
>                 at org.apache.karaf.deployer.features.osgi.Activator.doStart(Activator.java:53)
[!/:?]
>                 at org.apache.karaf.util.tracker.BaseActivator.start(BaseActivator.java:92)
[!/:?]
>                 at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
[org.apache.felix.framework-5.6.12.jar:?]
>                 at org.apache.felix.framework.Felix.activateBundle(Felix.java:2240) [org.apache.felix.framework-5.6.12.jar:?]
>                 at org.apache.felix.framework.Felix.startBundle(Felix.java:2146) [org.apache.felix.framework-5.6.12.jar:?]
>                 at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1373)
[org.apache.felix.framework-5.6.12.jar:?]
>                 at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
[org.apache.felix.framework-5.6.12.jar:?]
>                 at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
> Caused by: shaded.org.eclipse.aether.resolution.ArtifactResolutionException: Error resolving
artifact org.apache.camel.karaf:apache-camel:xml:features:3.0.1
>         at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:413)
~[?:?]
>         at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:215)
~[?:?]
>         at shaded.org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:192)
~[?:?]
>         at shaded.org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:247)
~[?:?]
>         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:767)
~[?:?]
>         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:657)
~[?:?]
>         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:598)
~[?:?]
>         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:565)
~[?:?]
>         at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:555)
~[?:?]
>         at org.ops4j.pax.url.mvn.internal.Connection.getInputStream(Connection.java:123)
~[?:?]
>         at java.net.URL.openStream(URL.java:1068) ~[?:1.8.0_242]
>         at org.apache.karaf.features.internal.service.RepositoryImpl.load(RepositoryImpl.java:113)
~[!/:?]
>         ... 17 more
> {code}
> and
> {code:java}
> 2020-02-09T02:20:31,099 | WARN  | CM Configuration Updater (ManagedServiceFactory Update:
factoryPid=[org.apache.activemq.server]) | XmlBeanDefinitionReader          | 185 - org.apache.servicemix.bundles.spring-beans
- 5.1.9.RELEASE_1 | Ignored XML validation warning
> org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-2.0.xsd',
because 1) could not find the document; 2) the document could not be read; 3) the root element
of the document is not <xsd:schema>.
>         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.warning(ErrorHandlerWrapper.java:99)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:392)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:306)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaErr(XSDHandler.java:4158)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSchemaWarning(XSDHandler.java:4149)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument1(XSDHandler.java:2491)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:2193)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchema(XSDHandler.java:578)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema(XMLSchemaLoader.java:610)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2447)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1768)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:741)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:374)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:613)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3132)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:852)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
[?:1.8.0_242]
>         at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:77)
[!/:?]
>         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:434)
[!/:?]
>         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:392)
[!/:?]
>         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
[!/:?]
>         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
[!/:?]
>         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
[!/:?]
>         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:224)
[!/:?]
>         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:195)
[!/:?]
>         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:257)
[!/:?]
>         at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:128)
[!/:?]
>         at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:94)
[!/:?]
>         at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:133)
[!/:?]
>         at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:636)
[!/:?]
>         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:521)
[!/:?]
>         at org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:126)
[!/:5.15.11]
>         at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)
[!/:?]
>         at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)
[!/:?]
>         at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1253)
[!/:?]
>         at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1197)
[!/:?]
>         at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138) [!/:?]
>         at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105) [!/:?]
>         at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
> Caused by: java.net.UnknownHostException: www.springframework.org
>         at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
~[?:1.8.0_242]
>         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[?:1.8.0_242]
>         at java.net.Socket.connect(Socket.java:607) ~[?:1.8.0_242]
>         at java.net.Socket.connect(Socket.java:556) ~[?:1.8.0_242]
>         at sun.net.NetworkClient.doConnect(NetworkClient.java:180) ~[?:1.8.0_242]
>         at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) ~[?:1.8.0_242]
>         at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) ~[?:1.8.0_242]
>         at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) ~[?:1.8.0_242]
>         at sun.net.www.http.HttpClient.New(HttpClient.java:339) ~[?:1.8.0_242]
>         at sun.net.www.http.HttpClient.New(HttpClient.java:357) ~[?:1.8.0_242]
>         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226)
~[?:1.8.0_242]
>         at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162)
~[?:1.8.0_242]
>         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056)
~[?:1.8.0_242]
>         at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990)
~[?:1.8.0_242]
>         at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1570)
~[?:1.8.0_242]
>         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:647)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:148)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:583)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaParsingConfig.parse(SchemaParsingConfig.java:686)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.xs.opti.SchemaDOMParser.parse(SchemaDOMParser.java:530)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchemaDocument(XSDHandler.java:2181)
~[?:1.8.0_242]
>         ... 39 more
> 2020-02-09T02:20:31,120 | ERROR | CM Configuration Updater (ManagedServiceFactory Update:
factoryPid=[org.apache.activemq.server]) | configadmin                      | 9 - org.apache.felix.configadmin
- 1.9.16 | [org.osgi.service.cm.ManagedServiceFactory, id=203, bundle=77/mvn:org.apache.activemq/activemq-osgi/5.15.11]:
Updating configuration org.apache.activemq.server.6b2bdfec-f6ea-4420-8715-f6bfe8f990dc caused
a problem: Cannot start the broker
> org.osgi.service.cm.ConfigurationException: null : Cannot start the broker
>         at org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:147)
~[!/:5.15.11]
>         at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.updated(ManagedServiceFactoryTracker.java:159)
~[!/:?]
>         at org.apache.felix.cm.impl.helper.ManagedServiceFactoryTracker.provideConfiguration(ManagedServiceFactoryTracker.java:93)
[!/:?]
>         at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.provide(ConfigurationManager.java:1253)
[!/:?]
>         at org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceFactoryUpdate.run(ConfigurationManager.java:1197)
[!/:?]
>         at org.apache.felix.cm.impl.UpdateThread.run0(UpdateThread.java:138) [!/:?]
>         at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:105) [!/:?]
>         at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
> Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
24 in XML document from URL [file:/opt/apache-karaf-4.2.7/etc/activemq.xml] is invalid; nested
exception is org.xml.sax.SAXParseException; lineNumber: 24; columnNumber: 101; cvc-elt.1:
Cannot find the declaration of element 'beans'.
>         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:404)
~[!/:?]
>         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
~[!/:?]
>         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
~[!/:?]
>         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
~[!/:?]
>         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:224)
~[!/:?]
>         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:195)
~[!/:?]
>         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:257)
~[!/:?]
>         at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:128)
~[!/:?]
>         at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:94)
~[!/:?]
>         at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:133)
~[!/:?]
>         at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:636)
~[!/:?]
>         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:521)
~[!/:?]
>         at org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:126)
~[!/:5.15.11]
>         ... 7 more
> Caused by: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element
'beans'.
>         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1901)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:741)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:374)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:613)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3132)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:852)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:842)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
~[?:1.8.0_242]
>         at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
~[?:1.8.0_242]
>         at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:77)
~[!/:?]
>         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:434)
~[!/:?]
>         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:392)
~[!/:?]
>         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
~[!/:?]
>         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
~[!/:?]
>         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
~[!/:?]
>         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:224)
~[!/:?]
>         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:195)
~[!/:?]
>         at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:257)
~[!/:?]
>         at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:128)
~[!/:?]
>         at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:94)
~[!/:?]
>         at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:133)
~[!/:?]
>         at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:636)
~[!/:?]
>         at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:521)
~[!/:?]
>         at org.apache.activemq.osgi.ActiveMQServiceFactory.updated(ActiveMQServiceFactory.java:126)
~[!/:5.15.11]
>         ... 7 more
> {code}
> The 1st one seems strange as the features are installed and work properly.
> The 2nd one seems to be an ActiveMQ issue that the file
> [http://www.springframework.org/schema/beans/spring-beans-2.0.xsd]
> isn't included in the ActiveMQ feature.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message