pan leung

Greenhorn
+ Follow
since Mar 28, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by pan leung

hi

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
"file:///C:/Sun/AppServer7/lib/dtds/sun-application-client-container_1_0.dtd">

<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"/>
</client-container>

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
tList(PhoneBookBean_EJBObjectImpl.java:248)
at hk.com.smartone.addressbook.ejb._PhoneBookBean_EJBObjectImpl_Tie._inv
oke(Unknown Source)
at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Ge
nericPOAServerSC.java:569)
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
icableWrapper.java:25)
at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(F
astThreadPool.java:288)
at java.lang.Thread.run(Thread.java:534)

did i miss anything in the configuration?
19 years ago