Subsonic not finding java's jaxb on fresh Raspbian Buster in

General discussions.

Moderator: moderators

Subsonic not finding java's jaxb on fresh Raspbian Buster in

Postby glucenag » Tue Apr 14, 2020 6:59 am

I love my Subsonic install on my Raspberry Pi 3. Just installed Buster (was running Stretch but I freshly installed Buster) and would like Subsonic back! Any help appreciated :-)


**In brief:** fresh Buster install on a Raspberry Pi 3, usual Subsonic install steps followed and Subsonic throws this error in its log:
Code: Select all
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
:


**Details:** I installed Subsonic following [this][1] and in particular installed openjdk-8-jre. Since Buster comes with java 11 by default and I was getting the previously mentionned error in the log, I uninstalled all four java 11 packages (jdk, `dk-headless, jre and jre-headless that is).
Code: Select all
java -version
says java 8 is correctly installed, returning

Code: Select all
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b01-1+rpi1-b01)
OpenJDK Client VM (build 25.212-b01, mixed mode)


I believe Subsonic requires java 8. I have also been reading that java 8 is no longer supported in Buster, but as per the above I seem to do just fine ?

In any case, here is the meat: Subsonic starts and stops fine, and
Code: Select all
sudo systemctl status subsonic
is not suspicious at all, returning

Code: Select all
● subsonic.service - LSB: Subsonic daemon
   Loaded: loaded (/etc/init.d/subsonic; generated)
   Active: active (running) since Mon 2020-04-13 14:38:51 CEST; 5s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 8555 ExecStart=/etc/init.d/subsonic start (code=exited, status=0/SUCCESS)
    Tasks: 18 (limit: 2200)
   Memory: 46.2M
   CGroup: /system.slice/subsonic.service
           └─2767 java -Xmx150m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4040 -Dsubsonic.httpsPort=0 -Dsubsonic.contextPath=/ -Dsubsonic.db= -Dsubsonic.defaultMusicFolder=/var/mus

Apr 13 14:38:51 fifine systemd[1]: Starting LSB: Subsonic daemon...
Apr 13 14:38:51 fifine systemd[1]: Started LSB: Subsonic daemon.


which I believe is OK. However, at http://localhost:4040 I get:

HTTP ERROR: 503

SERVICE_UNAVAILABLE

RequestURI=/

Powered by jetty://


I thus grep'ed Subsonic's log for errors and got a bunch of

Code: Select all
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException


I googled that but nothing is too Subsonic specific. I found [this][2] which seems relevant, but I'm not sure I understand the accepted answer. It seems this is for manually running some code involving java, but in my case I only need Subsonic to work. I thus fail to understand how to apply the possible fixes for java 8 mentionned in there in my case.

**More information:**

- I did add `JAVA_HOME=/usr/lib/jvm/java-8-openjdk-armhf` to `/etc/environment`
-
Code: Select all
sudo apt list --installed | grep openjdk
returns

Code: Select all
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

openjdk-8-jdk-headless/stable,now 8u212-b01-1+rpi1 armhf [installed,automatic]
openjdk-8-jdk/stable,now 8u212-b01-1+rpi1 armhf [installed]
openjdk-8-jre-headless/stable,now 8u212-b01-1+rpi1 armhf [installed,automatic]
openjdk-8-jre/stable,now 8u212-b01-1+rpi1 armhf [installed]


-
Code: Select all
java -version
spits
Code: Select all
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b01-1+rpi1-b01)
OpenJDK Client VM (build 25.212-b01, mixed mode)



**Bottom line:** Subsonic clearly fails to work because of a java-related issue. If java 8 is indeed installed correctly (and supported!) on my Raspberry Pi 3 running Buster, then I would only need a way of adapting / understanding the fix [here][2]. Any other way of making Subsonic work would open the doors of Heaven for me, folks!


[1]: http://www.subsonic.org/pages/installation.jsp#debian
[2]: https://stackoverflow.com/questions/435 ... ption-in-j
glucenag
 
Posts: 5
Joined: Fri May 19, 2017 10:11 am

Re: Subsonic not finding java's jaxb on fresh Raspbian Buste

Postby glucenag » Wed Apr 15, 2020 7:44 am

I can't believe I am the only one who tried to install Subsonic on a RPi3 running the new Buster ? :cry: :?: :|
glucenag
 
Posts: 5
Joined: Fri May 19, 2017 10:11 am

Re: Subsonic not finding java's jaxb on fresh Raspbian Buste

Postby LRanger » Wed Apr 15, 2020 8:34 am

I'm running Subsonic on an Odroid HC2 (both are armhf as I know) with Ubuntu 18.04. Have a read through this thread http://forum.subsonic.org/forum/viewtopic.php?f=2&t=17957&start=30
LRanger
 
Posts: 48
Joined: Thu Mar 03, 2016 10:51 am

Re: Subsonic not finding java's jaxb on fresh Raspbian Buste

Postby glucenag » Wed Apr 15, 2020 2:36 pm

Hey there. Thanks for reacting but I guess this is not really the same ? I read that thread too but did not find it of any use - was there something specific you'd say I missed ?
glucenag
 
Posts: 5
Joined: Fri May 19, 2017 10:11 am

Re: Subsonic not finding java's jaxb on fresh Raspbian Buste

Postby LRanger » Thu Apr 16, 2020 5:19 am

I'm running Oracle's JVM, not OpenJDK, may be worth a try.
LRanger
 
Posts: 48
Joined: Thu Mar 03, 2016 10:51 am

Re: Subsonic not finding java's jaxb on fresh Raspbian Buste

Postby urbexophil » Thu Apr 16, 2020 8:36 am

Hi... I'm in the same situation as you .. I used a raspberry pi4... and i got the same return with my web interface .. do you find any solutions ?

Thnks for help
urbexophil
 
Posts: 1
Joined: Thu Apr 16, 2020 8:30 am

Re: Subsonic not finding java's jaxb on fresh Raspbian Buste

Postby glucenag » Thu Apr 16, 2020 5:42 pm

LRanger wrote:I'm running Oracle's JVM, not OpenJDK, may be worth a try.


Wait: are you telling me you are running Oracle's JVM as in "I'm running it *and* Subsonic works" ? If so, what machine are you on ?

EDIT: sorry, did not see you are the same person as the reply above. Thanks, I'll maybe give a go, but it seems installing Oracle's JVM in Buster is a little mess. Before diving into that I would have love to know if there is a less hacky solution.

@urbexophil, no, I haven't found a solution yet. Be sure I'll post it here if I do.
glucenag
 
Posts: 5
Joined: Fri May 19, 2017 10:11 am

Re: Subsonic not finding java's jaxb on fresh Raspbian Buste

Postby nthali » Sat May 22, 2021 10:07 pm

responding to this a full year and more after your original post. curious if you found a solution.
i recently installed buster on my pi 3 and got the same 503 error.
but i had also bought a pi 4 and was planning on moving subsonic to the 4, so didn't bother with the 503 error.
to complicate things, i chose to install the experimental 64-bit buster os on my pi 4, along with jdk 11.
installed and ran subsonic and got the "jaxb" issue. being a java developer, i painstakingly downloaded and copied required jars to the subsonic WEB-INF/lib directory as i got new NoClassDefFoundErrors. ultimately subsonic started without any errors, but when i went to http://localhost:4040, it threw a whole host of critical errors 'cannot resolve java.lang.Class' and JasperExceptions, which tells me subsonic isn't going to accept my franken-install with manual jars copied in.
not sure what to do at this point. search for an alternative to subsonic? bothers me that jdk 8 is maybe a decade old now and subsonic hasn't upgraded itself to the newer jdk/jre versions.
nthali
 
Posts: 5
Joined: Wed May 20, 2020 6:21 pm


Return to General

Who is online

Users browsing this forum: No registered users and 10 guests