Dear all, I have fds 1.04 on fedora 6 and running well for 3 month, today I shutdown the server for moving into new building. After startup the server is running well, but when I running for startconsole I got this error message: Exception in thread "main" java.lang.NoClassDefFoundError: com/netscape/management/client/console/Console Is there any hint how to fix this? Thanks, Diwa
ashley
2007-May-03 09:02 UTC
Re: [Fedora-directory-users] Startconsole error - please help
Sounds like you running the wrong type of java to call the Management Console You have to source the Sun or IBM java to make it run. (IBM works straight out of the box, I got Sun''s java to work but I had to fiddle with files and script to make it work but its been awhile so it could of changed Do this java -version If you see something like this java version "1.4.2" gij (GNU libgcj) version 4.1.1 20070105 (Red Hat 4.1.1-51) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You have the wrong type of java (ie gij GNU libgcj) Find out where you have the Sun or IBM java installed and set the variables for it. (By the way fedora core has java binaries linked in /usr/bin so they are always in your default path. Delete them or relink those java links to your installation. If you choose to delete them without relinking them then you have to add the java binaries to your path) ie for me I have IBM JAva installed here /usr/java/IBMJava2-142 but I''ve sym-link to /usr/java/jdk [root@jhett bin]# pwd /usr/bin [root@jhett bin]# pwd /usr/bin [root@jhett bin]# ls -al |grep -i java -rwxr-xr-x 1 root root 435 Sep 9 2004 antlr-java lrwxrwxrwx 1 root root 21 Feb 10 2006 jar -> /usr/java/jdk/bin/jar lrwxrwxrwx 1 root root 22 Feb 10 2006 java -> /usr/java/jdk/bin/java lrwxrwxrwx 1 root root 23 Feb 10 2006 javac -> /usr/java/jdk/bin/javac lrwxrwxrwx 1 root root 25 Feb 10 2006 javadoc -> /usr/java/jdk/bin/javadoc lrwxrwxrwx 1 root root 23 Feb 10 2006 javah -> /usr/java/jdk/bin/javah As you can see I''ve relink the java binaries to my IBM installed java [root@jhett bin]# java -version java version "1.4.2_10" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_10-b03) Java HotSpot(TM) Client VM (build 1.4.2_10-b03, mixed mode) Thats IBM java version Now I think the only other variable to set is JAVA_HOME ie export JAVA_HOME=/usr/java/jdk You can verify that it works by typing env to see your variables That you should be able to cd /opt/fedora-ds ./startconsole Last time I checked all the locations of the jar files for the console is sourced in the startconsole script so you don''t have to mess with the CLASSPATH variable On Thu, 3 May 2007, Diwakoe wrote:> Dear all, > > I have fds 1.04 on fedora 6 and running well for 3 month, today I > shutdown the server for moving into new building. After startup the > server is running well, but when I running for startconsole I got this > error message: > > Exception in thread "main" java.lang.NoClassDefFoundError: > com/netscape/management/client/console/Console > > Is there any hint how to fix this? > > Thanks, > Diwa > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users > > > !DSPAM:272,46397ec3232021622564235! >-- Ashley Chew - Systems Administrator School of Computer Science and Software Engineering University of Western Australia Tel: (+61 8) 6488 7082 - Fax: (+61 8) 6488 1089 Ashley[@]csse.uwa.edu.au - http://www.csse.uwa.edu.au/~ashley "There is no such thing as Fate, Fate is what you make of it!"
Diwakoe
2007-May-03 09:54 UTC
Re: [Fedora-directory-users] Startconsole error - please help
On 5/3/07, ashley <ashley@csse.uwa.edu.au> wrote:> > Sounds like you running the wrong type of java to call the Management > Console > > > Last time I checked all the locations of the jar files for the console is > sourced in the startconsole script so you don''t have to mess with the > CLASSPATH variable > >Hi Ashley, You''re right when I type this : java -version I get this: java version "1.4.2" ... gij (GNU libgcj) version 4.1.1 Now i have sun java jre_1_5_0_11-linux-i586.bin and installed in /opt/java is that okay to use that?. If you don''t mind please guide me how to fix this problem with this java. Any help is appreciated. Thanks, Diwa
ashley
2007-May-04 01:10 UTC
Re: [Fedora-directory-users] Startconsole error - please help
Yeah Sure I''ve documented this on my webpage http://www.csse.uwa.edu.au/~ashley/ Look at the document LDAP Fedora Directory Server HOWTO with SSL & NOSSL for Unix / Linux / MacOSX / Windows Client Binding Look at 2.1 FDS Java Installation It should tell you everything you need to know. Regards Ashley On Thu, 3 May 2007, Diwakoe wrote:> On 5/3/07, ashley <ashley@csse.uwa.edu.au> wrote: >> >> Sounds like you running the wrong type of java to call the Management >> Console >> >> >> Last time I checked all the locations of the jar files for the console is >> sourced in the startconsole script so you don''t have to mess with the >> CLASSPATH variable >> >> > > Hi Ashley, > > You''re right when I type this : java -version I get this: > > java version "1.4.2" ... > gij (GNU libgcj) version 4.1.1 > > Now i have sun java jre_1_5_0_11-linux-i586.bin and installed in > /opt/java is that okay to use that?. If you don''t mind please guide me > how to fix this problem with this java. > > Any help is appreciated. > > Thanks, > Diwa > > -- > Fedora-directory-users mailing list > Fedora-directory-users@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users > > > !DSPAM:272,4639b18417371087211254! >-- Ashley Chew - Systems Administrator School of Computer Science and Software Engineering University of Western Australia Tel: (+61 8) 6488 7082 - Fax: (+61 8) 6488 1089 Ashley[@]csse.uwa.edu.au - http://www.csse.uwa.edu.au/~ashley "There is no such thing as Fate, Fate is what you make of it!"
Diwakoe
2007-May-04 01:28 UTC
Re: [Fedora-directory-users] Startconsole error - please help
On 5/4/07, ashley <ashley@csse.uwa.edu.au> wrote:> > Yeah Sure > > I''ve documented this on my webpage > > http://www.csse.uwa.edu.au/~ashley/ > > Look at the document LDAP Fedora Directory Server HOWTO with SSL & NOSSL for Unix / Linux / MacOSX / Windows Client Binding > > Look at 2.1 FDS Java Installation > > It should tell you everything you need to know. > > Regards Ashley > >Hi Ashley, Thanks for your reply, I read it now. Regards, Diwa