[ 
http://jira.codehaus.org/browse/MTOMCAT-33?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olivier Lamy closed MTOMCAT-33.
-------------------------------

    Resolution: Duplicate
      Assignee: Olivier Lamy

> ClassCastException when running tomcat:run
> ------------------------------------------
>
>                 Key: MTOMCAT-33
>                 URL: http://jira.codehaus.org/browse/MTOMCAT-33
>             Project: Maven 2.x Tomcat Plugin
>          Issue Type: Bug
>         Environment: Mac OS X. java version "1.5.0_19", Maven version: 2.0.9
>            Reporter: Ran Tavory
>            Assignee: Olivier Lamy
>
> It seems like a bug, but I'm kind of new to maven so forgive me if it's just 
> my fault.
> When I run mvn tomcat:run I get a class-cast exception, no matter what my 
> web.xml contains (I tried changing it).
> So it could be bogus configuration on my side, maybe incorrect pom or 
> something, but I haven't been able to figure this out.
> $ mvn tomcat:run -e
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'tomcat'.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Building ImageServer
> [INFO]    task-segment: [tomcat:run]
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Preparing tomcat:run
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> Downloading: 
> http://obweb.il.outbrain.com:8081/nexus/content/groups/public/velocity/velocity/1.5-beta2/velocity-1.5-beta2.pom
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [tomcat:run]
> [INFO] Running war on http://localhost:8080/ImageServer
> [INFO] Using existing Tomcat server configuration at 
> /Users/ran/dev/obgit/trunk/ImageServer/target/tomcat
> Aug 30, 2009 11:34:19 AM org.apache.catalina.startup.Embedded start
> INFO: Starting tomcat server
> Aug 30, 2009 11:34:19 AM org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
> Aug 30, 2009 11:34:20 AM org.apache.catalina.core.StandardContext filterStart
> SEVERE: Exception starting filter struts2
> java.lang.ClassCastException: 
> com.outbrain.webapps.documentmediaserver.ImageServerFilterDispatcher
>       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:4356)
>       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:385)
>       at 
> org.codehaus.mojo.tomcat.AbstractRunMojo.execute(AbstractRunMojo.java:144)
>       at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>       at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
>       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:287)
>       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:585)
>       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)
> Aug 30, 2009 11:34:20 AM org.apache.catalina.core.StandardContext start
> SEVERE: Error filterStart
> Aug 30, 2009 11:34:20 AM org.apache.catalina.core.StandardContext start
> SEVERE: Context [/ImageServer] startup failed due to previous errors
> Aug 30, 2009 11:34:20 AM org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> Aug 30, 2009 11:34:20 AM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> $ mvn -version
> Maven version: 2.0.9
> Java version: 1.5.0_19
> OS name: "mac os x" version: "10.5.8" arch: "i386" Family: "unix"
> $ java -version
> java version "1.5.0_19"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304)
> Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode, sharing)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to