Cactus
  1. Cactus
  2. CACTUS-228

Can not start Tomcat 5.5.7 to run unit test

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.7.1
    • Fix Version/s: 1.8
    • Component/s: Maven Integration
    • Labels:
      None
    • Environment:
      Linux, Tomcat 5.5.7, java version "1.4.2_05"

      Description

      tomcat test container fail to be properly started by maven, throwing a javax.naming.NamingException,
      The maven cactus test then wait indefinitly for container to respond request:
      cactus:test-war:
      [cactus] -----------------------------------------------------------------
      [cactus] Running tests against Tomcat 5.5.7 @ http://localhost:9090
      [cactus] -----------------------------------------------------------------

      I'll attach example project reproducing problem.

      1. tomcat5x.out
        3 kB
        David Delbecq
      2. bug-test.tar.gz
        2 kB
        David Delbecq

        Issue Links

          Activity

          David Delbecq created issue -
          Hide
          David Delbecq added a comment -

          test case failing

          Show
          David Delbecq added a comment - test case failing
          David Delbecq made changes -
          Field Original Value New Value
          Attachment bug-test.tar.gz [ 12312073 ]
          Hide
          David Delbecq added a comment -

          tomcat output

          Show
          David Delbecq added a comment - tomcat output
          David Delbecq made changes -
          Attachment tomcat5x.out [ 12312074 ]
          Hide
          David Delbecq added a comment -

          Complete maven output:
          $ maven cactus
          __ __

          \/ __ Apache_ ___
            \/ / ` \ V / -) ' \ ~ intelligent projects ~
          _   _,_ _/___ _ _ v. 1.0.1

          build:start:

          cactus:check-plugin-dependencies:

          cactus:init:

          cactus:test:
          cactus:check-plugin-dependencies:

          cactus:init:
          Overriding previous definition of reference to cactus.classpath
          Overriding previous definition of reference to cactus.compile.src.set
          Overriding previous definition of reference to cactus.scanner.classpath

          cactus:init-report:

          java:prepare-filesystem:

          java:compile:
          [echo] Compiling to /home/delbd/dev/dissco/workspace/bug-test/target/classes
          [echo] No java source files to compile.

          cactus:compile:

          cactus:cactifywar:
          war:init:

          war:war-resources:
          [copy] Copying 1 file to /home/delbd/dev/dissco/workspace/bug-test/target/dissco_shark/WEB-INF

          java:prepare-filesystem:

          java:compile:
          [echo] Compiling to /home/delbd/dev/dissco/workspace/bug-test/target/classes
          [echo] No java source files to compile.

          java:jar-resources:

          test:prepare-filesystem:

          test:test-resources:

          test:compile:
          [echo] No test source files to compile.

          test:test:
          [echo] No tests to run.

          war:webapp:
          [echo] Assembling webapp dissco_shark

          war:war:
          [echo] Building WAR dissco_shark
          [jar] Building jar: /home/delbd/dev/dissco/workspace/bug-test/target/dissco_shark.war

          [cactifywar] Analyzing war: /home/delbd/dev/dissco/workspace/bug-test/target/dissco_shark.war
          [cactifywar] Building war: /home/delbd/dev/dissco/workspace/bug-test/target/dissco_shark-cactus.war
          [cactifywar] Warning: selected war files include a WEB-INF/web.xml which will be ignored (please use webxml attribute to war task)

          cactus:test-war:
          [echo] /home/delbd/dev/dissco/workspace/bug-test/src/webapp/WEB-INF/web.xml
          [cactus] -----------------------------------------------------------------
          [cactus] Running tests against Tomcat 5.5.7 @ http://localhost:9090
          [cactus] -----------------------------------------------------------------

          Show
          David Delbecq added a comment - Complete maven output: $ maven cactus __ __ \/ __ Apache _ ___   \/ / ` \ V / - ) ' \ ~ intelligent projects ~ _   _ ,_ _/___ _ _ v. 1.0.1 build:start: cactus:check-plugin-dependencies: cactus:init: cactus:test: cactus:check-plugin-dependencies: cactus:init: Overriding previous definition of reference to cactus.classpath Overriding previous definition of reference to cactus.compile.src.set Overriding previous definition of reference to cactus.scanner.classpath cactus:init-report: java:prepare-filesystem: java:compile: [echo] Compiling to /home/delbd/dev/dissco/workspace/bug-test/target/classes [echo] No java source files to compile. cactus:compile: cactus:cactifywar: war:init: war:war-resources: [copy] Copying 1 file to /home/delbd/dev/dissco/workspace/bug-test/target/dissco_shark/WEB-INF java:prepare-filesystem: java:compile: [echo] Compiling to /home/delbd/dev/dissco/workspace/bug-test/target/classes [echo] No java source files to compile. java:jar-resources: test:prepare-filesystem: test:test-resources: test:compile: [echo] No test source files to compile. test:test: [echo] No tests to run. war:webapp: [echo] Assembling webapp dissco_shark war:war: [echo] Building WAR dissco_shark [jar] Building jar: /home/delbd/dev/dissco/workspace/bug-test/target/dissco_shark.war [cactifywar] Analyzing war: /home/delbd/dev/dissco/workspace/bug-test/target/dissco_shark.war [cactifywar] Building war: /home/delbd/dev/dissco/workspace/bug-test/target/dissco_shark-cactus.war [cactifywar] Warning: selected war files include a WEB-INF/web.xml which will be ignored (please use webxml attribute to war task) cactus:test-war: [echo] /home/delbd/dev/dissco/workspace/bug-test/src/webapp/WEB-INF/web.xml [cactus] ----------------------------------------------------------------- [cactus] Running tests against Tomcat 5.5.7 @ http://localhost:9090 [cactus] -----------------------------------------------------------------
          Hide
          Archimedes Trajano added a comment -

          Also happens on Windows with Tomcat 5.5.9

          Show
          Archimedes Trajano added a comment - Also happens on Windows with Tomcat 5.5.9
          Hide
          Vincent Massol added a comment -

          Once we move to Cargo this will be supported OOB as Cargo already supports Tomcat 5.x and 5.5.x

          Show
          Vincent Massol added a comment - Once we move to Cargo this will be supported OOB as Cargo already supports Tomcat 5.x and 5.5.x
          Vincent Massol made changes -
          Link This issue is part of CACTUS-151 [ CACTUS-151 ]
          Hide
          Petar Tahchiev added a comment -

          Should be working with the latest release of Cactus, using Cargo.

          Show
          Petar Tahchiev added a comment - Should be working with the latest release of Cactus, using Cargo.
          Petar Tahchiev made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.8 [ 12310167 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              David Delbecq
            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development