Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
-
%
Description
As part of patch request we attempted to provide a patch for ENTESB-697 however when the pax-url-mvn bundle is included in the patch descriptor the following error occurs:
JBossFuse:karaf@root> patch:install jboss-fuse-6.0.0.redhat-024-r1p3 Bundles to update: org.apache.karaf.admin.core/2.3.0.redhat-60024 with mvn:org.apache.karaf.admin/org.apache.karaf.admin.core/2.3.0.redhat-60063 org.apache.camel.camel-spring/2.10.0.redhat-60060 with mvn:org.apache.camel/camel-spring/2.10.0.redhat-60063 org.ops4j.pax.url.mvn/1.3.6 with mvn:org.ops4j.pax.url/pax-url-mvn/1.3.7 org.apache.activemq.activemq-osgi/5.8.0.redhat-60060 with mvn:org.apache.activemq/activemq-osgi/5.8.0.redhat-60063 org.apache.camel.camel-saxon/2.10.0.redhat-60060 with mvn:org.apache.camel/camel-saxon/2.10.0.redhat-60063 org.apache.karaf.shell.ssh/2.3.0.redhat-60060 with mvn:org.apache.karaf.shell/org.apache.karaf.shell.ssh/2.3.0.redhat-60063 org.apache.karaf.deployer.blueprint/2.3.0.redhat-60060 with mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.blueprint/2.3.0.redhat-60063 org.apache.cxf.cxf-api/2.6.0.redhat-60060 with mvn:org.apache.cxf/cxf-api/2.6.0.redhat-60063 org.ops4j.pax.url.war/1.3.6 with mvn:org.ops4j.pax.url/pax-url-war/1.3.7 org.apache.karaf.shell.console/2.3.0.redhat-60060 with mvn:org.apache.karaf.shell/org.apache.karaf.shell.console/2.3.0.redhat-60063 org.apache.camel.camel-core/2.10.0.redhat-60060 with mvn:org.apache.camel/camel-core/2.10.0.redhat-60063 Installation will begin. The connection may be lost or the console restarted. [name] [old] [new] org.apache.camel.camel-core 2.10.0.redhat-60060 2.10.0.redhat-60063 org.apache.camel.camel-spring 2.10.0.redhat-60060 2.10.0.redhat-60063 org.apache.karaf.deployer.blueprint;blueprint.graceperiod:=false 2.3.0.redhat-60060 2.3.0.redhat-60063 org.apache.karaf.admin.core 2.3.0.redhat-60024 2.3.0.redhat-60063 org.apache.cxf.cxf-api 2.6.0.redhat-60060 2.6.0.redhat-60063 org.apache.camel.camel-saxon 2.10.0.redhat-60060 2.10.0.redhat-60063 org.apache.karaf.shell.console 2.3.0.redhat-60060 2.3.0.redhat-60063 org.apache.karaf.shell.ssh 2.3.0.redhat-60060 2.3.0.redhat-60063 org.apache.activemq.activemq-osgi 5.8.0.redhat-60060 5.8.0.redhat-60063 org.ops4j.pax.url.war; singleton:=true 1.3.6 1.3.7 org.ops4j.pax.url.mvn; singleton:=true 1.3.6 1.3.7 JBossFuse:karaf@root> java.net.MalformedURLException: Unknown protocol: mvn at java.net.URL.<init>(URL.java:619) at java.net.URL.<init>(URL.java:482) at java.net.URL.<init>(URL.java:431) at org.fusesource.patch.impl.ServiceImpl.applyChanges(ServiceImpl.java:440) at org.fusesource.patch.impl.ServiceImpl.access$000(ServiceImpl.java:70) at org.fusesource.patch.impl.ServiceImpl$1.run(ServiceImpl.java:400) Caused by: java.lang.IllegalStateException: Unknown protocol: mvn at org.apache.felix.framework.URLHandlersStreamHandlerProxy.parseURL(URLHandlersStreamHandlerProxy.java:372) at java.net.URL.<init>(URL.java:614) ... 5 more
This appears to be caused as the patching service is currently using the pax-url-mvn bundle.
At this time the patch has removed the pax-url-mvn bundle from the patch descriptor to work around this issue.
The pax-url-mvn bundle can be installed into the container as follows:
1) Add the JBoss Fuse 6.0 R1P3 patch to the container using the patch:add command
2) Update the pax-url-mvn bundle using the following command:
osgi:update 1 mvn:org.ops4j.pax.url/pax-url-mvn/1.3.7
3) Install the JBoss Fuse 6.0 R1P3 patch using the patch:install command
In a Fabric container:
After the patch has been uploaded and applied to a profile version:
1) Locate the patch-jboss-fuse-6.0.0.redhat-024-r1p3 profile in the profile version which was created
2) Locate the org.fusesource.fabric.agent.properties configuration file for this profile
3) Add the following override which will install the upgraded version of pax-url-mvn:
override.mvn\:org.ops4j.pax.url/pax-url-mvn/1.3.7=mvn\:org.ops4j.pax.url/pax-url-mvn/1.3.7
4) Migrate the container to JBoss Fuse 6.0 R1P3 patch