Forum Discussion

koniXV's avatar
koniXV
New Contributor
12 years ago

Impossible to launch SoapUI with non-root user

Hi,

I have installed SoapUI 4.6.3 with the sh script on Fedora 20 64bits as root in the directory /opt.

When I launch SoapUI with the user root, SoapUI works correctly.

But when I launch SoapUI with a non-root user, I have a Java exception.
This is the exception :
Configuring log4j from [/opt/SmartBear/SoapUI-4.6.3/bin/soapui-log4j.xml]
23:41:33,565 INFO [DefaultSoapUICore] Creating new settings at [/home/nicolas/soapui-settings.xml]
23:41:34,471 INFO [SoapUI] Used java version: 1.7.0_40
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Exception in thread "XPCOMMessageLoop" org.mozilla.xpcom.XPCOMException: The function "savePrefFile" returned an error condition (0x80520015)
at org.mozilla.xpcom.internal.XPCOMJavaProxy.callXPCOMMethod(Native Method)
at org.mozilla.xpcom.internal.XPCOMJavaProxy.invoke(Unknown Source)
at com.sun.proxy.$Proxy4.savePrefFile(Unknown Source)
at com.teamdev.jxbrowser.gecko.xpcom.MozillaToolkit.g(Unknown Source)
at com.teamdev.jxbrowser.gecko.xpcom.MozillaToolkit.initialize(Unknown Source)
at com.teamdev.jxbrowser.gecko.xpcom.AppShellXPCOMThread$b.run(Unknown Source)

4 Replies

  • koniXV's avatar
    koniXV
    New Contributor
    Thank you.

    I have set all permissions on the /opt/SmartBear/SoapUI-4.6.3 (chmod 777 -R ...) and now I can launch SoapUI with non root user.

    I will find a solution cleaner than to set all permissions. May be create a specific group ...
  • This bug appears to continue with SoapUI 4.6.4, at least on Ubuntu 12.04 64bit.

    I've done the following to work around it:

    groupadd soapui
    chgrp -R soapui /usr/local/SmartBear
    chmod g+w /usr/local/SmartBear
    chmod g+w /usr/local/SmartBear/SoapUI-4.6.4/bin/*.log
    chmod -R g+w /usr/local/SmartBear/SoapUI-4.6.4/.JxBrowser

    useradd <username> soapui

    Then before running soapui:

    newgrp soapui

    The default installation seems to want to place TestPBE-workspace.xml in /usr/local/SmartBear. It also wants to log to the log files in /usr/local/SmartBear/SoapUI-4.6.4/bin/. Finally, it appears to be using /usr/local/SmartBear/SoapUI-4.6.4/.JxBrowser for caching of some sort.

    Not an optimal solution. At least with the restriction to a group we can minimize the potential mayhem.