Uploaded image for project: 'Apache Tomcat Maven Plugin'
  1. Apache Tomcat Maven Plugin
  2. MTOMCAT-146

Multiple executions of run-war-only has Valve problems at shutdown

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0-beta-1
    • None
    • tomcat6
    • None

    Description

      INFO: Stopping Coyote HTTP/1.1 on http-51155
      Apr 18, 2012 8:19:17 AM org.apache.catalina.core.StandardPipeline unregisterValve
      INFO: Can't unregister valve org.apache.catalina.core.StandardEngineValve[localEngine]
      javax.management.InstanceNotFoundException: localEngine:type=Valve,name=StandardEngineValve
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1094)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.exclusiveUnregisterMBean(DefaultMBeanServerInterceptor.java:415)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.unregisterMBean(DefaultMBeanServerInterceptor.java:403)
      	at com.sun.jmx.mbeanserver.JmxMBeanServer.unregisterMBean(JmxMBeanServer.java:506)
      	at org.apache.catalina.core.StandardPipeline.unregisterValve(StandardPipeline.java:322)
      	at org.apache.catalina.core.StandardPipeline.stop(StandardPipeline.java:275)
      	at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1103)
      	at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:468)
      	at org.apache.catalina.startup.Embedded.stop(Embedded.java:867)
      	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.apache.tomcat.maven.common.run.EmbeddedRegistry.shutdownAll(EmbeddedRegistry.java:110)
      	at org.apache.tomcat.maven.plugin.tomcat6.ShutdownMojo.execute(ShutdownMojo.java:63)
      
        <plugin>
                    <groupId>org.apache.tomcat.maven</groupId>
                    <artifactId>tomcat6-maven-plugin</artifactId>
                    <version>2.0-beta-1</version>
                      <executions>
      
                          <execution>
                              <id>tomcat-run</id>
                              <goals>
                                  <goal>run-war-only</goal>
                              </goals>
                              <phase>pre-integration-test</phase>
                              <configuration>
                                  <path>/</path>
                                  <port>${tomcat.port}</port>
                                  <uriEncoding>UTF-8</uriEncoding>
                                  <warDirectory>${project.build.directory}/webapps/solr/</warDirectory>
                                  <fork>true</fork>
                                  <ignorePackaging>true</ignorePackaging>
                                  <contextFile>src/test/context.xml</contextFile>
                                  <systemProperties>
                                    <solr.solr.home>${project.build.directory}/solr_home</solr.solr.home>
                                    <bt.test.plugin.jar>${project.build.directory}/bt-rni-solr3x-plugins.jar</bt.test.plugin.jar>
                                    <bt.root>../../../../..</bt.root>
                                  </systemProperties>
                              </configuration>
                          </execution>
      
                          <execution>
                              <id>tomcat2-run</id>
                              <goals>
                                  <goal>run-war-only</goal>
                              </goals>
                              <phase>pre-integration-test</phase>
                              <configuration>
                                  <path>/</path>
                                  <port>${tomcat2.port}</port>
                                  <uriEncoding>UTF-8</uriEncoding>
                                  <warDirectory>${project.build.directory}/webapps/solr2/</warDirectory>
                                  <configurationDir>${project.build.directory}/tomcat2</configurationDir>
                                  <fork>true</fork>
                                  <ignorePackaging>true</ignorePackaging>
                                  <contextFile>src/test/context.xml</contextFile>
                                  <systemProperties>
                                    <solr.solr.home>${project.build.directory}/solr2</solr.solr.home>
                                    <bt.test.plugin.jar>${project.build.directory}/bt-rni-solr3x-plugins.jar</bt.test.plugin.jar>
                                    <bt.root>../../../../..</bt.root>
                                  </systemProperties>
                              </configuration>
                          </execution>
      
      
                          <execution>
                              <id>tomcat-shutdown</id>
                              <goals>
                                <!-- shuts down all -->
                                  <goal>shutdown</goal>
                              </goals>
                              <phase>post-integration-test</phase>
                          </execution>
                      </executions>
                  </plugin>
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            olamy Olivier Lamy
            bmargulies Benson Margulies
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment