[Fedora-directory-users] notes on building fds in etch and a failed build question

Ryan Braun Ryan.Braun at ec.gc.ca
Tue Feb 26 22:12:33 UTC 2008


On Tuesday 26 February 2008 9:54 pm, Rich Megginson wrote:
> Ryan Braun wrote:
> > On Tuesday 26 February 2008 5:05 pm, Rich Megginson wrote:
> >>> So that being said,  is there an easy way to
> >>> use FC jars,  or do I need to build them for debian?  (I have started
> >>> trying to build jss but am having some issues)
> >>
> >> Yes.  Just grab them from /usr/share/dirsrv/html/java.  I suggest using
> >> tar or another program to preserve the symlinks - but no big deal as the
> >> jar files are small if you use cp and get redundant copies.  The jar
> >> files are platform independent.
> >
> > I am getting an error with my built jar files.  I connect up fine (bind
> > with cn=Directory Manager).  When I start expanding the tree, and click
> > on the + sign next to Server Group.  It throws an error
> >
> > Failed to instantiate Server Object for Administration server
> >
> > com.netscape.management.admserv.AdminServer cannot be cast to
> > com.netscape.management.client.topology.IServerObject
> >
> > I click ok,  and a slightly different error comes up
> >
> > Failed to instantiate Server Object for Directory Server
> >
> > com.netscape.admin.dirserv.DSAdmin cannot be cast to
> > com.netscape.management.client.topology.IServerObject
> >
> > If I click on the directory server under server group,  it says This
> > server component has not been downloaded or it could not be activated.  I
> > can see they were downloaded to C:\Documents and
> > Settings\bullpen\.fedora-idm-console\jars.
> >
> > I ran the console with a -D 9 and have the output up on pastbin
> >
> > http://www.pastebin.org/21380
> >
> > Looks like the errors are around line 475, 860 and 890.
>
> Yeah, those are weird.  What version of Java did you use to build those
> jar files?  I note that you are using Sun Java 1.6 on Windows - we've
> not tested with that version, only 1.5.
>

Hah,  right when I sent this off I was thinking,  I should have included java 
versions :)

fdsbuild:/opt/dirsrv/share/dirsrv/html/java# java -version
java version "1.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot(TM) Client VM (build 1.5.0_10-b03, mixed mode, sharing)
fdsbuild:/opt/dirsrv/share/dirsrv/html/java# dpkg -l |grep sun
ii  sun-java5-bin                     1.5.0-10-3                               
Sun Java(TM) Runtime Environment (JRE) 5.0 (
ii  sun-java5-demo                    1.5.0-10-3                               
Sun Java(TM) Development Kit (JDK) 5.0 demos
ii  sun-java5-jdk                     1.5.0-10-3                               
Sun Java(TM) Development Kit (JDK) 5.0
ii  sun-java5-jre                     1.5.0-10-3                               
Sun Java(TM) Runtime Environment (JRE) 5.0 (

I'm not sure what happened in the build process,  but the jars I made are 
quite alot larger in  size compared to the fc8 jars.  Mine are 1.1.1 fc 8 
1.1.0 (at least the non _en ones anyhow)

-rw-r--r-- 1 root root   37521 2008-02-26 17:22 fedora-admin-1.1.0_en.jar
-rw-r--r-- 1 root root  174456 2008-02-26 17:22 fedora-admin-1.1.0.jar
-rw-r--r-- 1 root root   37563 2008-02-26 18:51 fedora-admin-1.1.1_en.jar
-rw-r--r-- 1 root root 2486692 2008-02-26 18:51 fedora-admin-1.1.1.jar
-rw-r--r-- 1 root root   54302 2007-11-07 21:59 fedora-ds-1.1.0_en.jar
-rw-r--r-- 1 root root 1409434 2007-11-07 21:59 fedora-ds-1.1.0.jar
-rw-r--r-- 1 root root   54534 2008-02-26 18:50 fedora-ds-1.1.1_en.jar
-rw-r--r-- 1 root root 2470933 2008-02-26 18:50 fedora-ds-1.1.1.jar



> > I also have the build process I used when making the java components up
> > on pastebin aswell.
> >
> > http://www.pastebin.org/21394
> >
> > The windows console will work fine if I delete the downloaded jars from
> > windows.  And then copy over fc8 supplied jars
> > into /opt/dirsrv/share/dirsrv/html/java ( and symlink them after).  So
> > something in the build process is breaking my jars I guess :)
>
> I think the current jars for f8 were built with ibm java 1.5.

To be honest,  for myself I'm fine with using the fc8 jars.  I can't really 
see myself using the console very much other then initial setup.  I've 
written several perl scripts for day to day stuff (user creation, editing 
etc). 




More information about the 389-users mailing list