-
Notifications
You must be signed in to change notification settings - Fork 63
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
Java action that depends on packages jar file fails #31
Comments
Did you try locating the libraries at the root path instead of under /lib? Will have a look at your zip file. |
When I check the jar file, here's what's inside, the additional jar are in the
|
@rabbah Are dependencies packaged into /lib folder even supposed to work. This is not really a Java standard and I do not see anything to enable this on the runtime. @brunogirin Do your functions work OK when you package them as one jar? |
@gorkem I didn't try that but will do when I have the time. That said, it raises a question of how to package dependencies that a particular Java action relies on. |
I have a set of Java actions packaged in a jar file that I deploy on Bluemix. All Java code is packaged in a jar file with a
lib
directory that contains dependant jar files, in particular the Cloudant client. Simple actions that do not use any dependant libraries work fine. Actions that use the Cloudant library fail with aNoClassDefFoundError
.Environment details:
Steps to reproduce the issue:
wskdeploy
)Provide the expected results and outputs:
Result invoking
example/greeting
:Provide the actual results and outputs:
Additional information you deem important:
See attached files that include:
wskdeploy
manifestgradle
build fileHello.java
that works andCloudantTest.java
that doesn'tcode.zip
The text was updated successfully, but these errors were encountered: