Menu

Start tomcat fail after instr operation

wangcheng
2012-05-12
2013-05-09
  • wangcheng

    wangcheng - 2012-05-12

    JDK Version:"1.6.0_29"
    tomcat Version 6.0.32
    After instr by command :"
    java emma instr -m overwrite -ip E:\ICS\apache-tomcat-6.0.32\webapps\Mars\WEB-INF\classes\com\huawei -out e:\coverage.em", try to start tomcat ,some errors eccor.

    i find error information in catalina.log and localhost.log

    catalina.log information:
    2012-5-12 11:28:53 org.apache.catalina.core.StandardService start
    信息: Starting service Catalina
    2012-5-12 11:28:53 org.apache.catalina.core.StandardEngine start
    信息: Starting Servlet Engine: Apache Tomcat/6.0.32
    2012-5-12 11:28:53 org.apache.catalina.startup.HostConfig deployDescriptor
    信息: Deploying configuration descriptor host-manager.xml
    2012-5-12 11:28:53 org.apache.catalina.startup.HostConfig deployDescriptor
    信息: Deploying configuration descriptor manager.xml
    2012-5-12 11:28:53 org.apache.catalina.startup.HostConfig deployWAR
    信息: Deploying web application archive Mars.war
    2012-5-12 11:28:53 org.apache.catalina.core.StandardContext start
    严重: Error listenerStart
    2012-5-12 11:28:53 org.apache.catalina.core.StandardContext start
    严重: Context  startup failed due to previous errors
    2012-5-12 11:28:53 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
    严重: The web application  registered the JDBC driver  but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
    2012-5-12 11:28:53 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
    严重: The web application  registered the JDBC driver  but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
    2012-5-12 11:28:53 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory docs
    2012-5-12 11:28:53 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory examples
    2012-5-12 11:28:53 org.apache.catalina.startup.HostConfig deployDirectory
    信息: Deploying web application directory ROOT
    2012-5-12 11:28:53 org.apache.coyote.http11.Http11Protocol start
    信息: Starting Coyote HTTP/1.1 on http-18080
    2012-5-12 11:28:53 org.apache.jk.common.ChannelSocket init
    信息: JK: ajp13 listening on /0.0.0.0:18009
    2012-5-12 11:28:53 org.apache.jk.server.JkMain start
    信息: Jk running ID=0 time=0/15  config=null
    2012-5-12 11:28:53 org.apache.catalina.startup.Catalina start
    信息: Server startup in 776 ms

    localhost.log information:
    2012-5-12 11:28:53 org.apache.catalina.core.StandardContext listenerStart
    严重: Error configuring application listener of class com.huawei.ics.common.SessionListener
    java.lang.NoClassDefFoundError: com/vladium/emma/rt/RT

    at com.huawei.ics.common.SessionListener.$VRi(SessionListener.java)
    at com.huawei.ics.common.SessionListener.<clinit>(SessionListener.java)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4149)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
    at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943)
    at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    at org.apache.catalina.core.StandardService.start(StandardService.java:525)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
    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.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    Caused by: java.lang.ClassNotFoundException: com.vladium.emma.rt.RT
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
    … 32 more
    2012-5-12 11:28:53 org.apache.catalina.core.StandardContext listenerStart
    严重: Skipped installing application listeners due to previous error(s)

     
  • Marc R. Hoffmann

    Make sure emma.jar is deployed with you application under test.

    Best regards,
    -marc

     
  • wangcheng

    wangcheng - 2012-05-14

    is there any problems in the below steps :

    1.     copy emma.jar to  $JAVA_HOME/lib/
    2.     export CLASSPATH=:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/emma.jar
    3.     java emma instr -m overwrite -ip ….
     

Log in to post a comment.