You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Ismael Blesa Part <ib...@tissat.es> on 2001/11/29 19:51:19 UTC
Problem with JAAS and TOMCAT 4.0.1
Hi have modified the sample given with JAAS 1.0. I have developed a jsp
that calls the sample.java file. This file has been modificated in
several ways, the main method has been changed to a method class and
some other changes to adapt it to a web application.
The problem is that when I try to run the jsp I get the following error:
java.lang.SecurityException: unable to instantiate LoginConfiguration
at
javax.security.auth.login.Configuration.getConfiguration(Configuration.java:212)
at javax.security.auth.login.LoginContext$1.run(LoginContext.java:166)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.init(LoginContext.java:163)
at javax.security.auth.login.LoginContext.(LoginContext.java:319)
at sample.Sample.run(Sample.java:47)
at org.apache.jsp.Login$jsp._jspService(Login$jsp.java:64)
I have tried copying the jaas.jar, the sample_jaas.config and the
loginmodule classes to all the places where I think that it should work.
Do you know where shouyld I put all the related classes ?
Thanks
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Problem with JAAS and TOMCAT 4.0.1
Posted by Ismael Blesa Part <ib...@tissat.es>.
I have already done this, but I have not found a good solution to make
it work. I someone that has put it to work could send me his/her
configuration it would be a great help.
Cheers
Antony Bowesman wrote:
>Ismael Blesa Part wrote:
>
>>Hi have modified the sample given with JAAS 1.0. I have developed a
>>jsp that calls the sample.java file. This file has been modificated
>>in
>>several ways, the main method has been changed to a method class and
>>some other changes to adapt it to a web application.
>>The problem is that when I try to run the jsp I get the following error:
>>java.lang.SecurityException: unable to instantiate LoginConfiguration
>>at
>>javax.security.auth.login.Configuration.getConfiguration(Configuration.java:212)
>>at javax.security.auth.login.LoginContext$1.run(LoginContext.java:166)
>>at java.security.AccessController.doPrivileged(Native Method)
>>at javax.security.auth.login.LoginContext.init(LoginContext.java:163)
>>at javax.security.auth.login.LoginContext.(LoginContext.java:319)
>>at sample.Sample.run(Sample.java:47)
>>at org.apache.jsp.Login$jsp._jspService(Login$jsp.java:64)
>>
>>I have tried copying the jaas.jar, the sample_jaas.config and the
>>loginmodule classes to all the places where I think that it should work.
>>
>
>Have a look at the tomcat-user archives for messages 'JAAS not working
>any more with Tomcat 4.0'. (Oct 2001)
>
>Antony
>
>--
>To unsubscribe, e-mail: <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Problem with JAAS and TOMCAT 4.0.1
Posted by Antony Bowesman <ad...@teamware.com>.
Ismael Blesa Part wrote:
>
> Hi have modified the sample given with JAAS 1.0. I have developed a
> jsp that calls the sample.java file. This file has been modificated
> in
> several ways, the main method has been changed to a method class and
> some other changes to adapt it to a web application.
> The problem is that when I try to run the jsp I get the following error:
> java.lang.SecurityException: unable to instantiate LoginConfiguration
> at
> javax.security.auth.login.Configuration.getConfiguration(Configuration.java:212)
> at javax.security.auth.login.LoginContext$1.run(LoginContext.java:166)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.login.LoginContext.init(LoginContext.java:163)
> at javax.security.auth.login.LoginContext.(LoginContext.java:319)
> at sample.Sample.run(Sample.java:47)
> at org.apache.jsp.Login$jsp._jspService(Login$jsp.java:64)
>
> I have tried copying the jaas.jar, the sample_jaas.config and the
> loginmodule classes to all the places where I think that it should work.
Have a look at the tomcat-user archives for messages 'JAAS not working
any more with Tomcat 4.0'. (Oct 2001)
Antony
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>