Look at the org.jboss.test.web.servlets.ClientLoginServlet in the jbosstest
cvs module for how to do this.
----- Original Message -----
From: "Ivan Novick" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 07, 2001 11:04 AM
Subject: Re: [JBoss-user] JBossSx -- Authentication Exception
> My setup is different because I am using a servlet as a client instead of
a
> main function. A username and password are hardcoded into the servlet for
> accessing the EJB. The user is not logging in via JAAS I just dont want
any
> program besides the servlet to be able to access the EJBs.
>
> Should the code for accessing the EJB be identical whether it is from a
> servlet or a main() function?
>
> Thanks again, Ivan
>
>
>
> ----- Original Message -----
> From: "Scott M Stark" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, July 07, 2001 11:00 AM
> Subject: Re: [JBoss-user] JBossSx -- Authentication Exception
>
>
> > Compare your setup to the tutorial as what your doing is exactly what it
> > does. You do not have something configured correctly.
> >
> > ----- Original Message -----
> > From: "Ivan Novick" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Saturday, July 07, 2001 9:56 AM
> > Subject: Re: [JBoss-user] JBossSx -- Authentication Exception
> >
> >
> > > I am using the 2.2.2 JBoss/Tomcat bundle with the integrated security
> and
> > I
> > > have followed the security tutorial.
> > >
> > > Everything is setup except I am getting the following error:
> > >
> > > I am using the org.jboss.security.auth.spi.UsersRolesLoginModule.
There
> is
> > a
> > > servlet trying to access a Session Bean. A message in JBoss window
> says:
> > > "user 'bond' authenticated." Then the Home Interface is found with no
> > > errors. However on the line where the session bean is created, an
> > exception
> > > is thrown that says: "Authentication Exception, principal=null"
> > >
> > > Do you have a guess as to why the login can be successful but an
> exception
> > > is thrown saying principal is null and the bean can not be created?
> > >
> > > Any insights greatly appreciated, Ivan.
> > >
> > > ----- Original Message -----
> > > From: "Scott M Stark" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, July 06, 2001 11:48 PM
> > >
> > > Subject: Re: [JBoss-user] JBossSx -- Authentication Exception>> Use
the
> > > 2.2.2 JBoss/Tomcat bundle with the integrated security and go
> > > >> through the security tutorial:
> > > >> http://www.jboss.org/documentation/HTML/ch11s84.html
> > >
> > >
> > > _______________________________________________
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user