My Instrumented app could not find the Clover classes necessary to record coverage on tomcat

I am using eclipse juno.I instrumented my code with clover plugin.Then i tried to run my app on server(tomcat v7.0).

I had http 404 error.

Type Status report

message

description The requested resource () is not available.

error stack tree:

Ağu 14, 2012 9:34:22 PM org.apache.catalina.core.AprLifecycleListener init

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jre7\bin;D:\Windows\Sun\Java\bin;D:\Windows\system32;D:\Windows;D:\Program Files\Common Files\Microsoft Shared\Windows Live;D:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;D:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Windows\system32;D:\Windows;D:\Windows\System32\Wbem;D:\Windows\System32\WindowsPowerShell\v1.0\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\Tools\Binn\;D:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;D:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;D:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;D:\Program Files (x86)\Windows Live\Shared;D:\Program Files (x86)\Flash Magic;D:\Program Files\Java\jdk1.7.0_05\bin;.

Ağu 14, 2012 9:34:22 PM org.apache.tomcat.util.digester.SetPropertiesRule begin

WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:burakWeb' did not find a matching property.

Ağu 14, 2012 9:34:22 PM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["http-bio-8081"]

Ağu 14, 2012 9:34:22 PM org.apache.coyote.AbstractProtocol init

INFO: Initializing ProtocolHandler ["ajp-bio-8010"]

Ağu 14, 2012 9:34:22 PM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 553 ms

Ağu 14, 2012 9:34:22 PM org.apache.catalina.core.StandardService startInternal

INFO: Starting service Catalina

Ağu 14, 2012 9:34:22 PM org.apache.catalina.core.StandardEngine startInternal

INFO: Starting Servlet Engine: Apache Tomcat/7.0.29

Ağu 14, 2012 9:34:23 PM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler ["http-bio-8081"]

Ağu 14, 2012 9:34:23 PM org.apache.coyote.AbstractProtocol start

INFO: Starting ProtocolHandler ["ajp-bio-8010"]

Ağu 14, 2012 9:34:23 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 391 ms

Your instrumented application could not find the Clover classes necessary to record coverage. Please use the 'Run with Clover' option to correct this. (class java.lang.NoClassDefFoundError:com_cenqua_clover/CloverVersionInfo)

Ağu 14, 2012 9:34:24 PM org.apache.catalina.core.ApplicationContext log

INFO: Marking servlet com.yapikredi.burak.burak as unavailable

Ağu 14, 2012 9:34:24 PM org.apache.catalina.core.StandardWrapperValve invoke

SEVERE: Allocate exception for servlet com.yapikredi.burak.burak

java.lang.ClassNotFoundException: com_cenqua_clover.CoverageRecorder

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)

at com.yapikredi.burak.burak.<init>(burak.java:23)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at java.lang.Class.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:134)

at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1136)

at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:857)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:136)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)

at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

1 answer

This widget could not be displayed.

The following error message:

Your instrumented application could not find the Clover classes necessary to record coverage. Please use the 'Run with Clover' option to correct this. (class java.lang.NoClassDefFoundError:com_cenqua_clover/CloverVersionInfo)

means that Clover classes were not found at runtime.

You have to either:

a) put clover.jar in Tomcat lib directory (TOMCAT_HOME/lib)

or

b) point to clover.jar location during Tomcat startup (e.g. by 'set CLASSPATH=/path/to/clover.jar' in TOMCAT_HOME/bin/setenv.bat)

or in case you run server from Eclipse

c) choose "Run with Clover as ..." option (instead of "Run as ...")

Regards
Marek

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 6 hours ago in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

26 views 0 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you