• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

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

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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?
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic