users@glassfish.java.net

asadmin add-resource not working in GFv3

From: <glassfish_at_javadesktop.org>
Date: Thu, 22 Jul 2010 09:16:03 PDT

Hi all,

  I've successfully run the following command in GFv2.1:

[b]<GLASSFISH_HOME>/bin/asadmin add-resources portal-resources.xml[/b]

  Using the following xml file:

[b]<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE resources PUBLIC
   "-//Sun Microsystems Inc.//DTD Application Server 9.1 Domain//EN"
   "*http://www.sun.com/software/appserver/dtds/sun-resources_1_2.dtd*">
<resources>
    <external-jndi-resource enabled="true" factory-class="com.sun.jndi.ldap.LdapCtxFactory" jndi-lookup-name="dc=sun,dc=com" jndi-name="ldap/swrds" object-type="user" res-type="javax.naming.ldap.LdapContext">
        <property name="java.naming.provider.url" value="ldap://ssg-ds:39"/>
    </external-jndi-resource>
</resources>[/b]

This does not, however, work in GFv3. I get the following "empty" error message:

[b]com.sun.enterprise.admin.cli.CommandException: remote failure: add-resources <portal-resources-gf3.xml> failed


Command add-resources failed.[/b]

Note the 2 empty lines where the errors, I think, should be.

Any ideas?
[Message sent by forum member 'wfsaxton']

http://forums.java.net/jive/thread.jspa?messageID=478291