Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

0 votes

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
TAGS
Community showcase
Published in Jira

Jira Cloud Performance Improvements

Hello everyone, I am a product manager in the Jira Cloud team focused on making sure our customers have a delightful experience using our products. Towards that goal, one of the areas which is extr...

178 views 2 9
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you