You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhancement Description
It's possible to use Jetty with native and GraalVM when using Jetty QuickStart. Unfortunately, there's a check at QuickStartConfiguration:99 which always fails in native, with IllegalStateException("Bad Quickstart location").
The reason is as follows: the context.getBaseResource() needs to reference a resource directory packaged within the native image. The webroot is placed into classpath resource named /webapp. Te /webapp folder resolves to URL resource:/webapp which then resolves to plain URLResource (and not a JarResource since there's no URLClassLoader and no jars in native). Plain URLResource will always return false for the isDirectory() probe, hence the exception.
It would be good if the check could be turned off optionally, for example via a context attribute.
The text was updated successfully, but these errors were encountered:
2023-03-16 13:32:47.747 [main] WARN org.eclipse.jetty.webapp.WebAppContext - Failed startup of context o.e.j.w.WebAppContext@1da6646c{/,resource:/webapp,STOPPED}{resource:/webapp}
java.lang.IllegalStateException: Bad Quickstart location
at org.eclipse.jetty.quickstart.QuickStartConfiguration.preConfigure(QuickStartConfiguration.java:95)
at org.eclipse.jetty.webapp.Configurations.preConfigure(Configurations.java:496)
at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:510)
This issue has been automatically marked as stale because it has been a
full year without activity. It will be closed if no further activity occurs.
Thank you for your contributions.
Jetty version(s)
11.0.14
Enhancement Description
It's possible to use Jetty with native and GraalVM when using Jetty QuickStart. Unfortunately, there's a check at
QuickStartConfiguration:99
which always fails in native, withIllegalStateException("Bad Quickstart location")
.The reason is as follows: the
context.getBaseResource()
needs to reference a resource directory packaged within the native image. The webroot is placed into classpath resource named/webapp
. Te/webapp
folder resolves to URLresource:/webapp
which then resolves to plainURLResource
(and not aJarResource
since there's no URLClassLoader and no jars in native). PlainURLResource
will always return false for theisDirectory()
probe, hence the exception.It would be good if the check could be turned off optionally, for example via a context attribute.
The text was updated successfully, but these errors were encountered: