Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » TPTP with Tomcat and server=controlled agent causes NoClassDefFoundError
TPTP with Tomcat and server=controlled agent causes NoClassDefFoundError [message #139938] Wed, 04 February 2009 18:11 Go to next message
alexk is currently offline alexkFriend
Messages: 1
Registered: July 2009
Junior Member
Hi,

I recently started using TPTP.
My configuration is as follows:
- Eclipse 3.4
- TPTP Agent Controller 4.5
- Java 1.6
- Windows Home edition

I configured Tomcat to pick up Agent DLLs straight from the Eclipse
integrated TPTP installation.
Not to mention having a bit of small nuisances like no Monitor tab is
present in Eclipse Profiling configuration, I was however able to run the
process with "server=enabled" agent and see some profiling information,
although this eventually killed the Tomcat process.
When I tried "server=controlled", my web application running on Tomcat
failed to start. The Tomcat log shows
===============================================
org.apache.catalina.core.StandardContext listenerStart

SEVERE: Exception sending context initialized event to listener instance
of class org.springframework.web.context.ContextLoaderListener

java.lang.NoClassDefFoundError:
edu/emory/mathcs/backport/java/util/concurrent/ConcurrentHas hMap
===============================================
My "just guess" is that because the "server=contolled" agent suspends the
Tomcat until I attach to the process from Eclipse, the normal application
initialization on Tomcat disrupts , so that it cannot find needed
libraries anymore.

Any ideas and help is highly appreciated.

Alex
Re: TPTP with Tomcat and server=controlled agent causes NoClassDefFoundError [message #140351 is a reply to message #139938] Thu, 12 February 2009 17:48 Go to previous message
Eugene Chan is currently offline Eugene ChanFriend
Messages: 287
Registered: July 2009
Senior Member
Hi Alex,

With WTP-TPTP integration, you can start the Tomcat instance in workbench in
profiling mode. It will enabled Tomcat with the necessary profiling option
automatically. However, the Tomcat server is started in enabled mode.
Were you running the profiling session in memory analysis(HeapProf) or
execution analysis(CGProf), or thread analysis(ThreadProf)?

Eugene

"alexk " <akopylov@sympatico.ca> wrote in message
news:2a975ada81dd6f70acbebc4716c34e0a$1@www.eclipse.org...
> Hi,
>
> I recently started using TPTP.
> My configuration is as follows:
> - Eclipse 3.4
> - TPTP Agent Controller 4.5
> - Java 1.6
> - Windows Home edition
>
> I configured Tomcat to pick up Agent DLLs straight from the Eclipse
> integrated TPTP installation.
> Not to mention having a bit of small nuisances like no Monitor tab is
> present in Eclipse Profiling configuration, I was however able to run the
> process with "server=enabled" agent and see some profiling information,
> although this eventually killed the Tomcat process.
> When I tried "server=controlled", my web application running on Tomcat
> failed to start. The Tomcat log shows
> ===============================================
> org.apache.catalina.core.StandardContext listenerStart
> SEVERE: Exception sending context initialized event to listener instance
> of class org.springframework.web.context.ContextLoaderListener
> java.lang.NoClassDefFoundError:
> edu/emory/mathcs/backport/java/util/concurrent/ConcurrentHas hMap
> ===============================================
> My "just guess" is that because the "server=contolled" agent suspends the
> Tomcat until I attach to the process from Eclipse, the normal application
> initialization on Tomcat disrupts , so that it cannot find needed
> libraries anymore.
>
> Any ideas and help is highly appreciated.
>
> Alex
>
Previous Topic:agent controller
Next Topic:NullpointerException WorkbenchExecutionDeploymentAdapter.java:502
Goto Forum:
  


Current Time: Mon Nov 24 01:23:12 GMT 2014

Powered by FUDForum. Page generated in 0.01770 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software