Subsonic with Tomcat 5.5 in Debian Testing?

Need help? Post your questions here.

Moderator: moderators

Subsonic with Tomcat 5.5 in Debian Testing?

Postby sping » Wed Dec 05, 2007 7:12 pm

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!
User avatar
sping
 
Posts: 6
Joined: Sun May 20, 2007 10:50 pm
Location: Berlin, Germany

Postby RXWatcher » Fri Dec 07, 2007 3:16 pm

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
RXWatcher
 
Posts: 20
Joined: Thu May 03, 2007 5:16 pm

Postby sping » Sun Dec 09, 2007 1:37 pm

Thanks for trying to help but... I'm already running the latest Sun JVM.
User avatar
sping
 
Posts: 6
Joined: Sun May 20, 2007 10:50 pm
Location: Berlin, Germany

look in your alternatives

Postby linuxman » Tue Dec 11, 2007 6:05 am

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.
User avatar
linuxman
 
Posts: 58
Joined: Sat Sep 23, 2006 5:53 am

Postby sping » Tue Dec 11, 2007 1:49 pm

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... :-(
User avatar
sping
 
Posts: 6
Joined: Sun May 20, 2007 10:50 pm
Location: Berlin, Germany

Postby jarmohak » Wed Dec 12, 2007 1:45 pm

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 ;)
jarmohak
 
Posts: 2
Joined: Wed Dec 12, 2007 12:31 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 29 guests