Java Version Connundrum

Madsonic Mashup Mod is a fork of the Subsonic 4.7 Server Build 3090 with some Subsonic Data schema modifications!

Moderator: moderators

Java Version Connundrum

Postby bushman4 » Fri Nov 30, 2012 2:10 pm

So last night I had a period of time where no one was on my server, so I decided that it was finally time to bite the bullet and try out the new beta build of Madsonic.

FYI, I currently run the stock subsonic war version, deployed under Tomcat 6 on Windows Home Server.

I backed up my settings directory, stopped the service, deleted the work and webapp\subsonic directory and dropped the latest madsonic war file in.

When I started Tomcat, I got the following in the stderr log:
Code: Select all
java.lang.UnsupportedClassVersionError: net/sourceforge/subsonic/filter/BootstrapVerificationFilter : Unsupported major.minor version 51.0 (unable to load class net.sourceforge.subsonic.filter.BootstrapVerificationFilter)


Which some quick google searching said that I was behind on my java revisions and needed to update.

That is correct... I am running Java Version 6 update 5 (build 1.6.0_35-b10)

But IIRC, the last time I tried to update to the latest Java version I found that Tomcat 6 does not run under Java 7, so I had to roll back to Java 6.

Does that all sound like your experiences?

In which case, what version of Tomcat is Madsonic designed to run under? Is it Java 7/Tomcat 7/Madsonic?

It just makes it difficult for me to "evaluate" and fall back if something goes wrong... if I have to update all three in order to give my users a test drive.

Or am I missing something?

(I'll be honest... I could figure this all out by trial and error myself, but I don't want to take the server offline for longer than I have to)

Thanks,

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 874
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: Java Version Connundrum

Postby hairlesshobo » Fri Nov 30, 2012 2:15 pm

If I remember correctly, can't you run two copies of Java on the same machine? If so, would it be possible to install a standalone copy of Madsonic on a different port for evaluation purposes and if you like it, go through with upgrading tomcat? Or will it not work like this? Just an idea.

-Steve
hairlesshobo
 
Posts: 54
Joined: Tue Feb 15, 2011 4:34 pm

Re: Java Version Connundrum

Postby GJ51 » Fri Nov 30, 2012 6:41 pm

I run the latest Madsonic war on Windows using the latest version of Java and the most recent version of Tomcat 6.

Version 4.8.beta2 (build 3280) – November 29, 2012 – (Moded by MadEvil)
Server Apache Tomcat/6.0.35, java 1.7.0_05, Windows Server 2008 (102.6 MB / 212.6 MB)

It does get a bit confusing. Java 7 OK - Tomcat 7 NO - use Tomcat 6.

@Glenn - LOL - I can't imagine there was really a time when no one was on your server. :wink:
Last edited by GJ51 on Fri Nov 30, 2012 6:51 pm, edited 1 time in total.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Java Version Connundrum

Postby bushman4 » Fri Nov 30, 2012 6:46 pm

Strange... when I tried to update my java version last time, Tomcat stopped working and I had to roll back. I swear that I found something online that said that Tomcat 6 required Java 6.

I will try again this weekend. Thanks for verifying Gary.

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 874
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: Java Version Connundrum

Postby bushman4 » Fri Nov 30, 2012 7:00 pm

I knew it:

http://stackoverflow.com/questions/9592 ... and-java-7

But this may be misleading... I'm sure I never checked the "JAVA_HOME" variable.

Will try tonight,

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 874
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: Java Version Connundrum

Postby GJ51 » Fri Nov 30, 2012 7:25 pm

I seem to remember that there were some problems running Subsonic under the early Java 7 releases, but whether it was something changed in SS or something fixed in a later ver of Java 7, it's been running fine for a while now.

I keep all my servers up to date with the latest Java ver and I'm not having any issues with either the war or the windows setup.exe with either stock SS, Madsonic, or Music Cabinet.

I do stay with Tomcat 6 for the war version as I think there are still issues with SS on T7. I renenber reading that someone may have identifed the problem with SS on T7 and described a workaround, but it sounded like too much bother. I don't like workarounds that have to be done every time I do an update.

Latest Java 7, latest Tomcat 6, latest Subsonic, Madsonic, or Music Cabinet has been working flawlessly for me for quite some time now.

The only consistent bug I find is recent versions of ffmpeg still have glitches with flac and ogg transcoding so I still dump my old ffmpeg from the ver 4.4 release and rename it "Audioffmpeg" to handle those chores.

I also forced Flash onto my Android Jelly Bean last night and now have video working on my phone again.

It all works - but it does take a few convolutions to get there. :roll:
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York


Return to Madsonic

Who is online

Users browsing this forum: No registered users and 19 guests