openejb-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zeddius <avalyu...@gmail.com>
Subject java.lang.NoClassDefFoundError for SynchronizedDescriptiveStatistics
Date Fri, 03 Aug 2012 09:59:33 GMT
Hi all,

I've got a bean:
@Singleton
@ConcurrencyManagement(ConcurrencyManagementType.BEAN)
pulic class TestBean {
  ...
  private final SynchronizedDescriptiveStatistics stats = new
SynchronizedDescriptiveStatistics(250);
  ...
}

Upon a deployment I get:
java.lang.NoClassDefFoundError: Could not fully load class:
org.test.TestBean
 due
to:Lorg/apache/commons/math3/stat/descriptive/SynchronizedDescriptiveStatistics;
 in classLoader: 
org.apache.openejb.core.TempClassLoader@2e1c6600
	at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:136)
	at org.apache.xbean.finder.ClassFinder.<init>(ClassFinder.java:127)
	at
org.apache.openejb.config.rules.CheckCallbacks.validate(CheckCallbacks.java:90)
	at
org.apache.openejb.config.rules.ValidationBase.validate(ValidationBase.java:45)
	at org.apache.openejb.config.AppValidator.validate(AppValidator.java:96)
	at
org.apache.openejb.config.ValidateModules.deploy(ValidateModules.java:37)
	at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:321)
	at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:792)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:631)
	at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:588)
	at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
	at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5161)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
	at
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:662)

But when I put commons-math3.jar into tomee/lib folder everything work
correctly. What is the reason for not working when the jar in WEB-INF/lib ?



--
View this message in context: http://openejb.979440.n4.nabble.com/java-lang-NoClassDefFoundError-for-SynchronizedDescriptiveStatistics-tp4656648.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message