Here is the exception I get in my ASP.Net page when I try to call my
jboss-net web service:

java.rmi.ServerException: EJBException:; nested exception is:
javax.ejb.EJBException: checkSecurityAssociation; CausedByException is:
Authentication exception, principal=null 

But get this: when I first connect to a JSP that uses the EJB in question,
then go back to my ASP.Net page, the security exception goes away!!  

Has anyone else experienced this?  I've tried setting security credentials
as one article on Jboss.Net said to do, but this didn't work.


Notes:
*my EJBs are secured 
*I thought the JSR Web Services for J2EE said it was excluding security, but
I was unable to connect at all from my C# client without adding login code
as follows:

------------ C# client code (using generated QueryEngineRemoteService proxy
to web service) ----------------------

QueryEngineRemoteService ws = new QueryEngineRemoteService(); string strSel
= DropDownList1.SelectedItem.Text; string strResult = null;

// this line of code has no effect
ws.Credentials = new System.Net.NetworkCredential("mylogin","mypassword");


string strName = strSel;

try 
{
        strResult = ws.executeResultSetByName(strName);
} 
catch (Exception e) 
{
}







-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net
hosts over 70,000 Open Source Projects. See the people who have HELPED US
provide better services: Click here: http://sourceforge.net/supporters.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to