Trouble with Java on Ubuntu

I was hoping to have a nice post here about clustering a grails app using three ubuntu 8.04 LTS boxes (using centOS now), nginx, memcached and grails. But all did not go well…

I got the first ubuntu box pretty much set up thanks to a nice tutorial from nanoTux. Of course I skipped the http server portion as well as the PHP and got Java installed. No real hassles there.

However, when I got the app deployed, sometimes it would respond and sometimes it wouldn’t. I couldn’t figure it out. The app itself started up just fine judging from the logs, but I would get no response, like it was hung. Stop, restart, same thing. Then a couple minutes later it would come alive. Then go away.

I couldn’t figure it out. I’m no linux guru and this was my first crack at using Ubuntu so maybe I didn’t have something set right, but the on and off again behavior was certainly odd. Maybe it was the iptables setup or some other networking setting? Don’t know. After spending quite some time on it, I had to dump the idea and get the app running again on a single machine back on centos.

I hope to give this another shot sometime soon. Any suggestions out there?

2 Total TweetBacks: (Tweet this post)


Don’t miss anything, subscribe!

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

Under Ubuntu (Debian based) there are gazilions of alternatives for java implementations. It might happen that you are not using the sun machine, but something else that doesn’t provide all you need (or an old version of the sun implementation).

Although a bit old, have a look at: http://linuxhelp.blogspot.com/2006/09/concise-guide-
to-update-alternatives.html

It is not uncommon for the default to be something else (do a java/javac -version to see what is really running). In most cases you will want to get rid off all implementations and just use the sun one (the sun-java6- packages).

I was using the sun java6 packages and installed via aptitude.

that’s weird. I’ve got the sun-java5-* packages installed on Ubuntu 8.10 [server] (Sunfire v20z so it’s AMD 64-bit) and it works fine with the SunOne Webserver 7.0. I deploy webapps to it all the time that I’m developing for ${work} and haven’t had any problems with it.

yea I’m not sure what was going on. I know it can work on Ubuntu as my day job used it for quite some time before switching to gentoo. I’m going to take another shot at it though.

We are professional supplyUGG Classic Tall,Ugg Classic Short Boots,Buy Ugg bailey button on Softugg.Inc,is your best choice,Enjoying shopping now!

This PowerPoint Video converter can easily convert PowerPoint to video in all popular video and audio formats with excellent quality.
iPod Ripper provides an ideal solution for you to manage, rip, copy, backup, restore your iPod/iPhone on personal computer no matter iTunes installed or not
This powerful Capture Streaming Video supports comprehensive video sharing websites, online TV channels, Internet radio station, online movie, live sport, live news report and other streaming video websites
iPhone To Computer Transfer is a powerful converter, mutually trasferring playlists, songs, pictures between iPhone and computer

The Supra Shoes are always one of the top skateboarding shoes on the block. Overload Skateshop carries a wide range of Supra Shoes to fit your 9-stair kickflips. If you are looking for a pair of Supra footwear…you have came to the right place.

Leave a comment

(required)

(required)