Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Directory (http://www.linux-archive.org/fedora-directory/)
-   -   Building 389 console (http://www.linux-archive.org/fedora-directory/529620-building-389-console.html)

Michael Pelletier 05-23-2011 03:51 PM

Building 389 console
 
Hello,

I have followed the instructions on http://directory.fedoraproject.org/wiki/BuildingConsole#Building_Directory_Server_Console_ .28fedora-ds-console.29

However, when I start the 389-conole on a remote server, I can login fine, I click on "Administrative Server" and I get a message:
*"Failed to instantiate Server Object for Administration Server
com.netscape.management.admserv.AdminServer cannot be cast to com.netscape.management.client.topology.IServerObj ect"

Running the console in debug mode gives:
ClassLoader: com/netscape/management/client/topology/TopologyResourcePage.class found in 389-admin-1.1.jar
ClassLoader: com/netscape/management/client/topology/topology_en_US.properties* NOT in 389-admin-1.1.jar
ClassLoader: com/netscape/management/client/topology/topology_en.properties* NOT in 389-admin-1.1.jar
ClassLoader: com/netscape/management/client/topology/topology.properties* NOT in 389-admin-1.1.jar
ClassLoader: com/netscape/management/admserv/admserv_en_US.properties* NOT in 389-admin-1.1.jar
ClassLoader: com/netscape/management/admserv/admserv_en.properties* NOT in 389-admin-1.1.jar
ClassLoader: com/netscape/management/admserv/admserv.properties* NOT in 389-admin-1.1.jar
ClassLoader: :loadClass():name:java.util.Vector
ClassLoader: :loadClass():name:com.netscape.management.admserv. AdminServer$1
ClassLoader: :loadClass():loading:com.netscape.management.admse rv.AdminServer$1
ClassLoader: com/netscape/management/admserv/AdminServer$1.class found in 389-admin-1.1.jar
ERROR ServerNode.createServerInstance: could not create com.netscape.management.admserv.AdminServer@389-admin-1.1.jar@cn=admin-serv-ldap1,cn=389 Administration Server,cn=Server Group,cn=ldap1.mcna.net,ou=mcna.net,o=NetscapeRoot
*** Exception: java.lang.ClassCastException: com.netscape.management.admserv.AdminServer cannot be cast to com.netscape.management.client.topology.IServerObj ect

Please help!!!
Michael
--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Rich Megginson 05-23-2011 03:55 PM

Building 389 console
 
On 05/23/2011 09:51 AM, Michael Pelletier wrote:

Hello,





I have followed the instructions on
http://directory.fedoraproject.org/wiki/BuildingConsole#Building_Directory_Server_Console_ .28fedora-ds-console.29





However, when I start the 389-conole on a remote server, I
can login fine, I click on "Administrative Server" and I get a
message:


*"Failed to instantiate Server Object for Administration
Server


com.netscape.management.admserv.AdminServer cannot be cast to
com.netscape.management.client.topology.IServerObj ect"





Running the console in debug mode gives:


ClassLoader:
com/netscape/management/client/topology/TopologyResourcePage.class
found in 389-admin-1.1.jar

ClassLoader:
com/netscape/management/client/topology/topology_en_US.properties*
NOT in 389-admin-1.1.jar

ClassLoader:
com/netscape/management/client/topology/topology_en.properties*
NOT in 389-admin-1.1.jar

ClassLoader:
com/netscape/management/client/topology/topology.properties* NOT
in 389-admin-1.1.jar

ClassLoader:
com/netscape/management/admserv/admserv_en_US.properties* NOT in
389-admin-1.1.jar

ClassLoader:
com/netscape/management/admserv/admserv_en.properties* NOT in
389-admin-1.1.jar

ClassLoader: com/netscape/management/admserv/admserv.properties*
NOT in 389-admin-1.1.jar

ClassLoader: :loadClass():name:java.util.Vector

ClassLoader:
:loadClass():name:com.netscape.management.admserv. AdminServer$1

ClassLoader:
:loadClass():loading:com.netscape.management.admse rv.AdminServer$1

ClassLoader: com/netscape/management/admserv/AdminServer$1.class
found in 389-admin-1.1.jar

ERROR ServerNode.createServerInstance: could not create
com.netscape.management.admserv.AdminServer@389-admin-1.1.jar@cn=admin-serv-ldap1,cn=389
Administration Server,cn=Server
Group,cn=ldap1.mcna.net,ou=mcna.net,o=NetscapeRoot

*** Exception: java.lang.ClassCastException:
com.netscape.management.admserv.AdminServer cannot be cast to
com.netscape.management.client.topology.IServerObj ect




Please help!!!



Not sure if regular ant install does this, but the 389-ds* and
389-admin* jar files have to be installed in
/usr/share/dirsrv/html/java



You can also copy them to ~/.389-console/jars


Michael




--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users





--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Michael Pelletier 05-23-2011 05:56 PM

Building 389 console
 
On May 23, 2011, at 11:55 AM, Rich Megginson <rmeggins@redhat.com> wrote:


On 05/23/2011 09:51 AM, Michael Pelletier wrote:






Hello,





I have followed the instructions on
http://directory.fedoraproject.org/wiki/BuildingConsole#Building_Directory_Server_Console_ .28fedora-ds-console.29





However, when I start the 389-conole on a remote server, I
can login fine, I click on "Administrative Server" and I get a
message:


*"Failed to instantiate Server Object for Administration
Server


com.netscape.management.admserv.AdminServer cannot be cast to
com.netscape.management.client.topology.IServerObj ect"





Running the console in debug mode gives:


ClassLoader:
com/netscape/management/client/topology/TopologyResourcePage.class
found in 389-admin-1.1.jar

ClassLoader:
com/netscape/management/client/topology/topology_en_US.properties*
NOT in 389-admin-1.1.jar

ClassLoader:
com/netscape/management/client/topology/topology_en.properties*
NOT in 389-admin-1.1.jar

ClassLoader:
com/netscape/management/client/topology/topology.properties* NOT
in 389-admin-1.1.jar

ClassLoader:
com/netscape/management/admserv/admserv_en_US.properties* NOT in
389-admin-1.1.jar

ClassLoader:
com/netscape/management/admserv/admserv_en.properties* NOT in
389-admin-1.1.jar

ClassLoader: com/netscape/management/admserv/admserv.properties*
NOT in 389-admin-1.1.jar

ClassLoader: :loadClass():name:java.util.Vector

ClassLoader:
:loadClass():name:com.netscape.management.admserv. AdminServer$1

ClassLoader:
:loadClass():loading:com.netscape.management.admse rv.AdminServer$1

ClassLoader: com/netscape/management/admserv/AdminServer$1.class
found in 389-admin-1.1.jar

ERROR ServerNode.createServerInstance: could not create
com.netscape.management.admserv.AdminServer@389-admin-1.1.jar@cn=admin-serv-ldap1,cn=389
Administration Server,cn=Server
Group,cn=ldap1.mcna.net,ou=mcna.net,o=NetscapeRoot

*** Exception: java.lang.ClassCastException:
com.netscape.management.admserv.AdminServer cannot be cast to
com.netscape.management.client.topology.IServerObj ect




Please help!!!



Not sure if regular ant install does this, but the 389-ds* and
389-admin* jar files have to be installed in
/usr/share/dirsrv/html/java

*
Yup I did this. It seems the jar file is missing the netscape java class. I think the problem is in the ant build....



You can also copy them to ~/.389-console/jars


Michael



--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users*






--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users

Nathan Kinder 05-23-2011 06:02 PM

Building 389 console
 
On 05/23/2011 10:56 AM, Michael Pelletier wrote:






On May 23, 2011, at 11:55 AM, Rich Megginson
<rmeggins@redhat.com> wrote:





On
05/23/2011 09:51 AM, Michael Pelletier wrote:

Hello,





I have followed the instructions on
http://directory.fedoraproject.org/wiki/BuildingConsole#Building_Directory_Server_Console_ .28fedora-ds-console.29





However, when I start the 389-conole on a remote
server, I can login fine, I click on "Administrative
Server" and I get a message:


*"Failed to instantiate Server Object for
Administration Server


com.netscape.management.admserv.AdminServer cannot
be cast to
com.netscape.management.client.topology.IServerObj ect"





Running the console in debug mode gives:


ClassLoader:
com/netscape/management/client/topology/TopologyResourcePage.class
found in 389-admin-1.1.jar

ClassLoader:
com/netscape/management/client/topology/topology_en_US.properties*
NOT in 389-admin-1.1.jar

ClassLoader:
com/netscape/management/client/topology/topology_en.properties*
NOT in 389-admin-1.1.jar

ClassLoader:
com/netscape/management/client/topology/topology.properties*
NOT in 389-admin-1.1.jar

ClassLoader:
com/netscape/management/admserv/admserv_en_US.properties*
NOT in 389-admin-1.1.jar

ClassLoader:
com/netscape/management/admserv/admserv_en.properties*
NOT in 389-admin-1.1.jar

ClassLoader:
com/netscape/management/admserv/admserv.properties*
NOT in 389-admin-1.1.jar

ClassLoader: :loadClass():name:java.util.Vector

ClassLoader:
:loadClass():name:com.netscape.management.admserv. AdminServer$1

ClassLoader:
:loadClass():loading:com.netscape.management.admse rv.AdminServer$1

ClassLoader:
com/netscape/management/admserv/AdminServer$1.class
found in 389-admin-1.1.jar

ERROR ServerNode.createServerInstance: could not
create com.netscape.management.admserv.AdminServer@389-admin-1.1.jar@cn=admin-serv-ldap1,cn=389
Administration Server,cn=Server
Group,cn=ldap1.mcna.net,ou=mcna.net,o=NetscapeRoot

*** Exception: java.lang.ClassCastException:
com.netscape.management.admserv.AdminServer cannot be
cast to
com.netscape.management.client.topology.IServerObj ect




Please help!!!



Not sure if regular ant install does this, but the 389-ds*
and 389-admin* jar files have to be installed in
/usr/share/dirsrv/html/java



*


Yup I did this. It seems the jar file is missing the
netscape java class. I think the problem is in the ant
build....




Take a look at your 389-console shell script that you use to launch
Console.* Perhaps there's some problem with the classpath in there.








You can also copy them to ~/.389-console/jars


Michael


--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users*









--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users





--
389 users mailing list
389-users@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/389-users


All times are GMT. The time now is 10:28 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.