You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Stefan Seelmann (JIRA)" <ji...@apache.org> on 2009/08/26 16:06:59 UTC
[jira] Commented: (DIRSTUDIO-526) install as root and execute as
normal user is not possible anymore - exclipse tries to write to
installation path
[ https://issues.apache.org/jira/browse/DIRSTUDIO-526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12747951#action_12747951 ]
Stefan Seelmann commented on DIRSTUDIO-526:
-------------------------------------------
Yes, I think you could specify the configuration location, there are multiple ways:
- add a command line parameter "-configuration <location>"
- put that parameter into the ApacheDirectoryStudio.ini file (please note the special format of the file)
See http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html for details and more options.
HTH,
Stefan
> install as root and execute as normal user is not possible anymore - exclipse tries to write to installation path
> -----------------------------------------------------------------------------------------------------------------
>
> Key: DIRSTUDIO-526
> URL: https://issues.apache.org/jira/browse/DIRSTUDIO-526
> Project: Directory Studio
> Issue Type: Bug
> Affects Versions: 1.4.0
> Environment: ApacheDS 1.4.0 on unix
> Reporter: Leo Bergolth
>
> Starting with 1.4.0, a single installation as root in a multiuser unix environment is not possible anymore:
> # as root:
> cd /usr/local
> tar -xzvf /tmp/ApacheDirectoryStudio-linux-x86-1.4.0.v20090407.tar.gz
> # as normal user:
> /usr/local/ApacheDirectoryStudio-linux-x86-1.4.0.v20090407/ApacheDirectoryStudio
> !SESSION 2009-08-26 15:16:52.198 -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_0
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
> Command-line arguments: -os linux -ws gtk -arch x86
> !ENTRY org.eclipse.osgi 4 0 2009-08-26 15:16:52.561
> !MESSAGE Error reading configuration: /usr/local/ApacheDirectoryStudio-linux-x86-1.4.0.v20090407/configuration/org.eclipse.osgi/.manager/.fileTableLock (No such file or directory)
> !STACK 0
> java.io.FileNotFoundException: /usr/local/ApacheDirectoryStudio-linux-x86-1.4.0.v20090407/configuration/org.eclipse.osgi/.manager/.fileTableLock (No such file or directory)
> at java.io.RandomAccessFile.open(Native Method)
> at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233)
> at org.eclipse.core.runtime.internal.adaptor.Locker_JavaNio.lock(Locker_JavaNio.java:32)
> at org.eclipse.osgi.storagemanager.StorageManager.lock(StorageManager.java:389)
> at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:687)
> at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initFileManager(BaseStorage.java:208)
> at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initialize(BaseStorage.java:142)
> at org.eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage(BaseAdaptor.java:124)
> at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:180)
> at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:152)
> at org.eclipse.osgi.framework.internal.core.OSGi.createFramework(OSGi.java:90)
> at org.eclipse.osgi.framework.internal.core.OSGi.<init>(OSGi.java:31)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:286)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> Once ApacheDS is started as root, some files in configuration/org.eclipse.osgi are created but subsequent execution as another user still raises an error:
> $ /usr/local/ApacheDirectoryStudio-linux-x86-1.4.0.v20090407/ApacheDirectoryStudio
> !SESSION 2009-08-26 15:20:36.652 -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_0
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
> Command-line arguments: -os linux -ws gtk -arch x86
> !ENTRY org.eclipse.osgi 4 0 2009-08-26 15:20:36.811
> !MESSAGE Error reading configuration: /usr/local/ApacheDirectoryStudio-linux-x86-1.4.0.v20090407/configuration/org.eclipse.osgi/.manager/.fileTableLock (Permission denied)
> !STACK 0
> java.io.FileNotFoundException: /usr/local/ApacheDirectoryStudio-linux-x86-1.4.0.v20090407/configuration/org.eclipse.osgi/.manager/.fileTableLock (Permission denied)
> at java.io.RandomAccessFile.open(Native Method)
> at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233)
> at org.eclipse.core.runtime.internal.adaptor.Locker_JavaNio.lock(Locker_JavaNio.java:32)
> at org.eclipse.osgi.storagemanager.StorageManager.lock(StorageManager.java:389)
> at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:687)
> at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initFileManager(BaseStorage.java:208)
> at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initialize(BaseStorage.java:142)
> at org.eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage(BaseAdaptor.java:124)
> at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:180)
> at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:152)
> at org.eclipse.osgi.framework.internal.core.OSGi.createFramework(OSGi.java:90)
> at org.eclipse.osgi.framework.internal.core.OSGi.<init>(OSGi.java:31)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:286)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
> Is there any way (e.g. by setting an environment variable) to specify the location of those eclipse configuration files?
> This would be very useful, because I could avoid doing a separate ApacheDS installation for each user.
> Thanks,
> --leo
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.