I guess what I'm saying in this post is that I tried to follow the example but
it fails because I don't know what I'm doing at some fundamental level.
I don't know how to redeploy properly (that is with auto table generation
retried as well). And I don't know why the following xml pulled straight from
one of the examples produces no error when the example is deployed but produces
a class not found error when it's in my confg file:
<ejb-module remote="false" path="usermanager" />
<user-manager class="com.evermind.ejb.EJBUserManager">
<property name="home" value="com.evermind.ejb.EJBUser" />
<property name="defaultGroups" value="users" />
</user-manager>"
I think that this demo user manager would be fine for the pet store but I can't
seem to either redeploy it or move it into / associate it with the petstore app.
Brian
Mike Cannon-Brookes wrote:
> I believe all of you who are looking for examples of user manager use should
> look at the ATM example. It uses the Orion user management API with it's own
> EJBUser derived bean to store / lookup user information (using the
> EJBUserManager). Other UserManager's work exactly the same way (Ldap,
> NTGroups, XML etc)
>
> Mike
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Kalvar, Kirk
> > Sent: Friday, 23 June 2000 10:34
> > To: Orion-Interest
> > Subject: RE: Pet Store and UserManager problems
> >
> >
> > Brian:
> >
> > I'm also looking at the same issue. I've search the
> > archive/FAQ's and there
> > are a few items referring to UserManger but nothing that provides a clear
> > path to implementing it. From the archive I understand some folks were
> > trying to roll their ownr.
> >
> > Kirk S. Kalvar, Software Engineer
> > DRS Electronic Systems Group
> >
> > > -----Original Message-----
> > > From: Brian Cunningham [SMTP:[EMAIL PROTECTED]]
> > > Sent: Thursday, June 22, 2000 18:13
> > > To: Orion-Interest
> > > Subject: Pet Store and UserManager problems
> > >
> > > RE login in the petstore:
> > >
> > > It seems like I would need something like the following in
> > > application-deployments/estore/orion-application.xml in order to give
> > > OrionSecurityAdapter something to reference when calling addUser().
> > >
> > > "<ejb-module remote="false" path="usermanager" />
> > >
> > > <user-manager class="com.evermind.ejb.EJBUserManager">
> > > <property name="home" value="com.evermind.ejb.EJBUser" />
> > > <property name="defaultGroups" value="users" />
> > > </user-manager>"
> > >
> > > But I get "Error updating application estore: Error initializing
> > > userManager
> > > 'com.evermind.
> > > ejb.EJBUserManager': NamingException: com.evermind.ejb.EJBUser
> > not found"
> > > when I
> > > try it.
> > >
> > > I need to understand how to get a UserManger functioning for the
> > > petstore...any
> > > help on this would be appreciated.
> > >
> > > Related to this I may also need to understand how to get
> > > demo/ejb/usermanager to
> > > redeploy, including retrying the autogeneration of
> > tables...orion tried to
> > > deploy
> > > that app once and failed because of datasouce issues... now that I have
> > > fixed the
> > > datasources I need it to try again fresh). If tried opening and saving
> > > everything I
> > > can think of...
> > >
> > > OrionSecurityAdapter uses RoleManager, but I get UserManager naming
> > > exceptions from
> > > it so I assume it just proxies the requests through RoleManager to a
> > > UserManager...but to_which_ UserManager is totally unclear to me.
> > >
> > > My current (and I think/hope final) petstore error is:
> > >
> > > com.evermind.server.rmi.OrionRemoteException: Transaction was
> > rolled back:
> > > java.lang.RuntimeException: NamingException: system/UserManager
> > not found
> > > at
> > >
> > StatefulSessionBeanWrapper10.handleEvent(StatefulSessionBeanWrapper10.java
> > > ,
> > > Compiled Code) at
> > >
> > com.sun.estore.control.web.ShoppingClientControllerWebImpl.handleEvent(Sho
> > > ppingClientControllerWebImpl.java:143)
> > >
> > > at
> > >
> > com.sun.estore.control.web.RequestProcessor.processRequest(RequestProcesso
> > > r.java:106)
> > >
> > > at __jspPage0_Main_jsp._jspService(__jspPage0_Main_jsp.java:80) at
> > > com.evermind.server.http.EvermindHttpJspPage.service(JAX) at
> > > com.evermind.server.http.df.o3(JAX) at
> > > com.evermind.server.http.df.forward(JAX)
> > > at com.evermind.server.http.dm.o9(JAX, Compiled Code) at
> > > com.evermind.server.http.dm.o8(JAX, Compiled Code) at
> > > com.evermind.util.e.run(JAX, Compiled Code) Nested exception is:
> > > java.lang.RuntimeException: NamingException: system/UserManager
> > not found
> > > at
> > > OrionSecurityAdapter.addUser(OrionSecurityAdapter.java) at
> > >
> > com.sun.estore.control.ejb.StateMachine.handleAccountEvent(StateMachine.ja
> > > va:151)
> > > at
> > >
> > com.sun.estore.control.ejb.StateMachine.handleEvent(StateMachine.java:74)
> > > at
> > >
> > com.sun.estore.control.ejb.ShoppingClientControllerEJB.handleEvent(Shoppin
> > > gClientControllerEJB.java:116)
> > >
> > > at
> > >
> > StatefulSessionBeanWrapper10.handleEvent(StatefulSessionBeanWrapper10.java
> > > ,
> > > Compiled Code) at
> > >
> > com.sun.estore.control.web.ShoppingClientControllerWebImpl.handleEvent(Sho
> > > ppingClientControllerWebImpl.java:143)
> > >
> > > at
> > >
> > com.sun.estore.control.web.RequestProcessor.processRequest(RequestProcesso
> > > r.java:106)
> > >
> > > at __jspPage0_Main_jsp._jspService(__jspPage0_Main_jsp.java:80) at
> > > com.evermind.server.http.EvermindHttpJspPage.service(JAX) at
> > > com.evermind.server.http.df.o3(JAX) at
> > > com.evermind.server.http.df.forward(JAX)
> > > at com.evermind.server.http.dm.o9(JAX, Compiled Code) at
> > > com.evermind.server.http.dm.o8(JAX, Compiled Code) at
> > > com.evermind.util.e.run(JAX, Compiled Code)
> > >
> > > Also: When everything above is finally "right" there should be no user
> > > entries in
> > > principals.xml, true? All username/passwords should be persisted in a
> > > DBMS?
> > >
> > > Thanks!
> > >
> > > Brian Cunningham
> > >
> >
--
*************************************************************
Brian Cunningham
North Bay Data
[EMAIL PROTECTED]
415-451-4879
*************************************************************