Joakim,
Thank you for replying.
I tried that and it works for the first context, but for some
reason for the second one I get the following error:
2017-07-13 18:05:34.217:WARN:oejw.WebAppContext:main: Failed
startup of context
o.e.j.w.WebAppContext@62d363ab{/,file:///E:/Workspace/git/LuceeDebug/webapps/LDEV-1369/context2/,UNAVAILABLE,localhost2.com}{E:\Workspace\git\LuceeDebug\webapps\LDEV-1369\context2}
java.lang.IllegalArgumentException: name
at
sun.misc.URLClassPath$Loader.findResource(URLClassPath.java:693)
at
sun.misc.URLClassPath.findResource(URLClassPath.java:215)
at
java.net.URLClassLoader$2.run(URLClassLoader.java:569)
at
java.net.URLClassLoader$2.run(URLClassLoader.java:567)
at java.security.AccessController.doPrivileged(Native
Method)
at
java.net.URLClassLoader.findResource(URLClassLoader.java:566)
at
java.lang.ClassLoader.getResource(ClassLoader.java:1096)
at
org.eclipse.jetty.util.resource.Resource.newSystemResource(Resource.java:242)
at
org.eclipse.jetty.webapp.WebXmlConfiguration.preConfigure(WebXmlConfiguration.java:50)
at
org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:506)
at
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:544)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
at
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:113)
at
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
at
org.eclipse.jetty.server.Server.start(Server.java:452)
at
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
at
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
at
org.eclipse.jetty.server.Server.doStart(Server.java:419)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
Any thoughts?
Thanks again,
On 7/13/2017 3:50 PM, Joakim Erdfelt
wrote:
Drop the following ...
webapp.setResourceBase(resourceBase);
webapp.setDescriptor(resourceBase + "/WEB-INF/web.xml");
And replace it with ...
webapp.setWar(resourceBase);
That will address all 3 issues.
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users