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 <[EMAIL PROTECTED]> wrote: > Never mind... I just saw 2 delete dir lines! no > mkdir > :( > > Thanks > Anita > > --- anita kulshreshtha <[EMAIL PROTECTED]> 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) > > at java.lang.Class.newInstance(Class.java:261) > > at > > > javax.security.auth.login.Configuration$3.run(Configuration.java:221) > > at > > java.security.AccessController.doPrivileged(Native > > Method) > > at > > > javax.security.auth.login.Configuration.getConfiguration(Configuration.java:215) > > at > > > javax.security.auth.login.LoginContext$1.run(LoginContext.java:170) > > at > > java.security.AccessController.doPrivileged(Native > > Method) > > at > > > javax.security.auth.login.LoginContext.init(LoginContext.java:167) > > at > > > javax.security.auth.login.LoginContext.<init>(LoginContext.java:292) > > at > > > org.apache.geronimo.security.jaas.LoginKerberosTest.testLogin(LoginKerberosTest.java:87) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at > java.lang.reflect.Method.invoke(Method.java:324) > > at > > > junit.framework.TestCase.runTest(TestCase.java:154) > > at > > > junit.framework.TestCase.runBare(TestCase.java:127) > > at > > > junit.framework.TestResult$1.protect(TestResult.java:106) > > at > > > junit.framework.TestResult.runProtected(TestResult.java:124) > > at > > > junit.framework.TestResult.run(TestResult.java:109) > > at > junit.framework.TestCase.run(TestCase.java:118) > > at > > > junit.framework.TestSuite.runTest(TestSuite.java:208) > > at > > junit.framework.TestSuite.run(TestSuite.java:203) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native > > Method) > > at > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > at > java.lang.reflect.Method.invoke(Method.java:324) > > at > > > org.apache.maven.surefire.battery.JUnitBattery.executeJUnit(JUnitBattery.java:242) > > at > > > org.apache.maven.surefire.battery.JUnitBattery.execute(JUnitBattery.java:216) > > at > > > org.apache.maven.surefire.Surefire.executeBattery(Surefire.java:215) > === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
