Announcement Announcement Module
Collapse
No announcement yet.
Newbie - fail to build jar:install and multiwar:multiwar Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Newbie - fail to build jar:install and multiwar:multiwar

    I'm following the directions on
    http://acegisecurity.sourceforge.net/building.html
    and ran into few issues.

    1. It would be helpful to know that CVS is needed with Maven - if you include a sidenot or a link, it will save much pain to those who are new to these tools.

    2. I am trying to do the quick build, but it hasn't been so quick.
    I've installed the commons-attributes-plugin-2.1.jar from the next step.

    Here's the problems:

    2.1 maven jar:install
    ----
    A) Following warning appears repeatedly
    log4j:WARN Please initialize the log4j system properly.

    B)

    log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StaticWeb ApplicationContext).
    log4j:WARN Please initialize the log4j system properly.
    java.lang.IllegalArgumentException: setContext(...) never called, ApplicationContext must not be null
    at org.springframework.util.Assert.notNull(Assert.jav a:91)
    at net.sf.acegisecurity.ui.session.HttpSessionEventPu blisher.getContext(HttpSessionEventPublisher.java: 122)
    at net.sf.acegisecurity.ui.session.HttpSessionEventPu blisherTests.testNullContextCheck(HttpSessionEvent PublisherTests.java:90)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.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.ja va: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:2 08)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnit TestRunner.run(JUnitTestRunner.java:325)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnit Task.executeInVM(JUnitTask.java:848)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnit Task.execute(JUnitTask.java:556)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnit Task.execute(JUnitTask.java:532)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.commons.jelly.tags.ant.AntTag.doTag(Ant Tag.java:185)
    at org.apache.commons.jelly.impl.TagScript.run(TagScr ipt.java:279)
    at org.apache.commons.jelly.impl.ScriptBlock.run(Scri ptBlock.java:135)
    at org.apache.commons.jelly.TagSupport.invokeBody(Tag Support.java:233)
    at org.apache.commons.jelly.tags.core.IfTag.doTag(IfT ag.java:8
    at org.apache.commons.jelly.impl.TagScript.run(TagScr ipt.java:279)
    at org.apache.commons.jelly.impl.ScriptBlock.run(Scri ptBlock.java:135)
    at org.apache.maven.jelly.tags.werkz.MavenGoalTag.run BodyTag(MavenGoalTag.java:79)
    at org.apache.maven.jelly.tags.werkz.MavenGoalTag$Mav enGoalAction.performAction(MavenGoalTag.java:110)
    at com.werken.werkz.Goal.fire(Goal.java:639)
    at com.werken.werkz.Goal.attain(Goal.java:575)
    at com.werken.werkz.Goal.attainPrecursors(Goal.java:4 88)
    at com.werken.werkz.Goal.attain(Goal.java:573)
    at com.werken.werkz.Goal.attainPrecursors(Goal.java:4 88)
    at com.werken.werkz.Goal.attain(Goal.java:573)
    at org.apache.maven.plugin.PluginManager.attainGoals( PluginManager.java:671)
    at org.apache.maven.MavenSession.attainGoals(MavenSes sion.java:263)
    at org.apache.maven.cli.App.doMain(App.java:488)
    at org.apache.maven.cli.App.main(App.java:1239)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.werken.forehead.Forehead.run(Forehead.java:551 )
    at com.werken.forehead.Forehead.main(Forehead.java:58 1)
    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 1.641 sec



    C)

    log4j:WARN No appenders could be found for logger (org.springframework.core.CollectionFactory).
    log4j:WARN Please initialize the log4j system properly.
    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.313 sec

    BUILD FAILED
    File...... C:\Documents and Settings\bsingh\.maven\cache\maven-test-plugin-1.6.2\plugin.jelly
    Element... fail
    Line...... 181
    Column.... 54
    There were test failures.
    Total time: 2 minutes 4 seconds
    Finished at: Thu Jul 07 10:59:42 PDT 2005
    ----





    2.2

    D:\acegisecurity\acegisecurity\samples\contacts>ma ven multiwar:multiwar

    __ __
    | \/ |__ _Apache__ ___
    | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
    |_| |_\__,_|\_/\___|_||_| v. 1.0.2

    Attempting to download acegi-security-0.9.0-SNAPSHOT.jar.
    WARNING: Failed to download acegi-security-0.9.0-SNAPSHOT.jar.
    Attempting to download apacheds-main-0.9-SNAPSHOT.jar.
    The build cannot continue because of the following unsatisfied dependency:

    acegi-security-0.9.0-SNAPSHOT.jar (try downloading from http://acegisecurity.sourceforge.net)

    Total time: 4 seconds
    Finished at: Thu Jul 07 11:09:17 PDT 2005

    ----
    Search for acegi-security-0.9.0-SNAPSHOT.jar on acegisecurity.sourceforge.net yields nothing.


    -----

    Thanks in advance.

  • #2
    Mystery file acegi-security-0.9.0-SNAPSHOT.jar

    Following instructions at http://acegisecurity.sourceforge.net/building.html

    maven multiwar:multiwar is attempting to download acegi-security-0.9.0-SNAPSHOT.jar


    However, I don't see this jar at:
    http://www.ibiblio.org/maven/acegisecurity/jars/

    The contracts app deploys and works fine against Tomcat 5.0.28
    However, there is no acegi-security-0.9.0-SNAPSHOT.jar here either:
    webapps\acegi-security-sample-contacts-filter\WEB-INF\lib

    There are also no references to this mystery file in the build.xml or maven.xml files either. The following grep yields nothing.
    D:\acegisecurity\samples\contacts>grep acegi-security-0.9.0-SNAPSHOT *

    Comment


    • #3
      acegi-security-0.9.0-SNAPSHOT.jar isn't at ibiblio. It is supposed to be built and installed as part of the local build. Since that is failing it isn't being found in the later stages of the build.

      I don't see how the contacts app can be "deploying and working fine" if you don't have a copy of the acegi-security jar somewhere. Are you using the downloaded one in tomcat?

      At what stage is Maven saying it needs CVS? If you are just doing a plain build (no site generation etc.) then the only thing you should need CVS for is to check out the source in the first place.

      Comment


      • #4
        I am having the same experience. I checked out the code according to the instructions on the 'Building with Maven' page. I've got a local copy of the SNAPSHOT file. I get these messages when I run 'maven jar:install' from the core directory:

        Attempting to download apacheds-main-0.9-SNAPSHOT.jar.
        Artifact /apache-directory/jars/apacheds-main-0.9-SNAPSHOT.jar doesn't exists in remote repository, but it exists locally
        [echo] Using root dir: /home/jjustice/Projects/acegisecurity

        OK, using local copy, so far so good, then:

        [junit] Running net.sf.acegisecurity.ui.session.HttpSessionEventPu blisherTests
        log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StaticWeb ApplicationContext).
        log4j:WARN Please initialize the log4j system properly.
        java.lang.IllegalArgumentException: setContext(...) never called, ApplicationContext must not be null
        at org.springframework.util.Assert.notNull(Assert.jav a:91)
        at net.sf.acegisecurity.ui.session.HttpSessionEventPu blisher.getContext(HttpSessionEventPublisher.java: 122)
        at net.sf.acegisecurity.ui.session.HttpSessionEventPu blisherTests.testNullContextCheck(HttpSessionEvent PublisherTests.java:90)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at junit.framework.TestCase.runTest(TestCase.java:154 )


        And BTW, where do I need to put a log4j.properties file to get rid of the log4j warnings? Or is it something I need to do in Maven?

        Comment


        • #5
          Hello Luke ,

          Firslty, thanks for yor reply!

          Yes - I'm using the donwloaded one in Tomcat (When the build failed, I downloaded the acegi-security-0.8.2.zip which contained the prebuilt acegi-security-sample-contacts-filter.war which was then deployed to Tomcat.)

          And Yes! - Maven needed CVS to checkout the files. For first time users of Maven/cvs it is not obvious that cvs client does not come with maven and that it needs to be installed seperately and put in the path. Seems obvious after inspecting the error codes and reading a little on Maven. At this point, however, one is more interested in learning/using Acegi than the build/config tools, so a short note on this on building.htm may help future acegi-ers.

          Any pointers on why the builds don't work? I.e.
          maven jar:install
          maven multiwar:multiwar

          Thanks!

          Comment


          • #6
            BTW, I was able to build the jar file by running

            maven -Dmaven.test.skip=true jar:install

            But then of course it didn't run properly. :wink:

            Comment


            • #7
              Hello jjustice,

              I found this helpful post from another forum re the log4j properties file.
              You can tell java about this file using following flag:

              -Dlog4j.configuration=file:somepath/somelog.properties

              However, I still have to figure out where to put it. The test:test
              target is found in each test's xml file. E.g.

              ./target/test-reports/TEST-net.sf.acegisecurity.wrapper.ContextHolderAwareReq uestWrapperTests.xml

              Comment


              • #8
                CVS had a problem with one of the tests, which was corrected earlier this week. Please checkout again and try again. If it (maven jar:install from /core) still fails, please post the failing test output (see /core/target/test-reports) so we can troubleshoot it.

                Comment


                • #9
                  Ben,

                  After checking out from CVS and running maven jar:install from /core the build fails. The failing test output is below.

                  Test-net.sf.acegisecurity.util.WebXmlToAcegiSecurityCon verterTests.txt contains:

                  Testsuite: net.sf.acegisecurity.util.WebXmlToAcegiSecurityCon verterTests
                  Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.032 sec

                  Testcase: testFileConversion(net.sf.acegisecurity.util.WebXm lToAcegiSecurityConverterTests): Caused an ERROR
                  Provider for javax.xml.transform.TransformerFactory cannot be found
                  javax.xml.transform.TransformerFactoryConfiguratio nError: Provider for javax.xml.transform.TransformerFactory cannot be found
                  at javax.xml.transform.TransformerFactory.newInstance (Unknown Source)
                  at net.sf.acegisecurity.util.WebXmlToAcegiSecurityCon verter.<init>(WebXmlToAcegiSecurityConverter.java: 52)
                  at net.sf.acegisecurity.util.WebXmlToAcegiSecurityCon verterTests.testFileConversion(WebXmlToAcegiSecuri tyConverterTests.java:32)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
                  at org.apache.commons.jelly.tags.ant.AntTag.doTag(Ant Tag.java:185)
                  at org.apache.commons.jelly.impl.TagScript.run(TagScr ipt.java:279)
                  at org.apache.commons.jelly.impl.ScriptBlock.run(Scri ptBlock.java:135)
                  at org.apache.commons.jelly.TagSupport.invokeBody(Tag Support.java:233)
                  at org.apache.commons.jelly.tags.core.IfTag.doTag(IfT ag.java:88)
                  at org.apache.commons.jelly.impl.TagScript.run(TagScr ipt.java:279)
                  at org.apache.commons.jelly.impl.ScriptBlock.run(Scri ptBlock.java:135)
                  at org.apache.maven.jelly.tags.werkz.MavenGoalTag.run BodyTag(MavenGoalTag.java:79)
                  at org.apache.maven.jelly.tags.werkz.MavenGoalTag$Mav enGoalAction.performAction(MavenGoalTag.java:110)
                  at com.werken.werkz.Goal.fire(Goal.java:639)
                  at com.werken.werkz.Goal.attain(Goal.java:575)
                  at com.werken.werkz.Goal.attainPrecursors(Goal.java:4 88)
                  at com.werken.werkz.Goal.attain(Goal.java:573)
                  at com.werken.werkz.Goal.attainPrecursors(Goal.java:4 88)
                  at com.werken.werkz.Goal.attain(Goal.java:573)
                  at org.apache.maven.plugin.PluginManager.attainGoals( PluginManager.java:671)
                  at org.apache.maven.MavenSession.attainGoals(MavenSes sion.java:263)
                  at org.apache.maven.cli.App.doMain(App.java:488)
                  at org.apache.maven.cli.App.main(App.java:1239)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
                  at com.werken.forehead.Forehead.run(Forehead.java:551 )
                  at com.werken.forehead.Forehead.main(Forehead.java:58 1)

                  Any help is greatly appreciated. Thanks.
                  __________________________

                  Comment


                  • #10
                    What JDK version are you using? It has to have support for XSL transforms.

                    Comment


                    • #11
                      I've tried 1.5 and 1.4, I believe. I haven't built with Maven before and couldn't find a java config anywhere so I've assumed it is just picking up the JAVA_HOME. Maybe that is a bad assumption. The test is complaining about not finding javax.xml.transform.TransformerFactory which makes me believe it is picking up 1.3 somewhere.

                      Is there a way I'm supposed to set the java version for the Maven build?

                      Thanks.

                      Comment


                      • #12
                        Using j2sdk1.4.2_02
                        Got latest from CVS
                        followed by: maven jar:install


                        Tests still failed:
                        [junit] Running net.sf.acegisecurity.ui.session.HttpSessionEventPu blisherTests
                        log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StaticWeb ApplicationContext).
                        log4j:WARN Please initialize the log4j system properly.
                        java.lang.IllegalArgumentException: setContext(...) never called, ApplicationContext must not be null
                        at org.springframework.util.Assert.notNull(Assert.jav a:90)
                        at net.sf.acegisecurity.ui.session.HttpSessionEventPu blisher.getContext(HttpSessionEventPublisher.java: 122)
                        at net.sf.acegisecurity.ui.session.HttpSessionEventPu blisherTests.testNullContextCheck(HttpSessionEvent PublisherTests.java:90)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.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.ja va: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:2 08)
                        at junit.framework.TestSuite.run(TestSuite.java:203)
                        at org.apache.tools.ant.taskdefs.optional.junit.JUnit TestRunner.run(JUnitTestRunner.java:325)
                        at org.apache.tools.ant.taskdefs.optional.junit.JUnit Task.executeInVM(JUnitTask.java:848)
                        at org.apache.tools.ant.taskdefs.optional.junit.JUnit Task.execute(JUnitTask.java:556)
                        at org.apache.tools.ant.taskdefs.optional.junit.JUnit Task.execute(JUnitTask.java:532)
                        at org.apache.tools.ant.Task.perform(Task.java:341)
                        at org.apache.commons.jelly.tags.ant.AntTag.doTag(Ant Tag.java:185)
                        at org.apache.commons.jelly.impl.TagScript.run(TagScr ipt.java:279)
                        at org.apache.commons.jelly.impl.ScriptBlock.run(Scri ptBlock.java:135)
                        at org.apache.commons.jelly.TagSupport.invokeBody(Tag Support.java:233)
                        at org.apache.commons.jelly.tags.core.IfTag.doTag(IfT ag.java:88)
                        at org.apache.commons.jelly.impl.TagScript.run(TagScr ipt.java:279)
                        at org.apache.commons.jelly.impl.ScriptBlock.run(Scri ptBlock.java:135)
                        at org.apache.maven.jelly.tags.werkz.MavenGoalTag.run BodyTag(MavenGoalTag.java:79)
                        at org.apache.maven.jelly.tags.werkz.MavenGoalTag$Mav enGoalAction.performAction(MavenGoalTag.java:110)
                        at com.werken.werkz.Goal.fire(Goal.java:639)
                        at com.werken.werkz.Goal.attain(Goal.java:575)
                        at com.werken.werkz.Goal.attainPrecursors(Goal.java:4 88)
                        at com.werken.werkz.Goal.attain(Goal.java:573)
                        at com.werken.werkz.Goal.attainPrecursors(Goal.java:4 88)
                        at com.werken.werkz.Goal.attain(Goal.java:573)
                        at org.apache.maven.plugin.PluginManager.attainGoals( PluginManager.java:671)
                        at org.apache.maven.MavenSession.attainGoals(MavenSes sion.java:263)
                        at org.apache.maven.cli.App.doMain(App.java:488)
                        at org.apache.maven.cli.App.main(App.java:1239)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
                        at java.lang.reflect.Method.invoke(Method.java:324)
                        at com.werken.forehead.Forehead.run(Forehead.java:551 )
                        at com.werken.forehead.Forehead.main(Forehead.java:58 1)
                        [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 1.781 sec
                        [junit] Running net.sf.acegisecurity.ui.webapp.AuthenticationProce ssingFilterEntryPointTests


                        --------------
                        [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.297 sec
                        [junit] Running net.sf.acegisecurity.util.StringSplitUtilsTests
                        [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0.031 sec
                        [junit] Running net.sf.acegisecurity.util.WebXmlToAcegiSecurityCon verterTests
                        [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.031 sec
                        [junit] [ERROR] TEST net.sf.acegisecurity.util.WebXmlToAcegiSecurityCon verterTests FAILED
                        [junit] Running net.sf.acegisecurity.vote.AbstractAccessDecisionMa nagerTests
                        [junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 0.047 sec
                        [junit] Running net.sf.acegisecurity.vote.AffirmativeBasedTests
                        [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0.187 sec
                        [junit] Running net.sf.acegisecurity.vote.BasicAclEntryVoterTests
                        ---------------




                        From test-report:

                        Testsuite: net.sf.acegisecurity.util.WebXmlToAcegiSecurityCon verterTests
                        Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.031 sec

                        Testcase: testFileConversion(net.sf.acegisecurity.util.WebXm lToAcegiSecurityConverterTests): Caused an ERROR
                        Provider for javax.xml.transform.TransformerFactory cannot be found
                        javax.xml.transform.TransformerFactoryConfiguratio nError: Provider for javax.xml.transform.TransformerFactory cannot be found
                        at javax.xml.transform.TransformerFactory.newInstance (Unknown Source)
                        at net.sf.acegisecurity.util.WebXmlToAcegiSecurityCon verter.<init>(WebXmlToAcegiSecurityConverter.java: 52)
                        at net.sf.acegisecurity.util.WebXmlToAcegiSecurityCon verterTests.testFileConversion(WebXmlToAcegiSecuri tyConverterTests.java:32)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
                        at org.apache.commons.jelly.tags.ant.AntTag.doTag(Ant Tag.java:185)
                        at org.apache.commons.jelly.impl.TagScript.run(TagScr ipt.java:279)
                        at org.apache.commons.jelly.impl.ScriptBlock.run(Scri ptBlock.java:135)
                        at org.apache.commons.jelly.TagSupport.invokeBody(Tag Support.java:233)
                        at org.apache.commons.jelly.tags.core.IfTag.doTag(IfT ag.java:88)
                        at org.apache.commons.jelly.impl.TagScript.run(TagScr ipt.java:279)
                        at org.apache.commons.jelly.impl.ScriptBlock.run(Scri ptBlock.java:135)
                        at org.apache.maven.jelly.tags.werkz.MavenGoalTag.run BodyTag(MavenGoalTag.java:79)
                        at org.apache.maven.jelly.tags.werkz.MavenGoalTag$Mav enGoalAction.performAction(MavenGoalTag.java:110)
                        at com.werken.werkz.Goal.fire(Goal.java:639)
                        at com.werken.werkz.Goal.attain(Goal.java:575)
                        at com.werken.werkz.Goal.attainPrecursors(Goal.java:4 88)
                        at com.werken.werkz.Goal.attain(Goal.java:573)
                        at com.werken.werkz.Goal.attainPrecursors(Goal.java:4 88)
                        at com.werken.werkz.Goal.attain(Goal.java:573)
                        at org.apache.maven.plugin.PluginManager.attainGoals( PluginManager.java:671)
                        at org.apache.maven.MavenSession.attainGoals(MavenSes sion.java:263)
                        at org.apache.maven.cli.App.doMain(App.java:488)
                        at org.apache.maven.cli.App.main(App.java:1239)
                        at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
                        at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
                        at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
                        at com.werken.forehead.Forehead.run(Forehead.java:551 )
                        at com.werken.forehead.Forehead.main(Forehead.java:58 1)


                        -----

                        Thanks

                        Comment


                        • #13
                          That first exception is not an error. As shown further down with test failures of zero, it is just an expected exception message.

                          I agree there is a problem in CVS right now. It seems a project.xml is missing dom4j.jar and also the shared resource files (like the stylesheet) are not in the classpath when executing the test. I'll ask Luke to look into it.

                          Comment


                          • #14
                            I am getting the same error. Further down the stack trace it shows that a test does in fact fail:

                            log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StaticWeb ApplicationContext).
                            log4j:WARN Please initialize the log4j system properly.
                            java.lang.IllegalArgumentException: setContext(...) never called, ApplicationContext must not be null
                            at org.springframework.util.Assert.notNull(Assert.jav a:90)
                            at net.sf.acegisecurity.ui.session.HttpSessionEventPu blisher.getContext(HttpSessionEventPublisher.java: 122)
                            at net.sf.acegisecurity.ui.session.HttpSessionEventPu blisherTests.testNullContextCheck(HttpSessionEvent PublisherTests.java:90)
                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
                            at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
                            at java.lang.reflect.Method.invoke(Method.java:585)
                            at junit.framework.TestCase.runTest(TestCase.java:154 )
                            at junit.framework.TestCase.runBare(TestCase.java:127 )
                            at junit.framework.TestResult$1.protect(TestResult.ja va: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:2 08)
                            at junit.framework.TestSuite.run(TestSuite.java:203)
                            at org.apache.tools.ant.taskdefs.optional.junit.JUnit TestRunner.run(JUnitTestRunner.java:325)
                            at org.apache.tools.ant.taskdefs.optional.junit.JUnit Task.executeInVM(JUnitTask.java:848)
                            at org.apache.tools.ant.taskdefs.optional.junit.JUnit Task.execute(JUnitTask.java:556)
                            at org.apache.tools.ant.taskdefs.optional.junit.JUnit Task.execute(JUnitTask.java:532)
                            at org.apache.tools.ant.Task.perform(Task.java:341)
                            at org.apache.commons.jelly.tags.ant.AntTag.doTag(Ant Tag.java:185)
                            at org.apache.commons.jelly.impl.TagScript.run(TagScr ipt.java:279)
                            at org.apache.commons.jelly.impl.ScriptBlock.run(Scri ptBlock.java:135)
                            at org.apache.commons.jelly.TagSupport.invokeBody(Tag Support.java:233)
                            at org.apache.commons.jelly.tags.core.IfTag.doTag(IfT ag.java:88)
                            at org.apache.commons.jelly.impl.TagScript.run(TagScr ipt.java:279)
                            at org.apache.commons.jelly.impl.ScriptBlock.run(Scri ptBlock.java:135)
                            at org.apache.maven.jelly.tags.werkz.MavenGoalTag.run BodyTag(MavenGoalTag.java:79)
                            at org.apache.maven.jelly.tags.werkz.MavenGoalTag$Mav enGoalAction.performAction(MavenGoalTag.java:110) [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.875 sec

                            at com.werken.werkz.Goal.fire(Goal.java:639)
                            at com.werken.werkz.Goal.attain(Goal.java:575)
                            at com.werken.werkz.Goal.attainPrecursors(Goal.java:4 88)
                            at com.werken.werkz.Goal.attain(Goal.java:573)
                            at com.werken.werkz.Goal.attainPrecursors(Goal.java:4 88)
                            at com.werken.werkz.Goal.attain(Goal.java:573)
                            at org.apache.maven.plugin.PluginManager.attainGoals( PluginManager.java:671)
                            at org.apache.maven.MavenSession.attainGoals(MavenSes sion.java:263)
                            at org.apache.maven.cli.App.doMain(App.java:488)
                            at org.apache.maven.cli.App.main(App.java:1239)
                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
                            at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
                            at java.lang.reflect.Method.invoke(Method.java:585)
                            at com.werken.forehead.Forehead.run(Forehead.java:551 )
                            at com.werken.forehead.Forehead.main(Forehead.java:58 1)
                            [junit] Running net.sf.acegisecurity.ui.webapp.AuthenticationProce ssingFilterEntryPointTests
                            log4j:WARN No appenders could be found for logger (org.springframework.core.CollectionFactory).
                            log4j:WARN Please initialize the log4j system properly.
                            [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.203 sec
                            [junit] Running net.sf.acegisecurity.ui.webapp.AuthenticationProce ssingFilterTests
                            log4j:WARN No appenders could be found for logger (org.springframework.core.CollectionFactory).
                            log4j:WARN Please initialize the log4j system properly.
                            [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.172 sec
                            [junit] Running net.sf.acegisecurity.ui.x509.X509ProcessingFilterE ntryPointTests
                            log4j:WARN No appenders could be found for logger (org.springframework.core.CollectionFactory).
                            log4j:WARN Please initialize the log4j system properly.
                            [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.172 sec
                            [junit] Running net.sf.acegisecurity.ui.x509.X509ProcessingFilterT ests
                            log4j:WARN No appenders could be found for logger (org.springframework.core.CollectionFactory).
                            log4j:WARN Please initialize the log4j system properly.
                            [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0.219 sec
                            [junit] Running net.sf.acegisecurity.util.FilterChainProxyTests
                            log4j:WARN No appenders could be found for logger (org.springframework.beans.factory.xml.XmlBeanDefi nitionReader).
                            log4j:WARN Please initialize the log4j system properly.
                            [junit] Tests run: 5, Failures: 1, Errors: 0, Time elapsed: 0.672 sec
                            [junit] [ERROR] TEST net.sf.acegisecurity.util.FilterChainProxyTests FAILED
                            [junit] Running net.sf.acegisecurity.util.FilterToBeanProxyTests


                            Also, what maven.repo.remote are you putting in your maven build.properties file to get the apacheds-main-0.9-SNAPSHOT.jar file? I have http://www.ibiblio.org/maven/ but this jar file is not listed there. For now, I have manually installed the apacheds-main-0.9.jar.

                            Comment


                            • #15
                              In the project.xml file, you have

                              Code:
                              <dependency>
                                    <groupId>apache-directory</groupId>
                                    <artifactId>apacheds-main</artifactId>
                                    <version>0.9-SNAPSHOT</version>
                                    <type>jar</type>
                              </dependency>
                              This should be:
                              Code:
                              <dependency>
                                    <groupId>directory</groupId>
                                    <artifactId>apacheds-main</artifactId>
                                    <version>0.9-SNAPSHOT</version>
                                    <type>jar</type>
                              </dependency>
                              On ibiblio, this jar file is under directory, not apache-directory.

                              Comment

                              Working...
                              X