Forum Problems Installing LAMS: LAMS breaks Jboss


 
You may request notification for LAMS breaks Jboss.
Search: 

1: LAMS breaks Jboss
04/21/08 04:16 AM
[ Reply | Forward ]
Hi

I am at wits end because I just cannot understand what the problem is.

Quick breakdown :

OS : Ubuntu Gusty

JAVA/JDK: sun-java5-jdk (have also tried 6)

Jboss : Jboss-4.0.2

LAMS : lams-unix-installer-2.0.4

Ok. So this is the procedure that I follow :

1) I install sun-java5-jdk and it installs the relevant files to /usr/lib/jvm/java-5-sun

2) I then point my JAVA_HOME to this directory i.e /usr/lib/jvm/java-5-sun

3) I then point my PATH to /usr/lib/jvm/java-5-sun

4) I then go to my /usr/local/jboss-4.0.2/bin directory and hit ./run.sh

5) This installs and runs Jboss and I can get to the Jboss homepage on http://localhost:8080

6) Then I install LAMS once I have configured the lams.properties file. It installs quite happily.

BUT, once I have installed LAMS and stop and try restart JBoss it refuses to start. I cannot get to the port 8080 from a browser anymore. Tryin to restart Jboss just leaves me with :

=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /usr/local/jboss-4.0.2

JAVA: /usr/lib/jvm/java-6-sun/bin/java

JAVA_OPTS: -server -Xms128m -Xmx128m -Dprogram.name=run.sh

CLASSPATH: /usr/local/jboss-4.0.2/bin/run.jar:/usr/lib/jvm/java-6-sun/lib/tools.jar

=========================================================================

/usr/lib/jvm/java-6-sun/bin/java -server -Xms128m -Xmx128m -Dprogram.name=run.sh -Djava.endorsed.dirs=/usr/local/jboss-4.0.2/lib/endorsed -classpath /usr/local/jboss-4.0.2/bin/run.jar:/usr/lib/jvm/java-6-sun/lib/tools.jar org.jboss.Main

Then it dies!

I just do not know what Im doing wrong or what I am missing....and no-where can I find a solid answer to this.

I would really appreciate some help here.

Thanks in advance.

Posted by Mike Hyland

2: Re: LAMS breaks Jboss
In response to 1 04/21/08 05:38 PM
[ Reply | Forward ]
Hello Mike,

After running the install (if you chose to install the wrapper) there should be a new executable in the jboss-4.0.2/bin directory, and also in the init.d directory.

Running the following command from either of those directories should start LAMS

./lams2 start

You will need to look at the jboss-4.0.2/server/default/log/server.log to see if LAMS has started correctly.

More directions are available in the installer readme on how to use the wrapper.

Does that solve your problem?

Luke

Posted by Luke Foxton

3: Re: LAMS breaks Jboss
In response to 1 04/22/08 01:05 AM
[ Reply | Forward ]
Hi, thanks for the reply.

I finally got it going. Thanks.

But I cannot seem to get lams to start at bootup - I always have to start it manually even though its in init.d

Any advice?

Posted by Mike Hyland

4: Re: Re: LAMS breaks Jboss
In response to 3 04/22/08 01:41 AM
[ Reply | Forward ]
Ubuntu has a utility that lets you do this, called update-rc.d. To use it you can run it like this (hope the syntax is right):

sudo update-rc.d lams2 start 99 2 3 4 5 . stop 20 0 1 6 .

And that installs startup links into the /etc/rc?.d directories.

Of course mysql will need to auto-start as well...

Posted by Jun-Dir Liew

Reply to first post on this page
Back to Problems Installing LAMS