Linux Agent Install Problem

Free for all.

Linux Agent Install Problem

Postby Syndog » 22 Jun 2010 18:18

It's a privilege to be the first to post to the bugs forum. ;D

I've downloaded the loadUI-Agent-1_0-beta1.sh file to try out the agent running on an Ubuntu 10.04 environment. After setting the permissions to make it executable, it gives me the following text...

Code: Select all
Unpacking JRE ...
Preparing JRE ...
Starting Installer ...
Error: could not open `/home/testuser/Downloads/loadUI-Agent-1_0-beta1.sh.2152.dir/jre/lib/i386/jvm.cfg'

This also happens if I run it as root. Any ideas? ???

Thanks!
Syndog
User
 
Posts: 1
Joined: 22 Jun 2010 17:34

Re: Linux Agent Install Problem

Postby SmartBear Support » 23 Jun 2010 12:56

Hello,

Do you have java in your PATH? What I mean that try installing Java and set JAVA_HOME and add a JAVA_HOME/bin to your PATH. That could be quick fix.

Let me know, does it helps,
robert
SmartBear Support
Administrator
Administrator
 
Posts: 6705
Joined: 16 Feb 2009 10:53

Re: Linux Agent Install Problem

Postby andrewpmastg » 24 Jun 2010 14:12

I also get the message on Ubuntu 64bit Lucid. I find it weird that the soapUI-x32-3_5.sh does essentially the same initial launch sequence and yet loads the java installer GUI just fine. Does this help identify a potential bug? PS, I set up the HOME and PATH as indicated and this didn't make a difference for me.

2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 19:31:57 UTC 2010 x86_64 GNU/Linux

sudo ./loadUI-Agent-1_0-beta1.sh
Unpacking JRE ...
Preparing JRE ...
Starting Installer ...
Error: could not open `/usr/local/src/loadUI-Agent-1_0-beta1.sh.3525.dir/jre/lib/i386/jvm.cfg'
andrewpmastg
soapui pro users
soapui pro users
 
Posts: 51
Joined: 24 Jun 2010 14:00

Re: Linux Agent Install Problem

Postby andrewpmastg » 08 Jul 2010 20:25

YAY! I I uninstalled all the open source java JREs and JDKs which was a handful. OPENJDK, gcj, etc...

Then, I ran:
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk
sudo apt-get install sun-java6-source
sudo ./loadUI-1_0-beta1.sh
sudo /opt/eviware/loadUI-1.0-beta1/loadUI.sh

It loaded the installer and launched the application.

I wasn't able to use the menu launches in Applications... Other... LoadUI.sh. It only loads the splash.

I cannot execute the application from /usr/local/bin. I got "/usr/local/bin/loadUI.sh: 41: jre/bin/javaws: not found". This could be my own problem.

I also couldn't run ./loadUI.sh from :/opt/eviware/loadUI-1.0-beta1 without sudo, again could be my own problem.

I was able to install as my non-sudo user into my own home directory and that allowed the applications menu, desktop launcher and command line to work without sudo.

Being that I wanted my installation to sit happily in the /opt/eviware directory along side SOAPUI, a sudo-user installation allows me to run "sudo /opt/eviware/loadUI-1.0-beta1/loadUI.sh" so, I'm a happy guy right now.
andrewpmastg
soapui pro users
soapui pro users
 
Posts: 51
Joined: 24 Jun 2010 14:00

Re: Linux Agent Install Problem

Postby SmartBear Support » 15 Jul 2010 09:31

Hello,

Here is one hint/information regarding java and Ubuntu. When install OS it uses gcj not sun java or open jdk. So, you need to install it first.
do that by using synaptic or on Lucid like it was explained in previous post:

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jd


But this does not means that your Ubuntu use it. Check with
java -version


What you need to do is to tell Ubuntu which Java you need. First, check what are alternatives ( all installed Java versions ):
sudo update-java-alternatives -l

