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
> 

Reply via email to