Page 1 of 1

Subsonic with Tomcat 5.5 in Debian Testing?

PostPosted: Wed Dec 05, 2007 7:12 pm
by sping
I'm starting to get the impression that Debian's current Tomcat setup won't run Subsonic no matter what I try. Has anybody managed to run Subsonic in this environment? Please tell me how - thank you!

PostPosted: Fri Dec 07, 2007 3:16 pm
by RXWatcher
I had issues on CentOS 5(RHEL5) and it turned out that the java version that comes with the OS won't work..you need to update to a legitimate SUN java.

I followed this for RHEL and it worked for me:

http://www.ja-sig.org/wiki/display/CASU ... VM+in+RHEL

PostPosted: Sun Dec 09, 2007 1:37 pm
by sping
Thanks for trying to help but... I'm already running the latest Sun JVM.

look in your alternatives

PostPosted: Tue Dec 11, 2007 6:05 am
by linuxman
see what version of jdk alternatives points to. it has to be changed to point to 1.5 from the default 1.4 or tomcat will never deploy the subsonic war file. in fedora it is java_sdk that is what is broken that you have to fix. be sure and check that tomcat5 config file is pointing to the right java variable as well. it took me running subsonic to realize how broken java is on the linux platform and realize how bad backwards compatibility within java is.

PostPosted: Tue Dec 11, 2007 1:49 pm
by sping
Can you paste your /etc/default/tomcat5.5 file maybe?
Does Subsonic need Jikes at all? I wouldn't be so clueless if
the Tomcat examples wouldn't be running... :-(

PostPosted: Wed Dec 12, 2007 1:45 pm
by jarmohak
Hi there.

I've been trying to configure my Tomcat and Subsonic whole day, and had none success. I've tried everything up, found some interesting info about on some machines jdk5 works, but not on mine. I'm using Debian 4.0 lenny, and I think something is really f***d up with repositories, or it just isn't meant to be working with debian. Last thing I'm going to try out, install tomcat from source, if it doesn't work, then I'm all out of ideas. Let me know if you get any success on your work.

Jarmo

*EDIT*

WOOHOO!!! IT STARTED TO WORK!

So, what I did :

Download latest JDK from java.sun.com
Download latest subsonic [beta, might work also with latest stable!]
Download latest Tomcat [6.0.14 at this moment]

unpack them all. Set with
Code: Select all
export JAVA_HOME=/location/where/your/jdk6/is
your location to unpacked jdk. Unpack Tomcat and start it
Code: Select all
./tomcat/bin/startup.sh
IF it says
Using JRE_HOME: /usr/lib/jvm/java-1.5.0-sun
or anything else THAN your unpacked jdk6, then export once again that earlier command. Then just open up a browser and seek to address localhost:8080 to check if tomcat works. If so, then proceed with normal subsonic installation instructions [just need to copy that subsonic.war file to $tomcat/webapps and then http://localhost:8080/subsonic ].

Hopefully it works on your machine too. Merry Christmas ;)