java.lang.IllegalArgumentException: jar:file:/C:/Program Files/testapp/plugins/web.fragment_1.0.0.1.jar!/ is not an existing directory.

GitHub | lkoniecki | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    IllegalArgumentException when resolving context for OSGi web fragment

    GitHub | 7 months ago | lkoniecki
    java.lang.IllegalArgumentException: jar:file:/C:/Program Files/testapp/plugins/web.fragment_1.0.0.1.jar!/ is not an existing directory.

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      jar:file:/C:/Program Files/testapp/plugins/web.fragment_1.0.0.1.jar!/ is not an existing directory.

      at org.eclipse.jetty.util.resource.ResourceCollection.<init>()
    2. Jetty
      WebInfConfiguration.configure
      1. org.eclipse.jetty.util.resource.ResourceCollection.<init>(ResourceCollection.java:88)[org.eclipse.jetty.util_9.3.10.v20160621.jar:9.3.10.v20160621]
      2. org.eclipse.jetty.webapp.WebInfConfiguration.configure(WebInfConfiguration.java:185)[org.eclipse.jetty.webapp_9.3.10.v20160621.jar:9.3.10.v20160621]
      2 frames
    3. org.eclipse.jetty
      OSGiWebInfConfiguration.configure
      1. org.eclipse.jetty.osgi.boot.OSGiWebInfConfiguration.configure(OSGiWebInfConfiguration.java:252)[org.eclipse.jetty.osgi.boot_9.3.10.v20160621.jar:9.3.10.v20160621]
      1 frame
    4. Jetty
      DeploymentManager.addApp
      1. org.eclipse.jetty.webapp.WebAppContext.configure(WebAppContext.java:494)[org.eclipse.jetty.webapp_9.3.10.v20160621.jar:9.3.10.v20160621]
      2. org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1361)[org.eclipse.jetty.webapp_9.3.10.v20160621.jar:9.3.10.v20160621]
      3. org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:778)[org.eclipse.jetty.server_9.3.10.v20160621.jar:9.3.10.v20160621]
      4. org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:262)[org.eclipse.jetty.servlet_9.3.10.v20160621.jar:9.3.10.v20160621]
      5. org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:520)[org.eclipse.jetty.webapp_9.3.10.v20160621.jar:9.3.10.v20160621]
      6. org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)[org.eclipse.jetty.util_9.3.10.v20160621.jar:9.3.10.v20160621]
      7. org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:41)[org.eclipse.jetty.deploy_9.3.10.v20160621.jar:9.3.10.v20160621]
      8. org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:188)[org.eclipse.jetty.deploy_9.3.10.v20160621.jar:9.3.10.v20160621]
      9. org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:499)[org.eclipse.jetty.deploy_9.3.10.v20160621.jar:9.3.10.v20160621]
      10. org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:147)[org.eclipse.jetty.deploy_9.3.10.v20160621.jar:9.3.10.v20160621]
      10 frames
    5. org.eclipse.jetty
      BundleWatcher.addingBundle
      1. org.eclipse.jetty.osgi.boot.BundleWebAppProvider.bundleAdded(BundleWebAppProvider.java:147)[org.eclipse.jetty.osgi.boot_9.3.10.v20160621.jar:9.3.10.v20160621]
      2. org.eclipse.jetty.osgi.boot.internal.webapp.BundleWatcher.register(BundleWatcher.java:269)[org.eclipse.jetty.osgi.boot_9.3.10.v20160621.jar:9.3.10.v20160621]
      3. org.eclipse.jetty.osgi.boot.internal.webapp.BundleWatcher.addingBundle(BundleWatcher.java:179)[org.eclipse.jetty.osgi.boot_9.3.10.v20160621.jar:9.3.10.v20160621]
      3 frames
    6. OSGi
      BundleTracker$Tracked.bundleChanged
      1. org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:469)[org.eclipse.osgi_3.10.101.v20150820-1432.jar:na]
      2. org.osgi.util.tracker.BundleTracker$Tracked.customizerAdding(BundleTracker.java:1)[org.eclipse.osgi_3.10.101.v20150820-1432.jar:na]
      3. org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[org.eclipse.osgi_3.10.101.v20150820-1432.jar:na]
      4. org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)[org.eclipse.osgi_3.10.101.v20150820-1432.jar:na]
      5. org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:444)[org.eclipse.osgi_3.10.101.v20150820-1432.jar:na]
      5 frames
    7. Eclipse OSGi
      EquinoxBundle.start
      1. org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:902)[org.eclipse.osgi_3.10.101.v20150820-1432.jar:na]
      2. org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)[org.eclipse.osgi_3.10.101.v20150820-1432.jar:na]
      3. org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)[org.eclipse.osgi_3.10.101.v20150820-1432.jar:na]
      4. org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:165)[org.eclipse.osgi_3.10.101.v20150820-1432.jar:na]
      5. org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:75)[org.eclipse.osgi_3.10.101.v20150820-1432.jar:na]
      6. org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:67)[org.eclipse.osgi_3.10.101.v20150820-1432.jar:na]
      7. org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:102)[org.eclipse.osgi_3.10.101.v20150820-1432.jar:na]
      8. org.eclipse.osgi.container.Module.publishEvent(Module.java:466)[org.eclipse.osgi_3.10.101.v20150820-1432.jar:na]
      9. org.eclipse.osgi.container.Module.start(Module.java:457)[org.eclipse.osgi_3.10.101.v20150820-1432.jar:na]
      10. org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:392)[org.eclipse.osgi_3.10.101.v20150820-1432.jar:na]
      11. org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:411)[org.eclipse.osgi_3.10.101.v20150820-1432.jar:na]
      11 frames