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

one of the gradle distributions does not run #791

Closed
karussell opened this issue Apr 17, 2024 · 3 comments · Fixed by #792
Closed

one of the gradle distributions does not run #791

karussell opened this issue Apr 17, 2024 · 3 comments · Fixed by #792

Comments

@karussell
Copy link
Collaborator

karussell commented Apr 17, 2024

I tried the photon-version.zip distribution but it says:

./bin/photon
Exception in thread "main" java.lang.IllegalStateException: failed to load plugin - Plugin information:
Name: lang-painless
Description: An easy, safe and fast scripting language for Elasticsearch
Version: 5.6.16
Native Controller: false
 * Classname: org.elasticsearch.painless.PainlessPlugin due to jar hell
	at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:380)
	at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:141)
	at org.elasticsearch.node.Node.<init>(Node.java:313)
	at de.komoot.photon.elasticsearch.Server$MyNode.<init>(Server.java:68)
	at de.komoot.photon.elasticsearch.Server.start(Server.java:110)
	at de.komoot.photon.App.main(App.java:41)
Caused by: java.lang.IllegalStateException: jar hell!
class: META-INF.versions.9.module-info
jar1: /home/user/photon/build/distributions/photon-0.5.0/lib/commons-pool2-2.12.0.jar
jar2: /home/user/photon/build/distributions/photon-0.5.0/lib/json-20240303.jar
	at org.elasticsearch.bootstrap.JarHell.checkClass(JarHell.java:282)
	at org.elasticsearch.bootstrap.JarHell.checkJarHell(JarHell.java:192)
	at org.elasticsearch.plugins.PluginsService.loadBundles(PluginsService.java:378)
	... 5 more

The photon-shadow-version.zip works. Should we just remove the other distribution or rename them or why are there two?

@karussell karussell changed the title gradle build does not run one of the gradle distributions does not run Apr 17, 2024
@lonvia
Copy link
Collaborator

lonvia commented Apr 17, 2024

Which jar do you try to run exactly? You should be using build/libs/photon-0.5.0.jar. There shouldn't be any files with shadow in their name anymore.

This really reminds me to update the README.

@lonvia
Copy link
Collaborator

lonvia commented Apr 17, 2024

Oh, found the distributions subdirectory. I will have to read up, who creates that.

@karussell
Copy link
Collaborator Author

You should be using build/libs/photon-0.5.0.jar

Ah, ok 👍

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

Successfully merging a pull request may close this issue.

2 participants