You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Arto Pastinen <ar...@ofw.fi> on 2004/05/03 12:14:15 UTC

maven, junit & JAAS

Hi!

Is someone made junit test case which try to login by using JAAS?
I try to call maven with following:
maven -Djava.security.manager
-Djava.security.auth.login.config=/home/artsi/workspace/server/test.conf
test

But i still got:
Testcase: test(fi.canter.ams.JAASLoginTest):    Caused an ERROR
Unable to locate a login configuration
java.lang.SecurityException: Unable to locate a login configuration
        at
com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:97)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
....

Artsi


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven, junit & JAAS

Posted by Arto Pastinen <ar...@ofw.fi>.
Ok, if someone interested, i must add:
maven.junit.jvmargs=-Djava.security.auth.login.config=test.conf
to project.properties, instead definind that in command line.

On Mon, 2004-05-03 at 13:14, Arto Pastinen wrote:
> Hi!
> 
> Is someone made junit test case which try to login by using JAAS?
> I try to call maven with following:
> maven -Djava.security.manager
> -Djava.security.auth.login.config=/home/artsi/workspace/server/test.conf
> test
> 
> But i still got:
> Testcase: test(fi.canter.ams.JAASLoginTest):    Caused an ERROR
> Unable to locate a login configuration
> java.lang.SecurityException: Unable to locate a login configuration
>         at
> com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:97)
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> ....
> 
> Artsi
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org