Than:
sudo update-alternatives --config java

to set desired Java.

Hope this helps,
robert
SmartBear Support
Administrator
Administrator
 
Posts: 6705
Joined: 16 Feb 2009 10:53

Re: Linux Agent Install Problem

Postby andrewpmastg » 15 Jul 2010 13:43

Thanks Robert!
andrewpmastg
soapui pro users
soapui pro users
 
Posts: 51
Joined: 24 Jun 2010 14:00

Re: Linux Agent Install Problem

Postby SmartBear Support » 15 Jul 2010 14:13

Hello,

From this moment in nightly build ( http://www.eviware.com/nightly-builds/loadui/1.0-beta1/ ) are available linux 64 bit installations for loadUI and loadUI Agent.
Tested on Ubuntu Lucid64. It would be great if someone try this on some other Linux distro and let us know how it how it works.

robert
SmartBear Support
Administrator
Administrator
 
Posts: 6705
Joined: 16 Feb 2009 10:53

Re: Linux Agent Install Problem

Postby andrewpmastg » 15 Jul 2010 14:54

eviware support wrote:Tested on Ubuntu Lucid64. It would be great if someone try this on some other Linux distro and let us know how it how it works. robert

Hey Robert,

I didn't have success executing the application with "Ubuntu 10.04 LTS Lucid Lynx" It installed fine. Below are the steps I took:

uname -a
Linux 2.6.32-23-generic #37-Ubuntu SMP Fri Jun 11 08:03:28 UTC 2010 x86_64 GNU/Linux

java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)

sudo update-java-alternatives -l
java-6-sun 63 /usr/lib/jvm/java-6-sun

sudo update-alternatives --config java
There is only one alternative in link group java: /usr/lib/jvm/java-6-sun/jre/bin/java
Nothing to configure.

sudo /opt/eviware/loadUI-1.0-beta1/loadUI.sh
Java Web Start splash screen process exiting .....
Bad installation. No JRE found in configuration file: No such file or directory

I get a Java 6 splash which comes up for a few seconds and then disappears. I don't have this problem with the 32-bit version.
andrewpmastg
soapui pro users
soapui pro users
 
Posts: 51
Joined: 24 Jun 2010 14:00

Re: Linux Agent Install Problem

Postby mgajudo » 21 Jul 2010 23:13

I got the same results as Syndog when I tried to install/run the agent on Centos 5.2 using Sun's JRE 1.6.0_21
mgajudo
User
 
Posts: 2
Joined: 21 Jul 2010 21:51

Re: Linux Agent Install Problem

Postby SmartBear Support » 23 Jul 2010 14:27

Hello,

Hm...Can you edit loadUI.sh to use your already installed java/javaws(for agenet)/javaws(for controller). Just edit last lines of scripts to use java/javaws instead $JAVA/$JAVAWS?

Let me know how it goes,
robert
SmartBear Support
Administrator
Administrator
 
Posts: 6705
Joined: 16 Feb 2009 10:53

Re: Linux Agent Install Problem

Postby reavels » 16 Aug 2010 15:55

Robert,

Can we just have the installer look at $JAVA_HOME
OR
have the JRE be completely embedded
OR
both

Not everyone is using Ubuntu!
This will NOT work on CentOS/RedHat.

S.
reavels
User
 
Posts: 2
Joined: 13 Aug 2010 15:52

Re: Linux Agent Install Problem

Postby SmartBear Support » 19 Aug 2010 14:34

Hello,

Please try latest nightly build, and let me know.


robert
SmartBear Support
Administrator
Administrator
 
Posts: 6705
Joined: 16 Feb 2009 10:53

Re: Linux Agent Install Problem

Postby erikralenius » 25 Mar 2011 00:03

Hi!

I've also run into some problems when installing loadUI on my Arch Linux 64 bit machine.

This is my JRE:
Code: Select all
$ java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)


