Thanks for your response. This relates to the other question I posted just 
today regarding a weird error:

     Error instantiating application at file:/C:/k/wrk/bld/app/my-app.ear: 
Invalid principals config URL: principals.xml for my-app

This happens when I try to deploy with principals.xml in my EAR, with 
orion-application pointing to it using

     <principals path="principals.xml"/>

I've also tried ./principals.xml, /./principals.xml, 
/META-INF/principals.xml, etc .... none work properly ( but the META-INF 
gives me a slightly different error ...) BUT, when I deploy the application 
without the tag or the principals file, and then copy the principals file 
into the deployment directory, everything is just great.

Would happen to have any more insight, would you?



At 12:17 PM 11/15/2000 +1100, you wrote:
>You need to set up the group players in a principals.xml file somewhere.
>
>Otherwise Orion is trying to map a group it thinks doesn't exist.
>
>-mike
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Gerald
> > Gutierrez
> > Sent: Wednesday, November 15, 2000 11:56 AM
> > To: Orion-Interest
> > Subject: Cannot get DataSourceUserManager to work
> >
> >
> >
> > People have indicated success with this user manager but I cannot seem to
> > get it to work. I would appreciate some input those who have
> > gotten it to work.
> >
> > I have the following in my orion-application.xml:
> >
> >      <security-role-mapping name="players">
> >          <group name="players"/>
> >      </security-role-mapping>
> >
> >      <user-manager class="com.evermind.sql.DataSourceUserManager">
> >          <property name="dataSource" value="jdbc/MyDS"/>
> >          <property name="table" value="EMPUSER"/>
> >          <property name="usernameField" value="U"/>
> >          <property name="passwordField" value="P"/>
> >          <property name="defaultGroups" value="players"/>
> >      </user-manager>
> >
> > I don't have the principals tag in the xml file. The table I use for
> > usernames and passwords is EMPUSER, and the fields are U and P. The role
> > that users should be using is "players". I'm quite sure that my
> > dataSource
> > is set up properly because I use the same data source to do CMP
> > table creation.
> >
> > I'm using Hypersonic (in client/server mode) as the database,
> > which has the
> > EMPUSER table and a row containing ('ger', 'reg'), the username
> > (U column)
> > and password (P column) respectively. I assume the password field
> > stores a
> > plaintext password. For the actual authentication, I'm using the "BASIC"
> > method.
> >
> > No matter what I do, it does not seem to authenticate properly, and
> > ultimately the browser comes back as "unauthorized".
> >
> > What did I miss?
> >
> >
> >



Reply via email to