Error opening zip file or JAR manifest: jrebel.jar

When setting up JRebel on my remote server (JBoss on linux), I set up the JVM arg as

-javaagent: /home/user/jrebel.jar "-Drebel.remoting_plugin = true

jrebel.jar is most definitely in this location, but the server won't start with the error:

Error opening zip file or JAR manifest: /home/user/jrebel.jar An error occurred while initializing the VM agent library init: instrument failed

So the API argument is explicitly passed to the JVM correctly, but for life I can't figure out why it can't find the jar. I've gone through every Zero Turnaround article I can find and looked at solutions that have resolved this for other people, but no luck. Any ideas?

+3


source to share


1 answer


It turned out to be a permissions issue - the JBoss user did not have permission to access the directory I had placed the jrebel.jar in.

It would be nice to have a more meaningful error like 'permissions denied'. Shows my lack of Linux knowledge, though I guess.



After the jar was moved to a directory as part of the JBoss installation + the owner of the jar was changed to user JBoss and read / write / execute permissions added, everything is fine.

+4


source







All Articles