When I run the installer with the following command
Code: Select all
$ sudo sh loadUI-1_0_1.sh -c

it runs fine until I get to the point where I have to enter the Port for the proxy settings.
Unlike what the instructions says, I am not able to just hit enter when the Port is to be given,
but has to give an acual value, such as 80.
Code: Select all
This is where you can enter the proxy settings that Java WebStart will use
when starting LoadUI. Leave them blank if you do not use a proxy to reach
the internet.
Proxy:
[]

Port:
[]

Port:
[]
80

the rest of the installer runs without any problems.

However, when I try to run the symlinked loadUI.sh script i get
Code: Select all
/usr/local/bin/loadUI.sh: line 41: jre/bin/javaws: No such file or directory

which indicates that the javaws file is tried to be run relative to the current directory instead
of the /opt/eviware/loadUI-1.0.1 directory.

When instead trying to run the loadUI.sh script from the /opt/eviware/loadUI-1.0.1 directory I get this stracktrace
Code: Select all
Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/eviware/loadUI-1.0.1/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: wrong ELF class: ELFCLASS64
   at java.lang.ClassLoader$NativeLibrary.load(Native Method)
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
   at java.lang.Runtime.load0(Runtime.java:770)
   at java.lang.System.load(System.java:1003)
   at java.lang.ClassLoader$NativeLibrary.load(Native Method)
   at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1720)
   at java.lang.Runtime.loadLibrary0(Runtime.java:823)
   at java.lang.System.loadLibrary(System.java:1028)
   at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.awt.Toolkit.loadLibraries(Toolkit.java:1592)
   at java.awt.Toolkit.<clinit>(Toolkit.java:1614)
   at com.sun.javaws.Main.main(Main.java:100)

which indicates that loadUI is trying to run javaws with an 32 bit JRE on my 64 bit system.

When I tried to run the javaws command for my own 64 bit JRE I ran in to the know bug
where you don't get pass the spash screen (http://www.eviware.com/Nightly-Builds/loadui-changelog.html).

I finally got it all working by downloading the latests snapshot from
http://www.eviware.com/Nightly-Builds/loadui-nightly-builds.html
and installing it with regular user permissions in my home folder and then
running
Code: Select all
$ javaws loadUI.jnlp
from the loadUI-1.0.2-SNAPSHOT folder.
I also tried running the install script as sudo, but that did require that I also ran javaws as sudo

A also created a custom script for launching loadUI and placed it in /usr/local/bin:
Code: Select all
#!/bin/sh
cd ~/eviware/loadUI-1.0.2-SNAPSHOT
javaws loadUI.jnlp


Now I could just enter
Code: Select all
$ loadUI
anywhere and it starts nicely :)

Thanks for an awesome test tool, keep up the good work!
erikralenius
User
 
Posts: 8
Joined: 24 Mar 2011 21:46

Re: Linux Agent Install Problem

Postby SmartBear Support » 25 Mar 2011 17:08

Thanks a lot for the detailed descriptions -- it's useful both for other users and for us!

We will have a look at the Linux installer as soon as possible (definitely before loadUI 1.5).

/Henrik
eviware.com
SmartBear Support
Administrator
Administrator
 
Posts: 6705
Joined: 16 Feb 2009 10:53

Re: Linux Agent Install Problem

Postby SmartBear Support » 13 May 2011 14:06

Hi!

Problem when port value is not supplied:

Code: Select all
    This is where you can enter the proxy settings that Java WebStart will use
    when starting LoadUI. Leave them blank if you do not use a proxy to reach
    the internet.
    Proxy:
    []

    Port:
    []

    Port:
    []
    80


should be fixed now. You can download latest
nightly and try it.

regards!
Predrag
eviware.com
SmartBear Support
Administrator
Administrator
 
Posts: 6705
Joined: 16 Feb 2009 10:53

Next

Return to LoadUI