Ubuntu Installation

G S, geändert vor 12 Jahren.

Ubuntu Installation

Youngling Beiträge: 2 Beitrittsdatum: 24.02.12 Neueste Beiträge
Hello,

I've been trying for the last little while to install Klaros on Ubuntu. The server never comes up. http://mysite.com:18080/klaros-web/ says connection timed out.

The logs don't show any errors.. so I'm not sure how to troubleshoot further.

About my setup:
I installed klaros on a VM of a Ubuntu minimal install (no GUI). I am accessing the web site from the VM's host windows PC. I used the klaros installation defaults and post installation I changed the hibernate.properties to switch the db to mysql. Klaros has successfully populated the database.


Here's some relevant information:

user@ubuntu10:~$ /srv/klaros/bin/catalina.sh version
Using CATALINA_BASE:   /srv/klaros
Using CATALINA_HOME:   /srv/klaros
Using CATALINA_TMPDIR: /srv/klaros/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /home/user/.klaros/resources:/srv/klaros/bin/bootstrap.jar
Server version: Apache Tomcat/6.0.33
Server built:   Aug 16 2011 02:16:34
Server number:  6.0.33.0
OS Name:        Linux
OS Version:     2.6.32-24-server
Architecture:   amd64
JVM Version:    1.6.0_21-b06
JVM Vendor:     Sun Microsystems Inc.


From: /srv/klaros/logs/catalina.2012-02-24.log

24-Feb-2012 12:29:19 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.21/jre/lib/amd64/server:/usr/lib/jvm/java-6-sun-1.6.0.21/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.21/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
24-Feb-2012 12:29:19 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-18080
24-Feb-2012 12:29:19 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1593 ms
24-Feb-2012 12:29:20 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
24-Feb-2012 12:29:20 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.33
24-Feb-2012 12:29:20 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor manager.xml
24-Feb-2012 12:29:20 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor host-manager.xml
24-Feb-2012 12:29:20 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive klaros-web.war
24-Feb-2012 12:29:24 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.icesoft.faces.util.event.servlet.ContextEventRepeater" is already configured for this context. The duplicate definition has been ignored.
24-Feb-2012 12:29:24 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "com.icesoft.faces.util.event.servlet.ContextEventRepeater" is already configured for this context. The duplicate definition has been ignored.
24-Feb-2012 12:33:11 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra (1.2_14-b01-FCS) for context '/klaros-web'
24-Feb-2012 12:33:40 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
24-Feb-2012 12:33:40 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
24-Feb-2012 12:33:40 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
24-Feb-2012 12:33:44 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-18080
24-Feb-2012 12:33:44 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:18009
24-Feb-2012 12:33:44 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/154  config=null
24-Feb-2012 12:33:45 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 265768 ms



From: /srv/klaros/logs/catalina.out
24-Feb-2012 12:33:40 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
24-Feb-2012 12:33:40 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
24-Feb-2012 12:33:40 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
24-Feb-2012 12:33:44 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-18080
24-Feb-2012 12:33:44 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:18009
24-Feb-2012 12:33:44 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/154  config=null
24-Feb-2012 12:33:45 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 265768 ms


Any information would be useful. Thanks!
G S, geändert vor 12 Jahren.

RE: Ubuntu Installation (Antwort)

Youngling Beiträge: 2 Beitrittsdatum: 24.02.12 Neueste Beiträge
I used the full Ubuntu-10.04x64 Server for my VM and Klaros works now.

I ran most of the setup through an SSH terminal but the Klaros setup was run from within the VM's GUI console to the Ubuntu GUI.

Incase anyone is our there struggling like I was here are the steps I too to install Klaros:

1. Download setup
wget http://www.klaros-testmanagement.com/files/Klaros-Setup.jar


2. Install Java
sudo add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk


Check Version
java  -version
java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b06)
Java HotSpot(TM) 64-Bit Server VM (build 17.0-b16, mixed mode)


3. Install Klaros
I ran this from within the Ubuntu GUI terminal.
java -jar Klaros-Setup.jar

Follow instructions here: http://www.klaros-testmanagement.com/files/doc/html/User-Manual.Installation.InstallationProcess.html

4. Stop Klaros, if you selected to start it.
/path_to_klaros/bin/catalina.sh stop


5. (Reccomended-Optional) Switch Klaros Database

Install MySql:
sudo apt-get install mysql-server mysql-client
mysqladmin create klaros or mysqladmin create -uroot -p<your_password> klaros


Switch Klaros Database:
vi ~.klaros/hibernate.properties

Replace file contents with (replace mysql credentials with yours)
hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.connection.url=jdbc:mysql://localhost:3306/klaros
hibernate.connection.username=root
hibernate.connection.password=root


7. Start Klaros
/path_to_klaros/bin/catalina.sh start


8. Test in browser
Navigate to: http://localhost:18080/klaros-web/

9. Check if Klaros has populated mysql
If you switched the database in step 5
mysql klaros -uroot -p

mysql> show tables



Thats It!
thumbnail
Torsten Stolpmann, geändert vor 12 Jahren.

RE: Ubuntu Installation

Jedi Council Member Beiträge: 759 Beitrittsdatum: 12.02.09 Neueste Beiträge
Hi G.,

Thanks for providing this excellent step by step description!

As I can find nothing suspicious in the logs of your first post, did you pinpoint what exactly prevented the startup there?

Oh and just in case - did you notice that the -console option is available for a GUI-less installation?

Have a nice weekend,

Torsten