Skip to content
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

Cryptacular not working together with Apache Commons Daemon #34

Open
apusgrz opened this issue Oct 20, 2016 · 0 comments
Open

Cryptacular not working together with Apache Commons Daemon #34

apusgrz opened this issue Oct 20, 2016 · 0 comments

Comments

@apusgrz
Copy link

apusgrz commented Oct 20, 2016

Testing with Java 7, Cryptacular 1.1.1, Apache Commons Daemon 1.0.15. Building with Gradle 2.14.1.

Without Cryptacular the application starts up as expected. But if I add the dependency to my application and create a fresh build of the project, the daemon loader cannot be found. No code changes required to reproduce the error.

Successful start-up:

jsvclog[2463] err: JSVC INFO: ready for usage on /tmp/application_logpipe2.
jsvclog[2463] err: JSVC Switching umask back to 022 from 077
jsvclog[2463] err: JSVC Using default JVM in /usr/lib/jvm/jre/jre/lib/amd64/server/libjvm.so
jsvclog[2463] err: JSVC Attemtping to load library /usr/lib/jvm/jre/jre/lib/amd64/server/libjvm.so
jsvclog[2463] err: JSVC JVM library /usr/lib/jvm/jre/jre/lib/amd64/server/libjvm.so loaded
jsvclog[2463] err: JSVC JVM library entry point found (0x60AD8B40)
jsvclog[2463] err: JSVC +-- DUMPING JAVA VM CREATION ARGUMENTS -----------------
jsvclog[2463] err: JSVC | Version:                       0x010004
jsvclog[2463] err: JSVC | Ignore Unrecognized Arguments: False
jsvclog[2463] err: JSVC | Extra options:                 2
jsvclog[2463] err: JSVC |   "-Xmx64m" (0x00000000)
jsvclog[2463] err: JSVC |   "-Djava.class.path=/usr/lib64/cluster-services/application/conf/:/usr/lib64/cluster-services/application/lib/application.jar" (0x00000000)
jsvclog[2463] err: JSVC +-------------------------------------------------------
jsvclog[2463] err: JSVC | Internal options:              4
jsvclog[2463] err: JSVC |   "-Dcommons.daemon.process.id=2828" (0x00000000)
jsvclog[2463] err: JSVC |   "-Dcommons.daemon.process.parent=2827" (0x00000000)
jsvclog[2463] err: JSVC |   "-Dcommons.daemon.version=1.0.7" (0x00000000)
jsvclog[2463] err: JSVC |   "abort" (0x00405be0)
jsvclog[2463] err: JSVC +-------------------------------------------------------
jsvclog[2463] err: JSVC Java VM created successfully
jsvclog[2463] err: JSVC Class org/apache/commons/daemon/support/DaemonLoader found
jsvclog[2463] err: JSVC Native methods registered
jsvclog[2463] err: JSVC java_init done
jsvclog[2463] err: JSVC Daemon loading...
jsvclog[2463] err: JSVC Daemon loaded successfully
jsvclog[2463] err: JSVC java_load done

Unsuccessful start-up:

jsvclog[17956] err: JSVC Switching umask back to 022 from 077
jsvclog[17956] err: JSVC Using default JVM in /usr/lib/jvm/jre/jre/lib/amd64/server/libjvm.so
jsvclog[17956] err: JSVC Attemtping to load library /usr/lib/jvm/jre/jre/lib/amd64/server/libjvm.so
jsvclog[17956] err: JSVC JVM library /usr/lib/jvm/jre/jre/lib/amd64/server/libjvm.so loaded
jsvclog[17956] err: JSVC JVM library entry point found (0x07BBDB40)
jsvclog[17956] err: JSVC +-- DUMPING JAVA VM CREATION ARGUMENTS -----------------
jsvclog[17956] err: JSVC | Version:                       0x010004
jsvclog[17956] err: JSVC | Ignore Unrecognized Arguments: False
jsvclog[17956] err: JSVC | Extra options:                 2
jsvclog[17956] err: JSVC |   "-Xmx64m" (0x00000000)
jsvclog[17956] err: JSVC |   "-Djava.class.path=/usr/lib64/cluster-services/application/conf/:/usr/lib64/cluster-services/application/lib/application.jar" (0x00000000)
jsvclog[17956] err: JSVC +-------------------------------------------------------
jsvclog[17956] err: JSVC | Internal options:              4
jsvclog[17956] err: JSVC |   "-Dcommons.daemon.process.id=18083" (0x00000000)
jsvclog[17956] err: JSVC |   "-Dcommons.daemon.process.parent=18082" (0x00000000)
jsvclog[17956] err: JSVC |   "-Dcommons.daemon.version=1.0.7" (0x00000000)
jsvclog[17956] err: JSVC |   "abort" (0x00405be0)
jsvclog[17956] err: JSVC +-------------------------------------------------------
jsvclog[17956] err: JSVC Java VM created successfully
jsvclog[17956] err: JSVC Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader
jsvclog[17956] err: JSVC java_init failed
jsvclog[17956] err: JSVC Service exit with a return value of 1

All dependencies are within the application.jar file.

Let me know if you need any more information!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant