-
Notifications
You must be signed in to change notification settings - Fork 38
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
[JENKINS-48347] - Failed to locate JAR file by URL zip: #46
Comments
Hmm... There is no problem to support Please also create a bug in https://issues.jenkins-ci.org/ |
Sorry - the OS is Windows Server 2008 R2. |
Jenkins bug filed - |
ok, I believe it is the WebLogic classloader - I found a few threads discussing how it is very different from just about every other vendor and this zip: protocol for a jar file URL is one of the differences. There is also no file: in the file portion of the URL. I cloned the master branch and made a couple of changes to Native.java then re-built the library and included it in my Jenkins war file and it seems to work OK. I could do a pull request with the changes so you can see them if you'd like but I am new to GIT and am unsure if I have done things correctly. I committed to my local clone of master, is that appropriate or should I have created a local branch first? I could also just paste the changes I made here in a comment if you feel better about that. Let me know. Thanks! |
I think I have enough info to fix the issue though I doubt I will be able to reproduce it in Jenkins. |
ok, for reference, here is the getJarFile() method as I have changed it: private static File getJarFile(URL res) {
} |
@bcastellucci yah, feel free to just create a pull request (bonus points for autotests, but it is likely not required in this case) |
ok, I submitted a pull request. As I said, I am new to GitHub so I am not sure if I did things right, especially when it comes to associating the commit/pull request to this issue. I forked the repository, created my own branch (zip-jar-url), committed to it, pushed it then created a pull request for that back to the master. I hope it's right... |
[Issue #46] - Modified to accommodate Weblogic classloader JAR file URL style
I released it in 1.26. My apologies for the delay. It took a while for me to spin the release due to the Windows environment issues. I hope to automate releases at some point like I did for WinSW Jenkins PR: jenkinsci/jenkins#3399 |
Greetings.
I am getting an exception from winp (v1.25, bundled with Jenkins LTS 2.73.3), specifically from Native.java, line 144.
I believe it is coming from the getJarFile() method. There is an if-statement on line 166 that returns null if the url doesn't start with jar: or wsjar:.
In my case the url starts with zip: so it is failing the test & coming up null.
Does this need a code fix or is there something I can do on my end to workaround the issue?
Dec 01, 2017 3:58:35 PM org.jvnet.winp.Native loadByUrl
WARNING: Failed to load DLL from static location
java.lang.RuntimeException: Failed to locate JAR file by URL zip:C:/[[[path redacted]]]/servers/AdminServer/tmp/_WL_user/Jenkins_LTS_2.73.3/frocxk/war/WEB-INF/lib/winp-1.25.jar!/winp.x64.dll
at org.jvnet.winp.Native.extractToStaticLocation(Native.java:144)
at org.jvnet.winp.Native.loadByUrl(Native.java:129)
at org.jvnet.winp.Native.load(Native.java:99)
at org.jvnet.winp.Native.(Native.java:70)
at org.jvnet.winp.WinProcess.enableDebugPrivilege(WinProcess.java:226)
at hudson.util.ProcessTree$Windows.(ProcessTree.java:555)
at hudson.util.ProcessTree.get(ProcessTree.java:350)
at hudson.Launcher$LocalLauncher.kill(Launcher.java:949)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:502)
at hudson.model.Run.execute(Run.java:1737)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:421)
The text was updated successfully, but these errors were encountered: