This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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(
oke(Unknown Source)
at com.iplanet.ias.util.threadpool.FastThreadPool$

did i miss anything in the configuration?
Consider Paul's rocket mass heater.
subject: sun-acc.xml - can't auth to ejb
Similar Threads
Different log files for different services in tomcat
what is realm. ???
JNDI in Servlets
DataSource : No suitable driver...?????
Can't create SQL Server 2000 Datasource on Tomcat 5.5.12