Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Not A Bug
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Ubuntu 9.10 - Maven 2.2.1
    • Number of attachments :
      0

      Description

      The goal tomcat:run is failing, with version 1.0-SNAPSHOT (20100111.220352-18)

      The error is the same that can be seen in MTOMCAT-6, I think it may be the same problem, but I can't reopen the issue.

      This is the log:

      [INFO] [tomcat:run]
      [INFO] Running war on http://localhost:8080/InventarioGEI-Logica
      [INFO] Creating Tomcat server configuration at /home/inalm/workspace3/InventarioGEI/GEI-Logica/target/tomcat
      15-ene-2010 15:24:19 org.apache.catalina.startup.Embedded start
      INFO: Starting tomcat server
      15-ene-2010 15:24:19 org.apache.catalina.core.StandardEngine start
      INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
      15-ene-2010 15:24:19 org.apache.catalina.loader.WebappClassLoader validateJarFile
      INFO: validateJarFile(/home/inalm/workspace3/InventarioGEI/GEI-Logica/target/InventarioGEI/WEB-INF/lib/servlet-api-2.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
      15-ene-2010 15:24:20 org.apache.catalina.core.StandardContext filterStart
      GRAVE: Exception starting filter springSecurityFilterChain
      java.lang.ClassCastException: org.springframework.web.filter.DelegatingFilterProxy cannot be cast to javax.servlet.Filter
      	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:255)
      	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:397)
      	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
      	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3709)
      	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4363)
      	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
      	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      	at org.apache.catalina.startup.Embedded.start(Embedded.java:825)
      	at org.codehaus.mojo.tomcat.AbstractRunMojo.startContainer(AbstractRunMojo.java:477)
      	at org.codehaus.mojo.tomcat.AbstractRunMojo.execute(AbstractRunMojo.java:207)
      	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:331)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
      	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:597)
      	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      15-ene-2010 15:24:20 org.apache.catalina.core.StandardContext start
      GRAVE: Error filterStart
      15-ene-2010 15:24:20 org.apache.catalina.core.StandardContext start
      GRAVE: Context [/InventarioGEI-Logica] startup failed due to previous errors
      15-ene-2010 15:24:21 org.apache.coyote.http11.Http11Protocol init
      INFO: Initializing Coyote HTTP/1.1 on http-8080
      15-ene-2010 15:24:21 org.apache.coyote.http11.Http11Protocol start
      INFO: Starting Coyote HTTP/1.1 on http-8080
      

        Activity

        Hide
        Olivier Lamy added a comment -

        servlet-api-2.3 must be scope provided.

        Show
        Olivier Lamy added a comment - servlet-api-2.3 must be scope provided.
        Hide
        Álvaro Lobato added a comment -

        Fixed, my mistake. Thanks

        Show
        Álvaro Lobato added a comment - Fixed, my mistake. Thanks

          People

          • Assignee:
            Unassigned
            Reporter:
            Álvaro Lobato
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: