Ken Morehouse
2006-Apr-12 14:16 UTC
[Fedora-directory-users] Startconsole issues on Windows
Hello all. I just recently installed Fedora Directory Server v1.0.2-1. I''m able to get the startconsole script to start up without an issue on the RedHat server, but have been having considerable issues trying to get the code to run on my workstation. I get lost with Java pretty easily, and this is most likely user error, but I can''t seem to get a resolution. Any help will be greatly appreciated. If I could get the Java to load, I can work through any connectivity to the admin server. Here are some of the details of my attempts. 1) Tried to run ./startconsole -D on the server, but only get "Fedora-Management-Console/1.0 B2006.060.198" on stdout. 2) Used the HOWTO at http://directory.fedora.redhat.com/wiki/Howto:WindowsConsole to build the fedora folder and script on my XP workstation. 3) No SSL setup on the server until the basics are working. 4) When running the batch file on my machine, I get the following error. "Exception in thread "main" java.lang.NoClassDefFoundError: /com/netscape/management/client/console/Console" - Output from java -version on my workstation: java version "1.5.0_06" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode) - Contents of my batch file @echo off set PATH=c:\fedora\lib\jss;c:\fedora\java;c:\fedora\lib;c:\program files\Java\jre1.5.0_06\bin;%PATH% "C:\Program files\Java\jre1.5.0_06\bin\java" -ms8m -mx64m -cp .;.\java\fedora-nmclf-1.0.jar;.\java\fedora-base.jar;.\java\ldapjdk.jar;.\ja va\fedora-mcc-1.0.jar;.\java\fedora-nmclf-1.0_en.jar;.\java\fedora-mcc-1.0_e n.jar;.\java\jss3.jar; -Djava.library.path=c:\fedora\lib -Djava.util.prefs.systemRoot=.\.java -Djava.util.prefs.userRoot.com.netscape.management.client.console.Console -D -a http://adminsserver:port - Contents of my c:\fedora\java directory 04/12/2006 10:24 AM 37,364 fedora-base-1.0.jar 04/12/2006 10:24 AM 1,004,998 fedora-mcc-1.0.jar 04/12/2006 10:24 AM 109,407 fedora-mcc-1.0_en.jar 04/12/2006 10:24 AM 26,242 fedora-nmclf-1.0.jar 04/12/2006 10:24 AM 10,306 fedora-nmclf-1.0_en.jar 04/12/2006 09:26 AM <DIR> html 04/12/2006 09:26 AM <DIR> jars 04/12/2006 10:24 AM 611,431 jss3.jar 04/12/2006 10:24 AM 264,659 ldapjdk.jar - Contents of my c:\fedora\lib directory 04/12/2006 10:24 AM 123,480 acl-plugin.so 04/12/2006 10:24 AM 17,824 attr-unique-plugin.so 04/12/2006 10:24 AM 74,160 chainingdb-plugin.so 04/12/2006 10:24 AM 33,612 cos-plugin.so 04/12/2006 10:24 AM 9,488 des-plugin.so 04/12/2006 10:24 AM 23,808 http-client-plugin.so 04/11/2006 04:20 PM <DIR> jss 04/12/2006 10:24 AM 379,800 libback-ldbm.so 04/12/2006 10:24 AM 174,613 libjss3.so 04/12/2006 10:24 AM 22,536 liblcoll.so 04/12/2006 10:24 AM 13,036 passthru-plugin.so 04/12/2006 09:26 AM <DIR> perl 04/12/2006 10:24 AM 18,980 pwdstorage-plugin.so 04/12/2006 10:24 AM 16,956 referint-plugin.so 04/12/2006 10:24 AM 387,172 replication-plugin.so 04/12/2006 10:24 AM 32,384 retrocl-plugin.so 04/12/2006 10:24 AM 24,512 roles-plugin.so 04/12/2006 10:24 AM 7,432 statechange-plugin.so 04/12/2006 10:24 AM 24,736 syntax-plugin.so 04/12/2006 10:24 AM 15,736 views-plugin.so
Kimmo Koivisto
2006-Apr-12 19:20 UTC
Re: [Fedora-directory-users] Startconsole issues on Windows
Ken Morehouse kirjoitti viestissään (lähetysaika Wednesday 12 April 2006 17:16):> Hello all. I just recently installed Fedora Directory Server v1.0.2-1. I''m > able to get the startconsole script to start up without an issue on the > RedHat server, but have been having considerable issues trying to get the > code to run on my workstation.Hello Ken I had troubles too when I tried to use java and lib directories from FDS 1.0.2. Then I copied those dirs from 1.0.1 and got it working. My .bat file <console.bat> @echo off set ADMINUSER=admin set ADMINURL=http://repository:9000/ echo Starting Console java -ms8m -mx64m -cp .;.\nmclf10.jar;.\base.jar;.\ldapjdk.jar;.\mcc10.jar;. \nmclf10_en.jar;.\mcc10_en.jar;.\jss3.jar -Djava.library.path=..\lib\jss -Djava.util.prefs.systemRoot=.\.java -Djava.util.prefs.userRoot=. com.netscape.management.client.console.Console -D -u %ADMINUSER% -a %ADMINURL% </console.bat> Maybe this helps you? Regards Kimmo
Ken Morehouse
2006-Apr-12 19:22 UTC
RE: [Fedora-directory-users] Startconsole issues on Windows
Finally got this to work today. After discussing the issues with one of our onsite Java specialists, we determined the problem. The names of the .jar files did not all match what was in the java folder. Thank you for the information. Ken -----Original Message----- From: Kimmo Koivisto [mailto:kimmo.koivisto@surfeu.fi] Sent: Wednesday, April 12, 2006 3:20 PM To: fedora-directory-users@redhat.com Cc: Ken Morehouse Subject: Re: [Fedora-directory-users] Startconsole issues on Windows Ken Morehouse kirjoitti viestissään (lähetysaika Wednesday 12 April 2006 17:16):> Hello all. I just recently installed Fedora Directory Server v1.0.2-1. > I''m able to get the startconsole script to start up without an issue > on the RedHat server, but have been having considerable issues trying > to get the code to run on my workstation.Hello Ken I had troubles too when I tried to use java and lib directories from FDS 1.0.2. Then I copied those dirs from 1.0.1 and got it working. My .bat file <console.bat> @echo off set ADMINUSER=admin set ADMINURL=http://repository:9000/ echo Starting Console java -ms8m -mx64m -cp .;.\nmclf10.jar;.\base.jar;.\ldapjdk.jar;.\mcc10.jar;. \nmclf10_en.jar;.\mcc10_en.jar;.\jss3.jar -Djava.library.path=..\lib\jss -Djava.util.prefs.systemRoot=.\.java -Djava.util.prefs.userRoot=. com.netscape.management.client.console.Console -D -u %ADMINUSER% -a %ADMINURL% </console.bat> Maybe this helps you? Regards Kimmo