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 <[EMAIL PROTECTED]> wrote:

> *sigh* need sugar.
> 
> 'mail me the pom file'.
> 
> Hen
> 
> On 3/3/06, Henri Yandell <[EMAIL PROTECTED]> 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
> <[EMAIL PROTECTED]> 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 <[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)
> 
=== message truncated ===

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--

    Copyright 2006 The Apache Software Foundation

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->

<!-- $Revision$ $Date$ -->

<project>
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.apache.geronimo</groupId>
    <artifactId>geronimo</artifactId>
    <version>1.2-SNAPSHOT</version>
  </parent>
  <groupId>org.apache.geronimo</groupId>
  <artifactId>geronimo-security</artifactId>
  <version>${geronimoVersion}</version>
  <packaging>jar</packaging>
  <name>Geronimo :: Security</name>
  <build>
      <!-- read property file -->
      <testResources>
           <testResource>
                <directory>src/test-data</directory>
            </testResource>
       </testResources>
      <plugins>
<!--      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <inherited>true</inherited>
        <configuration>
          <forkMode>pertest</forkMode>
        </configuration>
      </plugin> -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-antrun-plugin</artifactId>
        <executions>
          <execution>
            <phase>process-test-resources</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
              <tasks>
<!--                <property file="log4j.properties"/>
                <echo>${log4j.appender.R.File}</echo> -->
                <dirname property="basedir" file="pom.xml"/>
                <echo>${basedir}</echo>
                <!-- login configuration -->
                <property  name="java.security.auth.login.config"                                       value="${basedir/src/test-data/data/login.config}"/>
                <echo>${java.security.auth.login.config}</echo>
                <!-- Create the test databases directory -->                                      <delete dir="target/database"/>
                <mkdir dir="target/database"/> 
              </tasks>
            </configuration>
          </execution>
        </executions>
        </plugin>
        </plugins>    
  </build>
  <dependencies>

    <!-- Spec Dependencies -->

        <dependency>
            <groupId>org.apache.geronimo.specs</groupId>
            <artifactId>geronimo-j2ee-jacc_1.0_spec</artifactId>
            <version>${geronimoSpecJ2eeJaccVersion}</version>
        </dependency>

    <!-- geronimo jars -->

        <dependency>
            <groupId>org.apache.geronimo</groupId>
            <artifactId>geronimo-common</artifactId>
        </dependency>
        <!-- interceptor uses dependencies.dependency.version -->
        <dependency>
            <groupId>org.apache.geronimo</groupId>
            <artifactId>geronimo-interceptor</artifactId>
            <version>${geronimoVersion}</version>

        </dependency>

        <dependency>
             <groupId>org.apache.geronimo</groupId>
             <artifactId>geronimo-j2ee</artifactId>
        </dependency>

        <dependency>
            <groupId>org.apache.geronimo</groupId>
            <artifactId>geronimo-kernel</artifactId>
        </dependency>
        <dependency>
             <groupId>org.apache.geronimo</groupId>
             <artifactId>geronimo-management</artifactId>

        </dependency>

        <dependency>
            <groupId>org.apache.geronimo</groupId>
            <artifactId>geronimo-system</artifactId>
        </dependency>

    <!-- Thirdparty -->

    <dependency>
      <groupId>cglib</groupId>
      <artifactId>cglib-nodep</artifactId>
    </dependency>

    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
    </dependency>

    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
    </dependency>

    <dependency>
      <groupId>mx4j</groupId>
      <artifactId>mx4j</artifactId>
    </dependency>

        <dependency>
            <groupId>concurrent</groupId>
            <artifactId>concurrent</artifactId>
            <version>${concurrentVersion}</version>
        </dependency>

        <dependency>
            <groupId>activeio</groupId>
            <artifactId>activeio</artifactId>
            <version>${activeIoVersion}</version>
        </dependency>


    <!--  test database -->
        <dependency>
            <groupId>hsqldb</groupId>
            <artifactId>hsqldb</artifactId>
            <version>${hsqldbVersion}</version>
        </dependency>   

        <dependency>
            <groupId>regexp</groupId>
            <artifactId>regexp</artifactId>
            <version>${regexpVersion}</version>
        </dependency>

    </dependencies>

</project>

Reply via email to