I am working on upgrading
from Jboss-3.2.3 to Jboss-4.0.5. I get a
NoClassDefFoundError when I
start my server while deploying EJBs
which have velocity classes
in them. The jar has the Velocity jars
and this works for
Jboss-3.2.3 but does not work for Jboss-4.0.5.The
error I get is below. Do we
need any extra configuration settings for
the velocity classes to
load?
Thanks
Harish
java.lang.NoClassDefFoundError:
org/apache/velocity/context/Context
at
java.lang.Class.getDeclaredMethods0(Native Method)
at
java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
at
java.lang.Class.privateGetPublicMethods(Class.java:1778)
at java.lang.Class.getMethods(Class.java:832)
at
org.jboss.verifier.strategy.AbstractVerifier.hasEJBCreateMethod(Abstra
ct
Verifier.java:687)
at
org.jboss.verifier.strategy.EJBVerifier20.verifySessionBean(EJBVerifie
r2
0.java:848)
at
org.jboss.verifier.strategy.EJBVerifier20.checkSession(EJBVerifier20.j
av
a:78)
at
org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:181)
at
org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:594)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
av
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
or
Impl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.
java:155)
at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.
java:133)
at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMB
ea
nOperationInterceptor.java:142)
at
org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.
ja
va:97)
at
org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(Interceptor
Se
rviceMBeanSupport.java:238)
at
org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInte
rc
eptor.java:74)
at
org.jboss.ws.integration.jboss.DeployerInterceptorEJB.create(DeployerI
nt
erceptorEJB.java:44)
at
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.c
re
ate(SubDeployerInterceptorSupport.java:180)
at
org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerIntercep
to
r.java:91)
at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.j
av
a:264)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
>
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
> at
$Proxy26.create(Unknown Source)
> at
>
org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
> at
>
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
> at
>
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
> at
sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> or
> Impl.java:25)
> at
java.lang.reflect.Method.invoke(Method.java:324)
> at
>
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.
> java:155)
> at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
> at
>
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.
> java:133)
> at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at
>
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMB
> ea
>
nOperationInterceptor.java:142)
> at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at
>
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.j
> av
> a:264)
> at
>
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> at
>
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
> at
$Proxy8.deploy(Unknown Source)
> at
> org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeployment
> Sc
> anner.java:421)
> at
>
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentSc
> an
> ner.java:634)
> at
>
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.d
> oS
>
can(AbstractDeploymentScanner.java:263)
> at
>
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(Ab
> st
>
ractDeploymentScanner.java:336)
> at
>
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSu
> pp
> ort.java:289)
> at
>
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBe
> an
> Support.java:245)
> at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> av
> a:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> or
> Impl.java:25)
> at
java.lang.reflect.Method.invoke(Method.java:324)
> at
>
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.
> java:155)
> at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
> at
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
> at
>
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.j
> av
> a:264)
> at
>
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> at
>
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControll
> er
> .java:978)
> at
$Proxy0.start(Unknown Source)
> at
>
org.jboss.system.ServiceController.start(ServiceController.java:417)
> at
sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> or
> Impl.java:25)
> at
java.lang.reflect.Method.invoke(Method.java:324)
> at
>
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.
> java:155)
> at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
> at
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
> at
>
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.j
> av
> a:264)
> at
>
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> at
>
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
> at
$Proxy4.start(Unknown Source)
> at
org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
> at
>
org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
> at
>
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
> at
> org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
> at
>
org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
> at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> av
> a:39)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> or
> Impl.java:25)
> at
java.lang.reflect.Method.invoke(Method.java:324)
> at
> org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.
> java:155)
> at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
> at
>
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.
> java:133)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at
>
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMB
> ea
>
nOperationInterceptor.java:142)
> at
org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at
>
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.j
> av
> a:264)
> at
>
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> at
>
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
> at
$Proxy5.deploy(Unknown Source)
> at
>
org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
> at
org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
> at
org.jboss.Main.boot(Main.java:200)
> at
org.jboss.Main$1.run(Main.java:490)
> at
java.lang.Thread.run(Thread.java:534)
> 16:22:06,568 ERROR
[MainDeployer] Could not create deployment:
> file:/C:/jboss-4.0.5.GA/server/rrt/deploy/rrt_common_ejb.jar
>
org.jboss.deployment.DeploymentException: Verification of
> Beans failed, see above
for error messages.
> at
org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:610)