wood burning stoves 2.0
The moose likes Other Java Products and Servers and the fly likes sun-acc.xml - can't auth to ejb Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "sun-acc.xml - can Watch "sun-acc.xml - can New topic

sun-acc.xml - can't auth to ejb

pan leung

Joined: Mar 28, 2003
Posts: 1

i cannot auth successfully to the server ejb, which access is controlled by server container thru deployment descriptors. if i understand correctly, i should be able to tell the client side container to send to the server my credentials listed in sun-acc.xml. but the problem is that the realm is never picked up (always reported as "default" instead of "file" in the logs). here is the sun-acc.xml

<?xml version="1.0" encoding="iso-8859-1"?>

<!DOCTYPE client-container SYSTEM

<client-container send-password="true" >
<target-server name="localhost" address="localhost" port="3700" />
<client-credential realm="file" user-name="syncFes" password="abc123" />
<log-service file="D:/TempFTP/client.log" level="FINEST"/>

and here is the logs

javax.ejb.AccessLocalException: Client not authorized for this invocation.
at com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:487)
at hk.com.smartone.addressbook.ejb.PhoneBookBean_EJBObjectImpl.getContac
at hk.com.smartone.addressbook.ejb._PhoneBookBean_EJBObjectImpl_Tie._inv
oke(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Ge
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:211)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:113)
at com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
at com.sun.corba.ee.internal.iiop.RequestProcessor.process(RequestProcessor.java:83)
at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Serv
at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(F
at java.lang.Thread.run(Thread.java:534)

did i miss anything in the configuration?
Have you checked out Aspose?
subject: sun-acc.xml - can't auth to ejb
jQuery in Action, 3rd edition