Assuming you've installed Subsonic to a Tomcat server, to get it running on Java11 or newer
Edit the file subsonic/META-INF/maven/net.sourceforge.subsonic/subsonic-main/pom.xml and add the following within <dependencies> </dependencies>
- Code: Select all
<!-- Java 11 fixes -->
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>javax.jws</groupId>
<artifactId>javax.jws-api</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>javax.xml.soap</groupId>
<artifactId>javax.xml.soap-api</artifactId>
<version>1.3.8</version>
</dependency>
<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.1-1</version>
</dependency>
Download the following and copy them to subsonic/WEB-INF/lib/
- https://repo1.maven.org/maven2/javax/ac ... -1.1.1.jar
- https://repo1.maven.org/maven2/javax/jw ... pi-1.1.jar
- https://repo1.maven.org/maven2/javax/xm ... pi-2.1.jar
- https://repo1.maven.org/maven2/javax/xm ... -1.3.8.jar
- https://repo1.maven.org/maven2/javax/xm ... -2.1-1.jar
I've successfully run Subsonic with Java11 and Java16 by doing this.