dm Server
  1. dm Server
  2. DMS-948

dm Server unable to support plan files with artifacts from a remote repository

    Details

    • Type: Defect Defect
    • Status: Done Done
    • Priority: Major Major
    • Resolution: Complete
    • Affects Version/s: 2.0.0.M2
    • Fix Version/s: Sprint 6, 2.0.0.M3, 2.0.0.RELEASE
    • Component/s: None
    • Labels:
      None

      Description

      Here is my setup: a dm server hosting a repository will all my bundles in it; a seperate dm server which contains no bundles other than the ones out-of-box, but is configured to use the remote hosted repository; and a plan file with an artifact reference to one of the bundles in the hosted repository. Both dm server's are version 2.0.0.M2.

      If I copy the plan file to the second (in the above list) dm server's pickup directory I get the following error:

      Exception:
      java.lang.IllegalArgumentException: URI scheme is not "file"
      at java.io.File.<init>(File.java:366)
      at com.springsource.util.io.PathReference.<init>(Path Reference.java:56)
      at com.springsource.kernel.deployer.core.internal.Dep loyArea.copyToDeployArea(DeployArea.java:110)
      at com.springsource.kernel.deployer.core.module.Stand ardModuleData.<init>(StandardModuleData.java:91)
      at com.springsource.kernel.deployer.core.module.Abstr actModule.<init>(AbstractModule.java:87)
      at com.springsource.kernel.deployer.core.module.Stand ardModule.<init>(StandardModule.java:153)
      at com.springsource.kernel.deployer.core.module.Stand ardModuleFactory.create(StandardModuleFactory.java :99)
      at com.springsource.kernel.deployer.app.PlanApplicati on.createModules(PlanApplication.java:113)
      at com.springsource.kernel.deployer.app.PlanApplicati on.<init>(PlanApplication.java:91)
      at com.springsource.kernel.deployer.app.PlanApplicati onFactory.create(PlanApplicationFactory.java:109)
      at com.springsource.kernel.deployer.core.internal.Sta ndardApplicationDeployer.createDeployableArtefact( StandardApplicationDeployer.java:557)
      at com.springsource.kernel.deployer.core.internal.Sta ndardApplicationDeployer.deploy(StandardApplicatio nDeployer.java:391)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:307)
      at org.springframework.osgi.service.importer.support. internal.aop.ServiceInvoker.doInvoke(ServiceInvoke r.java:58)
      at org.springframework.osgi.service.importer.support. internal.aop.ServiceInvoker.invoke(ServiceInvoker. java:62)
      at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
      at org.springframework.aop.support.DelegatingIntroduc tionInterceptor.doProceed(DelegatingIntroductionIn terceptor.java:131)
      at org.springframework.aop.support.DelegatingIntroduc tionInterceptor.invoke(DelegatingIntroductionInter ceptor.java:119)
      at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
      at org.springframework.osgi.service.importer.support. LocalBundleContextAdvice.invoke(LocalBundleContext Advice.java:59)
      at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
      at org.springframework.aop.support.DelegatingIntroduc tionInterceptor.doProceed(DelegatingIntroductionIn terceptor.java:131)
      at org.springframework.aop.support.DelegatingIntroduc tionInterceptor.invoke(DelegatingIntroductionInter ceptor.java:119)
      at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
      at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:202)
      at $Proxy26.deploy(Unknown Source)
      at com.springsource.kernel.deployer.hot.HotDeployment FileSystemListener.deploy(HotDeploymentFileSystemL istener.java:191)
      at com.springsource.kernel.deployer.hot.HotDeployment FileSystemListener.onChange(HotDeploymentFileSyste mListener.java:88)
      at com.springsource.util.io.FileSystemChecker.notifyL isteners(FileSystemChecker.java:182)
      at com.springsource.util.io.FileSystemChecker.check(F ileSystemChecker.java:145)
      at com.springsource.kernel.io.fs.WatchTask.run(WatchT ask.java:67)
      at java.lang.Thread.run(Thread.java:619)

      Here is the plan file:

      <?xml version="1.0" encoding="UTF-8"?>
      <plan name="service" version="2.0.0" scoped="true" atomic="true"
      xmlns="http://www.springsource.org/schema/dm-server/plan"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.springsource.org/schema/dm-server/plan
      http://www.springsource.org/schema/dm-server/plan/springsource-dm-server-plan.xsd">
      <artifact type="bundle" name="dao.hibernate" version="1.0.0"/>
      <artifact type="bundle" name="service.impl" version="1.0.0"/>
      </plan>

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Andy Wilkinson
            Reporter:
            Kieran Nichol
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1.5h Original Estimate - 1.5h
              1.5h
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 3.5h
              3.5h