Skip to content

SPONGEVANILLA is broken #1094

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

Closed
vorburger opened this issue Oct 29, 2021 · 3 comments
Closed

SPONGEVANILLA is broken #1094

vorburger opened this issue Oct 29, 2021 · 3 comments
Labels

Comments

@vorburger
Copy link
Contributor

Describe the problem

It looks like the SPONGEVANILLA integration some got broken, I'll add the full log below, but TL;DR:

$ docker run -p 25565:25565 -e EULA=TRUE -e TYPE=SPONGEVANILLA --rm --name mc itzg/minecraft-server
(...)
Exception in thread "main" java.lang.NoClassDefFoundError: net/minecraft/launchwrapper/Launch
        at org.spongepowered.server.launch.VanillaServerMain.main(VanillaServerMain.java:126)
        at org.spongepowered.server.launch.VersionCheckingMain.main(VersionCheckingMain.java:38)
Caused by: java.lang.ClassNotFoundException: net.minecraft.launchwrapper.Launch
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
        ... 2 more

Container definition

No response

Container logs

$ docker run -p 25565:25565 -e EULA=TRUE -e TYPE=SPONGEVANILLA --rm --name mc itzg/minecraft-server
[init] Running as uid=1000 gid=1000 with /data as 'drwxrwxr-x. 2 1000 1000 4096 Oct 28 14:12 /data'
[init] Resolved version given LATEST into 1.17.1
[init] Resolving type given SPONGEVANILLA
[init] Choosing branch for Sponge
[init] Choosing Version for Sponge
[init] Downloading spongevanilla-1.12.2-7.3.1-RC391.jar ...
[init] Creating server.properties in /data/server.properties
[init] Disabling whitelist
[init] Setting whitelist to 'false' in /data/server.properties
[init] Setting white-list to 'false' in /data/server.properties
[init] Adding server-name with 'Dedicated Server' in /data/server.properties
[init] Setting server-port to '25565' in /data/server.properties
[init] Setting motd to 'A Spongevanilla Minecraft Server powered by Docker' in /data/server.properties
[init] Setting enable-rcon to 'true' in /data/server.properties
[init] Setting rcon.password to 'minecraft' in /data/server.properties
[init] Setting rcon.port to '25575' in /data/server.properties
[init] Setting level-name to 'world' in /data/server.properties
[init] Setting online-mode to 'true' in /data/server.properties
[init] Checking for JSON files.
[init] Setting initial memory to 1G and max to 1G
[init] Starting the Minecraft server...
Downloading the versions manifest...
Downloading minecraft_server.1.12.2.jar... This can take a while.
https://launcher.mojang.com/v1/objects/886945bfb2b978778c3a0288fd7fab09d315b25f/server.jar
Successfully downloaded minecraft_server.1.12.2.jar and verified checksum!
Downloading launchwrapper-1.12.jar... This can take a while.
https://libraries.minecraft.net/net/minecraft/launchwrapper/1.12/launchwrapper-1.12.jar
Successfully downloaded launchwrapper-1.12.jar and verified checksum!
Exception in thread "main" java.lang.NoClassDefFoundError: net/minecraft/launchwrapper/Launch
        at org.spongepowered.server.launch.VanillaServerMain.main(VanillaServerMain.java:126)
        at org.spongepowered.server.launch.VersionCheckingMain.main(VersionCheckingMain.java:38)
Caused by: java.lang.ClassNotFoundException: net.minecraft.launchwrapper.Launch
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:636)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:182)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
        ... 2 more
2021-10-29T17:08:26.985Z        WARN    mc-server-runner        sub-process failed      {"exitCode": 1}
2021-10-29T17:08:26.990Z        INFO    mc-server-runner        Done
@vorburger
Copy link
Contributor Author

This is blocking me in OASIS-learn-study/minecraft-storeys-maker#267 for https://www.learn.study...

... I'll see if I can fix it myself, and propose a PR if I do. Unless anyone else reading this gets to it before me.

@itzg
Copy link
Owner

itzg commented Oct 29, 2021

You need to use one of the Java 8 based images for Minecraft versions less than 1.17:

https://github.com/itzg/docker-minecraft-server#running-minecraft-server-on-different-java-version

@vorburger
Copy link
Contributor Author

Gotcha, right... podman run -p 25565:25565 -e EULA=TRUE -e TYPE=SPONGEVANILLA --rm --name mc itzg/minecraft-server:java8 works indeed! Perhaps #1095 helps to clarify for future users? PS: Thanks for maintaining this project!

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

No branches or pull requests

2 participants