-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instantiating JavaBackend inside a Weblogic 10 application fails #808
Comments
I forgot to mention the JVM:
|
Looking at Spring code, they actually handle zip protocol URLs: /**
* Determine whether the given URL points to a resource in a jar file,
* that is, has protocol "jar", "zip", "vfszip" or "wsjar".
* @param url the URL to check
* @return whether the URL has been identified as a JAR URL
*/
public static boolean isJarURL(URL url) {
String protocol = url.getProtocol();
return (URL_PROTOCOL_JAR.equals(protocol) || URL_PROTOCOL_ZIP.equals(protocol) ||
URL_PROTOCOL_VFSZIP.equals(protocol) || URL_PROTOCOL_WSJAR.equals(protocol));
} |
Closed
ruifigueira
added a commit
to ruifigueira/cucumber-jvm
that referenced
this issue
Dec 25, 2014
…parator, it is a jar-contained resource (fixes cucumber#808)
dkowis
added a commit
that referenced
this issue
Jan 8, 2015
Handles zip and wsjar protocols properly (fixes #808)
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm experiencing the following error when I try to instanciate a
JavaBackend
inside a webapp deployed in Weblogic 10:After some debugging, I found out that the
ClassLoader
willl return classpath resources withzip
protocol instead ofjar
, so when we run the following code there we'll getProtocol=zip
:This will then affect
ZipThenFileResourceIteratorFallback
because it won't use aZipResourceIteratorFactory
to scan those resources.ZipResourceIteratorFactory.isFactoryFor
method is defined as:The text was updated successfully, but these errors were encountered: