Thanks, David.
I'll give this a try asap.
-dm

Dan Malks               Enterprise Java Architect
Sun Java Center         703.208.5794                         

On Wed, 21 Jun 2000, David Heffelfinger wrote:

> The jndi.properties file in the directory for the EJBs has the wrong
> password.  I had the same problem and took me a very long time to figure
> out.  Modify jndi.properties on that directory to have the correct password
> and your problem will be fixed.
> 
> David
> 
> > -----Original Message-----
> > From: Arved Sandstrom [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 21, 2000 7:23 AM
> > To: Orion-Interest
> > Subject: RE: java.lang.SecurityException when attempting to run ejb
> > sample app
> > 
> > 
> > I just reran the cart and product demos, and both did just 
> > fine, with the
> > following command lines and results:
> > 
> > D:\orion\demo\ejb\cart>java -classpath
> > ../../../orion.jar;../../../ejb.jar;../..
> > /../jndi.jar;. CartClient
> > Item not found in cart: Oranges
> > 
> > D:\orion\demo\ejb\cart>cd ..\product
> > 
> > D:\orion\demo\ejb\product>java -classpath
> > ../../../orion.jar;../../../ejb.jar;..
> > /../../jndi.jar;. ProductClient
> > Enter the id (integer) of the product you want to add: 1
> > Enter the name for item 1: Gravy
> > Enter the cost for Gravy: 2.15
> > Product added
> > 
> > So I suspect your /orion/config/principals.xml file; is the 
> > "admin" user
> > deactivated? Because the "jndi.properties" file for both 
> > examples specifies
> > the "admin" user.
> > 
> > Arved Sandstrom
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Dan Malks -
> > Java Design Center McLean VA
> > Sent: Tuesday, June 20, 2000 5:14 PM
> > To: Orion-Interest
> > Subject: java.lang.SecurityException when attempting to run ejb sample
> > app
> > 
> > 
> > Any thoughts appreciated on the following problem. thnx. -dm
> > 
> > 
> > E:\java\orion\demo\ejb\product>ls
> > META-INF              ProductEJB.class      ProductServlet.java
> > Product.class         ProductEJB.java       jndi.properties
> > Product.java          ProductHome.class     orion-product.jar
> > ProductClient.class   ProductHome.java      product.skeleton
> > ProductClient.java    ProductServlet.class
> > 
> > 
> > E:\java\orion\demo\ejb\product>e:\java\jdk1.2.2\bin\java -classpath
> > ../../../ori
> > on.jar;../../../ejb.jar;../../jndi.jar;. ProductClient
> > Exception in thread "main" java.lang.SecurityException: Invalid
> > username/passwor
> > d for ejbsamples (admin)
> >         at com.evermind.server.rmi.a8.fd(JAX)
> >         at com.evermind.server.rmi.a8.fd(JAX)
> >         at com.evermind.server.rmi.a8.ez(JAX)
> >         at com.evermind.server.rmi.RMIServer.ez(JAX, Compiled Code)
> >         at com.evermind.server.rmi.RMIContext.lookup(JAX)
> >         at com.evermind.server.Application.ajt(JAX, Compiled Code)
> >         at
> > com.evermind.server.ApplicationClientInitialContextFactory.getInitial
> > Context(JAX, Compiled Code)
> >         at
> > javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
> > 72)
> >         at
> > javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250
> > )
> >         at javax.naming.InitialContext.init(InitialContext.java:226)
> >         at javax.naming.InitialContext.<init>(InitialContext.java:182)
> >         at ProductClient.main(ProductClient.java:18)
> > 
> > Dan Malks                        Sun Java Center
> > Enterprise Java Architect        703.208.5794
> > 
> > 
> > 
> > 
> 
> 


Reply via email to