[root@sv2lxdpdsedi01 gse]# sh -x /usr/bin/389-console
+ . /usr/share/java-utils/java-functions
++ _JAVA_HOME=
++ '[' -f /etc/java/java.conf ']'
++ . /etc/java/java.conf
+++ JAVA_LIBDIR=/usr/share/java
+++ JNI_LIBDIR=/usr/lib/java
+++ JVM_ROOT=/usr/lib/jvm
+++ JAVACMD_OPTS=
++ '[' -f /root/.java/java.conf ']'
++ '[' '!' -z '' -a -d '' ']'
++ '[' -z '' -a -d /usr/lib/jvm/java ']'
++ JAVA_HOME=/usr/lib/jvm/java
++ '[' -z /usr/lib/jvm/java -a -d /usr/lib/jvm/jre ']'
+ '[' -f /etc/java/389-console.conf ']'
+ . /etc/java/389-console.conf
++ for file in '/etc/java/*-389-console.conf'
++ '[' -f '/etc/java/*-389-console.conf' ']'
++ mylang=en
++ ADDITIONAL_JARS=389-console_en.jar
++ ADDITIONAL_OPTIONS='-Djava.util.prefs.systemRoot=/root/.389-console -Djava.util.prefs.userRoot=/root/.389-console'
+ '[' -f /root/.389-consolerc ']'
+ MAIN_CLASS=com.netscape.management.client.console.Console
+ BASE_FLAGS=
+ BASE_OPTIONS=
+ BASE_JARS='jss4.jar ldapjdk.jar idm-console-base.jar idm-console-mcc.jar idm-console-mcc_en.jar idm-console-nmclf.jar idm-console-nmclf_en.jar'
+ set_jvm
+ '[' -n /usr/lib/jvm/java ']'
+ return
+ set_classpath jss4.jar ldapjdk.jar idm-console-base.jar idm-console-mcc.jar idm-console-mcc_en.jar idm-console-nmclf.jar idm-console-nmclf_en.jar
+ jars='jss4.jar ldapjdk.jar idm-console-base.jar idm-console-mcc.jar idm-console-mcc_en.jar idm-console-nmclf.jar idm-console-nmclf_en.jar'
+ '[' -n 389-console_en.jar ']'
+ jars='jss4.jar ldapjdk.jar idm-console-base.jar idm-console-mcc.jar idm-console-mcc_en.jar idm-console-nmclf.jar idm-console-nmclf_en.jar 389-console_en.jar'
++ /usr/bin/build-classpath jss4.jar ldapjdk.jar idm-console-base.jar idm-console-mcc.jar idm-console-mcc_en.jar idm-console-nmclf.jar idm-console-nmclf_en.jar 389-console_en.jar
+ LOCAL_CLASSPATH='/usr/bin/build-classpath: error: JAVAVER_JNIDIR /usr/lib/java-1.5.0 does not exist or is not a directory'
+ CLASSPATH='/usr/bin/build-classpath: error: JAVAVER_JNIDIR /usr/lib/java-1.5.0 does not exist or is not a directory:'
+ set_flags
+ FLAGS=
+ '[' -n '' ']'
+ set_options
+ OPTIONS=
+ '[' -n '-Djava.util.prefs.systemRoot=/root/.389-console -Djava.util.prefs.userRoot=/root/.389-console' ']'
+ OPTIONS=' -Djava.util.prefs.systemRoot=/root/.389-console -Djava.util.prefs.userRoot=/root/.389-console'
+ run
+ set_javacmd
+ '[' -x '' ']'
+ set_jvm
+ '[' -n /usr/lib/jvm/java ']'
+ return
+ '[' -x /usr/lib/jvm/java/jre/sh/java ']'
+ '[' -x /usr/lib/jvm/java/bin/java ']'
+ JAVACMD=/usr/lib/jvm/java/bin/java
+ '[' '!' -x /usr/lib/jvm/java/bin/java ']'
+ '[' -n '' ']'
+ return 0
+ '[' -n '' ']'
+ exec /usr/lib/jvm/java/bin/java -classpath /usr/bin/build-classpath: error: JAVAVER_JNIDIR /usr/lib/java-1.5.0 does not exist or is not a directory: -Djava.util.prefs.systemRoot=/root/.389-console -Djava.util.prefs.userRoot=/root/.389-console com.netscape.management.client.console.Console
Exception in thread "main" java.lang.NoClassDefFoundError: error:
at gnu.java.lang.MainThread.run(libgcj.so.10)
Caused by: java.lang.ClassNotFoundException: error: not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/bin/build-classpath,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
at java.net.URLClassLoader.findClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
at java.lang.ClassLoader.loadClass(libgcj.so.10)
at gnu.java.lang.MainThread.run(libgcj.so.10)
On 4 March 2015 at 12:38, Rich Megginson <rmeggins@xxxxxxxxxx> wrote:
On 03/03/2015 08:26 PM, Hadoop Solutions wrote:
[root@sv2lxdpdsedi01 gse]# java -versionjava version "1.7.0_75"OpenJDK Runtime Environment (rhel-2.5.4.0.el6_6-x86_64 u75-b13)OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)
Again same error...
[root@sv2lxdpdsedi01 gse]# 389-console -D 9 -f console.logException in thread "main" java.lang.NoClassDefFoundError: error:at gnu.java.lang.MainThread.run(libgcj.so.10)Caused by: java.lang.ClassNotFoundException: error: not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/bin/build-classpath,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}at java.net.URLClassLoader.findClass(libgcj.so.10)at java.lang.ClassLoader.loadClass(libgcj.so.10)at java.lang.ClassLoader.loadClass(libgcj.so.10)at gnu.java.lang.MainThread.run(libgcj.so.10)
It's still trying to use gcj.
Try
# sh -x /usr/bin/389-console
On 4 March 2015 at 10:49, Rich Megginson <rmeggins@xxxxxxxxxx> wrote:
On 03/03/2015 07:45 PM, Hadoop Solutions wrote:
Hi,please find the below 389 versions...
[gse@sv2lxdpdsedi01 ~]$ rpm -q idm-console-frameworkidm-console-framework-1.1.7-2.el6.noarch[gse@sv2lxdpdsedi01 ~]$ rpm -qa | egrep 389389-ds-base-1.2.11.15-48.el6_6.x86_64389-ds-1.2.2-1.el6.noarch389-ds-console-1.2.6-1.el6.noarch389-adminutil-1.1.19-1.el6.x86_64389-admin-console-1.1.8-1.el6.noarch389-dsgw-1.1.11-1.el6.x86_64389-admin-1.1.35-1.el6.x86_64389-console-1.1.7-1.el6.noarch389-admin-console-doc-1.1.8-1.el6.noarch389-ds-console-doc-1.2.6-1.el6.noarch389-ds-base-libs-1.2.11.15-48.el6_6.x86_64
After pointing to open JDK
What exactly does "pointing to open JDK" mean?
java --version
i am getting following error:
[gse@sv2lxdpdsedi01 ~]$ 389-consoleError: Could not find or load main class error:
389-console -D 9 -f console.log
Please let me know your valuable suggestions.
Thanks,Shaik
On 4 March 2015 at 02:09, Rich Megginson <rmeggins@xxxxxxxxxx> wrote:
On 03/03/2015 10:59 AM, Noriko Hosoi wrote:
What platform you are running on? How did you install the packages? E.g., "yum install 389-ds"? And could you provide the package versions?
$ rpm -q idm-console-framework
$ rpm -qa | egrep 389
Also, which java version? java --version.
Looks like you are trying to use gcj which is unsupported.
Try installing java-openjdk
On 03/02/2015 10:44 PM, Hadoop Solutions wrote:
Hi,
please let me know if u have any suggestions on this issue???
-Shaik
On 3 March 2015 at 11:07, Hadoop Solutions <munna.hadoop@xxxxxxxxx> wrote:
Hi,
I have installed 389 DS. I am trying to access 389-console, getting following error.
please help me resolve this issue.
[root@sv2lxdpdsedi01 java]# 389-consoleException in thread "main" java.lang.NoClassDefFoundError: error:at gnu.java.lang.MainThread.run(libgcj.so.10)Caused by: java.lang.ClassNotFoundException: error: not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/bin/build-classpath,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}at java.net.URLClassLoader.findClass(libgcj.so.10)at java.lang.ClassLoader.loadClass(libgcj.so.10)at java.lang.ClassLoader.loadClass(libgcj.so.10)at gnu.java.lang.MainThread.run(libgcj.so.10)
Thanks,Shaik
-- 389 users mailing list 389-users@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/389-users
-- 389 users mailing list 389-users@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/389-users
--
389 users mailing list
389-users@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-users
-- 389 users mailing list 389-users@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/389-users
--
389 users mailing list
389-users@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-users
-- 389 users mailing list 389-users@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/389-users
--
389 users mailing list
389-users@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-users
-- 389 users mailing list 389-users@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/389-users