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

java destination: missing syslog-ng-core.jar #594

Closed
faxm0dem opened this issue Jul 28, 2015 · 2 comments
Closed

java destination: missing syslog-ng-core.jar #594

faxm0dem opened this issue Jul 28, 2015 · 2 comments

Comments

@faxm0dem
Copy link
Contributor

make install fails to copy syslog-ng-core.jar to the target directory __libdir/syslog-ng
this leads to the following at runtime:

[2015-07-28T09:50:40.012382] Can't find class; class_name='org/syslog_ng/SyslogNgClassLoader'
**
ERROR:../modules/java/native/java_machine.c:126:java_machine_get_class_loader: assertion failed: (self->loader)
Aborted (core dumped)

moved from #588 (comment)

@ihrwein ihrwein added the java label Jul 28, 2015
@lbudai
Copy link
Collaborator

lbudai commented Jul 28, 2015

I think the original intention was to install only the module jars(syslog-ng-core.jar is not a module) into java-modules directory (modules = elasticsearch, kafka, hdfs). But you are right: this situation is confusing.

We should install all jar files into one directory.

@faxm0dem
Copy link
Contributor Author

WFM 👍 thanks!

ihrwein pushed a commit to ihrwein/syslog-ng that referenced this issue Aug 3, 2015
Syslog-ng's classloader didn't find syslog-ng-core.jar because it only
searched in lib/syslog-ng/java-modules. This commit installs all *.jar files
under lib/syslog-ng/java-modules so the classloader will find them.

Fixes syslog-ng#594

Signed-off-by: Tibor Benke <tibor.benke@balabit.com>
@ihrwein ihrwein self-assigned this Aug 3, 2015
@ihrwein ihrwein added in progress and removed ready labels Aug 3, 2015
@lbudai lbudai removed the in progress label Aug 4, 2015
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

3 participants