File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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

pan leung
Greenhorn

Joined: Mar 28, 2003
Posts: 1
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?
 
Don't get me started about those stupid light bulbs.
 
subject: sun-acc.xml - can't auth to ejb
 
Similar Threads
Can't create SQL Server 2000 Datasource on Tomcat 5.5.12
DataSource : No suitable driver...?????
Different log files for different services in tomcat
what is realm. ???
JNDI in Servlets