War extender Installation with explicit maven repository URL does not work
--------------------------------------------------------------------------

                 Key: PAXWEB-153
                 URL: http://issues.ops4j.org/browse/PAXWEB-153
             Project: Pax Web
          Issue Type: Bug
          Components: War Extender
    Affects Versions: 0.6.0
         Environment: Apache ServiceMix kernel
            Reporter: Dejan Bosanac
            Assignee: Alin Dreghiciu


When I try to install a war from an explicit maven repository, such as

osgi/install 
war:mvn:https://repository.apache.org/content/repositories/snapsh...@snapshots!org.apache.activemq/activemq-web-console/5.3-SNAPSHOT/war?Webapp-Context=activemqweb

it fails with the following exception

{code}java.lang.reflect.InvocationTargetException
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:286)
        at java.net.URL.openConnection(URL.java:943)
        at 
org.ops4j.pax.url.war.internal.AbstractConnection.extractJarListFromWar(AbstractConnection.java:196)
        at 
org.ops4j.pax.url.war.internal.AbstractConnection.generateClassPathInstruction(AbstractConnection.java:156)
        at 
org.ops4j.pax.url.war.internal.AbstractConnection.getInputStream(AbstractConnection.java:109)
        at 
org.apache.felix.framework.util.SecureAction.getURLConnectionInputStream(SecureAction.java:388)
        at 
org.apache.felix.framework.cache.JarRevision.initialize(JarRevision.java:165)
        at 
org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:78)
        at 
org.apache.felix.framework.cache.JarRevision.<init>(JarRevision.java:56)
        at 
org.apache.felix.framework.cache.BundleArchive.createRevisionFromLocation(BundleArchive.java:986)
        at 
org.apache.felix.framework.cache.BundleArchive.revise(BundleArchive.java:614)
        at 
org.apache.felix.framework.cache.BundleArchive.<init>(BundleArchive.java:140)
        at 
org.apache.felix.framework.cache.BundleCache.create(BundleCache.java:158)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2045)
        at org.apache.felix.framework.Felix.installBundle(Felix.java:2005)
        at 
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:130)
        at 
org.apache.servicemix.kernel.gshell.osgi.InstallBundle.install(InstallBundle.java:65)
        at 
org.apache.servicemix.kernel.gshell.osgi.InstallBundle.doExecute(InstallBundle.java:41)
        at 
org.apache.servicemix.kernel.gshell.core.OsgiCommandSupport.execute(OsgiCommandSupport.java:48)
        at 
org.apache.geronimo.gshell.wisdom.command.CommandSupport.executeAction(CommandSupport.java:303)
        at 
org.apache.geronimo.gshell.wisdom.command.StatefulCommand.executeAction(StatefulCommand.java:94)
        at 
org.apache.geronimo.gshell.wisdom.command.CommandSupport.execute(CommandSupport.java:194)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:64)
        at 
org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:78)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at 
org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
        at 
org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at 
org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:57)
        at 
org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:40)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at 
org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at 
org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
        at 
org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
        at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy16.execute(Unknown Source)
        at 
org.apache.geronimo.gshell.wisdom.shell.CommandLineExecutorImpl.doExecute(CommandLineExecutorImpl.java:127)
        at 
org.apache.geronimo.gshell.wisdom.shell.CommandLineExecutorImpl.execute(CommandLineExecutorImpl.java:106)
        at 
org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor$1.run(ExecutingVisitor.java:208)
        at 
org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor.executePiped(ExecutingVisitor.java:231)
        at 
org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor.visit(ExecutingVisitor.java:107)
        at 
org.apache.geronimo.gshell.parser.ASTExpression.jjtAccept(ASTExpression.java:17)
        at 
org.apache.geronimo.gshell.parser.SimpleNode.childrenAccept(SimpleNode.java:61)
        at 
org.apache.geronimo.gshell.parser.visitor.ExecutingVisitor.visit(ExecutingVisitor.java:90)
        at 
org.apache.geronimo.gshell.parser.ASTCommandLine.jjtAccept(ASTCommandLine.java:17)
        at 
org.apache.geronimo.gshell.wisdom.shell.CommandLineBuilderImpl$1.execute(CommandLineBuilderImpl.java:96)
        at 
org.apache.geronimo.gshell.wisdom.shell.CommandLineExecutorImpl.execute(CommandLineExecutorImpl.java:71)
        at 
org.apache.geronimo.gshell.wisdom.shell.ShellImpl.execute(ShellImpl.java:172)
        at 
org.apache.geronimo.gshell.wisdom.shell.ShellImpl$2.execute(ShellImpl.java:208)
        at org.apache.geronimo.gshell.console.Console.work(Console.java:187)
        at org.apache.geronimo.gshell.console.Console.run(Console.java:128)
        at 
org.apache.geronimo.gshell.wisdom.shell.ShellImpl.run(ShellImpl.java:252)
        at 
org.apache.servicemix.kernel.gshell.core.ShellWrapper.run(ShellWrapper.java:81)
        at 
org.apache.servicemix.kernel.gshell.core.LocalConsole.run(LocalConsole.java:125)
        at java.lang.Thread.run(Thread.java:613)
Caused by: java.net.MalformedURLException: Invalid artifactId. Syntax 
mvn:[repository_url!]groupId/artifactId[/[version]/[type]]
        at 
org.ops4j.pax.url.mvn.internal.Parser.parseArtifactPart(Parser.java:173)
        at org.ops4j.pax.url.mvn.internal.Parser.<init>(Parser.java:144)
        at org.ops4j.pax.url.mvn.internal.Connection.<init>(Connection.java:114)
        at 
org.ops4j.pax.url.mvn.internal.Activator$1.createConection(Activator.java:59)
        at 
org.ops4j.pax.url.mvn.internal.Activator$1.createConection(Activator.java:65)
        at 
org.ops4j.pax.url.commons.handler.HandlerActivator$Handler.openConnection(HandlerActivator.java:239)
        at 
org.apache.felix.framework.URLHandlersStreamHandlerProxy.openConnection(URLHandlersStreamHandlerProxy.java:258)
        at java.net.URL.openConnection(URL.java:943)
        at 
sun.net.www.protocol.jar.JarURLConnection.<init>(JarURLConnection.java:64)
        at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:24)
        ... 64 more
{code}

It works fine without war: prefix.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to