Author: Steven Neiland
Published:

Warning: This blog entry was written two or more years ago. Therefore, it may contain broken links, out-dated or misleading content, or information that is just plain wrong. Please read on with caution.

Set Java in Startup script

As we are using the "without-jre" jar file we need to configure Railo to find java. To do this we edit the railo start script "/opt/railo/bin/httpd.sh" and set the java path directive "java=java" line to read as follows.

#comment out this
#java=java

#and add this where ${JAVA_HOME} points to /usr/lib/java in slackware
java=${JAVA_HOME}/bin/java

Test Railo

At this stage we have Railo installed and we can test it running. First we chown railo so that our user owns it. Then we execute the httpd.sh file.

chown -R {your username} railo
/opt/railo/bin/httpd.sh

Open a web browser and goto "http://{yourLinuxBox}:8600/". At this stage if everything went well we should see a webpage with some dump information and a link to the admin page.

Configure the Apache Connector

The next step is very easy, all we need are need two paths. The first is the path to java which we can find by simply calling echo on the JAVA_HOME variable, the second is the path to apxs which on slackware is "/usr/sbin/apxs2".

We cd into the railo directory and run the configure command passing in our two required paths. Finally we call "make" and "make install".

cd /opt/railo
./configure --with-apxs=/usr/sbin/apxs --with-java-home=/usr/lib/java
make
make install
1 2 3 4 5

What Do You Think?

Reader Comments

Post a Comment

Comment Etiquette:

  • Please keep comments on-topic.
  • Please do not post unrelated questions or large chunks of code.
  • Please do not engage in flaming/abusive behaviour.
  • Comments that contain or appear to be advertisments, will not be published.
  • Comments that appear to be created for the purpose of linkbuilding to commercial sites will be removed.

We are all adults here so play nice.

*
*



Archives Blog Listing

Tag Listing

Learn CF In A Week

Treehouse

 
Fork me on GitHub