geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anita kulshreshtha <a_kuls...@yahoo.com>
Subject Re: Help! Security Module
Date Fri, 03 Mar 2006 18:30:55 GMT
  I am able to build successfully (all test pass)
using :
mvn -o
-Djava.security.auth.login.config=src/test-data/data/login.config
-Dlog4j.configuration=file:log4j.properties install
   I need to set these properties. network.log defined
in log4j.properties is not being created. Need to
figure out why?

Thanks
Anita 
--- Henri Yandell <flamefew@gmail.com> wrote:

> *sigh* need sugar.
> 
> 'mail me the pom file'.
> 
> Hen
> 
> On 3/3/06, Henri Yandell <flamefew@gmail.com> wrote:
> > Could you the pom file you made so I can sit and
> stare at the errors too? :)
> >
> > Hen
> >
> > On 3/3/06, anita kulshreshtha
> <a_kulshre@yahoo.com> wrote:
> > >    That did not help. I am loading all the
> properties
> > > defined in log4j.configuration via ant
> > > <property file="log4j.properties"/>
> > >    Do I need to set the property
> log4j.configuration?
> > > to file:log4j.properties? Maven/ant does not
> like ":".
> > >
> > > Thanks
> > > Anita
> > >
> > > --- anita kulshreshtha <a_kulshre@yahoo.com>
> wrote:
> > >
> > > > Never mind... I just saw 2 delete dir lines!
> no
> > > > mkdir
> > > > :(
> > > >
> > > > Thanks
> > > > Anita
> > > >
> > > > --- anita kulshreshtha <a_kulshre@yahoo.com>
> wrote:
> > > >
> > > > > Hi,
> > > > >    I am migrating security module to M2 (rev
> > > > > 382374).
> > > > > Some tests are failing. These tests pass
> with M1
> > > > > build.
> > > > >
> > > >
> > >
>
:-------------------------------------------------------------------------------
> > > > > Battery:
> > > > >
> > > >
> org.apache.geronimo.security.jaas.LoginKerberosTest
> > > > >
> > > >
> > >
>
-------------------------------------------------------------------------------
> > > > > Tests run: 1, Failures: 0, Errors: 1, Time
> > > > elapsed:
> > > > > 0.437 sec
> > > > >
> > > > >
> > > >
> > >
>
testLogin(org.apache.geronimo.security.jaas.LoginKerberosTest)
> > > > >  Time elapsed: 0.406 sec  <<< ERROR!
> > > > >
> > > > > [ stdout ]
> > > > >
> > > >
> > >
>
---------------------------------------------------------------
> > > > >
> > > > >
> > > > >
> > > > > [ stderr ]
> > > > >
> > > >
> > >
>
---------------------------------------------------------------
> > > > >
> > > > >
> > > > >
> > > > > [ stacktrace ]
> > > > >
> > > >
> > >
>
-----------------------------------------------------------
> > > > >
> > > > > 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)
> > > > >     at ...............................
> > > > >       The login.config in  m1 build is
> defined by
> > > > > project.properties as :
> > > > >
> > > >
> > >
>
maven.junit.jvmargs=-Djava.security.auth.login.config=src/test-data/data/login.config
> > > > >      I have set this property in pom.xml
> > > > (attached).
> > > > >     What is missing here?
> > > > >
> > > > > Thanks
> > > > > Anita
> > > > >
> > > > >
> __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Tired of spam?  Yahoo! Mail has the best
> spam
> > > > > protection around
> > > > > http://mail.yahoo.com >
> > > >
> > >
>
-------------------------------------------------------------------------------
> > > > > Battery:
> > > > >
> > > >
> org.apache.geronimo.security.jaas.LoginKerberosTest
> > > > >
> > > >
> > >
>
-------------------------------------------------------------------------------
> > > > > Tests run: 1, Failures: 0, Errors: 1, Time
> > > > elapsed:
> > > > > 0.437 sec
> > > > >
> > > > >
> > > >
> > >
>
testLogin(org.apache.geronimo.security.jaas.LoginKerberosTest)
> > > > >  Time elapsed: 0.406 sec  <<< ERROR!
> > > > >
> > > > > [ stdout ]
> > > > >
> > > >
> > >
>
---------------------------------------------------------------
> > > > >
> > > > >
> > > > >
> > > > > [ stderr ]
> > > > >
> > > >
> > >
>
---------------------------------------------------------------
> > > > >
> > > > >
> > > > >
> > > > > [ stacktrace ]
> > > > >
> > > >
> > >
>
-----------------------------------------------------------
> > > > >
> > > > > 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)
> > > > >     at
> > > > >
> > > >
> > >
>
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> > > > >     at
> > > > >
> > > >
> > >
>
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> > > > >     at
> > > > >
> > > >
> > >
>
java.lang.reflect.Constructor.newInstance(Constructor.java:274)
> > > > >     at
> java.lang.Class.newInstance0(Class.java:308)
> 
=== message truncated ===

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Mime
View raw message