[daisy] Custom AuthenticationScheme

Kevin hellosticky at gmail.com
Fri Jun 8 09:51:24 CDT 2007


Hi, I added the proper SimpleBluepagesAuthenticationFactory.xinfo file
in my JAR and it works!

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE type PUBLIC "-//AVALON/Type DTD Version 1.0//EN"
"http://avalon.apache.org/dtds/meta/type_1_1.dtd" >

<type>
  <info>
    <name>simple-bluepages-authentication-scheme</name>
    <version>1.0.0</version>
    <lifestyle>singleton</lifestyle>
    <collection>hard</collection>
  </info>
  <dependencies>
    <dependency key="auth-scheme-registrar"
type="org.outerj.daisy.authentication.AuthenticationSchemeRegistrar"/>
  </dependencies>
</type>

Thanks!
Kevin

On 6/8/07, Kevin <hellosticky at gmail.com> wrote:
> Hi,
>
> On 6/7/07, Bruno Dumon <bruno at outerthought.org> wrote:
> >
> > You need to add your new component to the
> > repository/servers/src/conf/block.xml
> >
> > next to where the current ldap and ntlm includes are. This block.xml is
> > the main (or root) block.xml, which either needs to list components
> > explicitely or have include-instructions to include other
> > jars-with-block.xml.
> >
> > The include instruction should be something like ibm:jarname, in which
> > "ibm" corresponds to the subdirectory in your repo:
> >
> > \repository\server\DAISY_MERLIN_REPO\ibm\jars
> >
> > Also about this line:
> >
> > <resource id="ibm:ibm_bluepages_authentication" version="1.0"/>
> >
> > I don't know what the ibm_bluepages_authentication.jar is, but just to
> > be sure: it should not be the jar that you are creating, since you don't
> > need to add that one to the classpath.
>
> I was a little confused by this -- which JAR should I not be creating?
> I assumed I would create a JAR called
> ibm_bluepages_authentication-1.0.jar with my AuthenticationScheme and
> factory classes in \repository\server\DAISY_MERLIN_REPO\ibm\jars.
>
> I added an include to the main block.xml and exported the JAR with its
> own block.xml (is this necessary?), and got the following error when
> starting the repository:
>
> ---- exception report ----------------------------------------------------------
> Exception: org.apache.avalon.merlin.KernelException
> Message: Install failure:
> file:/C:/workspaces/housekeeping/Daisy-wiki-1.5.1-src/repository/server/src/conf/block.xml
> ---- cause ---------------------------------------------------------------------
> Exception: org.apache.avalon.composition.model.ModelException
> Message: Unable to create block from embedded descriptor
> [jar:file:/C:/workspaces/housekeeping/Daisy-wiki-1.5.1-src/repo
> sitory/server/DAISY_MERLIN_REPO/ibm/jars/ibm_bluepages_authentication-1.0.jar!/BLOCK-INF/block.xml]
> in the containmment
> model [/daisy/repository/authentication] due to a build related error.
> ---- cause ---------------------------------------------------------------------
> Exception: org.apache.avalon.composition.model.ModelException
> Message: Unable to create a nested deployment model: bluepagesSimple
> in the containment model /daisy/repository/authenti
> cation/.
> ---- cause ---------------------------------------------------------------------
> Exception: org.apache.avalon.composition.model.TypeUnknownException
> Message: Unable to locate a component type descriptor for the
> component class [com.ibm.daisy.authentication.impl.SimpleB
> luepagesAuthenticationFactory] in the classloader.  Please verify that
> the component classname is correct and that a com
> ponent type descriptor is included in a jar file available within the
> container classloader.
> ---- stack trace ---------------------------------------------------------------
> org.apache.avalon.composition.model.TypeUnknownException: Unable to
> locate a component type descriptor for the component
>  class [com.ibm.daisy.authentication.impl.SimpleBluepagesAuthenticationFactory]
> in the classloader.  Please verify that
> the component classname is correct and that a component type
> descriptor is included in a jar file available within the c
> ontainer classloader.
>
> Any ideas?
>
> Thanks!
> Kevin
>


More information about the daisy mailing list