• Spring Security issue: Duplicate detected.

    So I ran into an issue today that has been detailed at http://forum.springframework.org/showthread.php?p=193052 in the Spring forums that at first glance, looked identical to my issue. But this was in fact not my issue.
    First off, when I was using acegi, I declared an applicationContext-test.xml that myTestNG would instanciate. I then would import my other applicationContext*.xml’s [...]

  • Keeping Tomcat binaries locally for integration testing on Linux

    I ran into an issue of server timeouts with embedded Tomcat in my Maven build once I moved to my Linux Build Server.
    I defined the cargo plugin as that is starting my embedded Tomcat during the build:
    <plugin>
    <groupId>org.codehaus.cargo</groupId>
    <artifactId>cargo-maven2-plugin</artifactId>
    <version>1.0-alpha-4</version>
    <configuration>
    <wait>${cargo.wait}</wait>
    <container>
    <containerId>${cargo.container}</containerId>
    <output>${project.build.directory}/${cargo.container}.log</output>
    <log>
    ${project.build.directory}/${cargo.container}-cargo.log
    </log>
    <zipUrlInstaller>
    <url>${cargo.container.url}</url>
    <installDir>${installDir}</installDir>
    </zipUrlInstaller>
    </container>

    </plugin>
    <cargo.container>tomcat5x</cargo.container>
    <cargo.container.home>${env.CATALINA_HOME}</cargo.container.home>
    <cargo.container.url>
    http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.26/bin/apache-tomcat-5.5.26.zip
    </cargo.container.url>
    <cargo.host>localhost</cargo.host>
    <cargo.port>8888</cargo.port>
    <cargo.logging>high</cargo.logging>
    <!– ThisĀ  setting holds the container at your prompt –>
    <cargo.wait>false</cargo.wait>
    The issue stemmed from:
    <cargo.container.url>
    http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.26/bin/apache-tomcat-5.5.26.zip
    </cargo.container.url>
    The server would [...]

  • Deploying webapp to multiple containers

    In my efforts to integrate Jetty, tomcat and selenium into my Maven build for continuous integration tests, I have run into some strange issues.
    It seems that if I run my webapp-2.2.war in my standalone Tomcat 5.5 installation, or in my Maven integrated Jetty, I can refer to my application at my root context of ‘/’ [...]

  • Testing CXF within embeded Tomcat using Spring

    I converted from XFire to CXF which is really XFire 2 I guess. Now I am using Maven, DBUnit, TestNG, H2 and embedded Tomcat for continuous integration testing. Now I wanted to be able to test my webservice contracts as well, and Spring has helped me to accomplish that.
    In my webservices war, I first added [...]