Hi,

This exception means that you have wicket-velocity.jar in the
classpath but velocity.jar is not there.

On Wed, Nov 16, 2011 at 4:21 AM, sudeivas <[email protected]> wrote:
> I upgraded from 1.4 to 1.5.3. Now I am getting a different error,
>
> Stack trace:
>
> java.lang.NoClassDefFoundError: org/apache/velocity/app/Velocity
>        at org.apache.wicket.velocity.Initializer.init(Initializer.java:60)
>        at org.apache.wicket.Application.callInitializers(Application.java:605)
>        at 
> org.apache.wicket.Application.initializeComponents(Application.java:515)
>        at org.apache.wicket.Application.initApplication(Application.java:808)
>        at
> org.apache.wicket.util.tester.BaseWicketTester.<init>(BaseWicketTester.java:303)
>        at
> org.apache.wicket.util.tester.BaseWicketTester.<init>(BaseWicketTester.java:247)
>        at
> org.apache.wicket.util.tester.BaseWicketTester.<init>(BaseWicketTester.java:217)
>        at 
> org.apache.wicket.util.tester.WicketTester.<init>(WicketTester.java:170)
>        at xxxTest.init(xxxTest.java:61)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
>        at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>        at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
>        at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
>        at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
>        at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.velocity.app.Velocity
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>        at org.apache.wicket.velocity.Initializer.init(Initializer.java:60)
>        at org.apache.wicket.Application.callInitializers(Application.java:605)
>        at 
> org.apache.wicket.Application.initializeComponents(Application.java:515)
>        at org.apache.wicket.Application.initApplication(Application.java:808)
>        at
> org.apache.wicket.util.tester.BaseWicketTester.<init>(BaseWicketTester.java:303)
>        at
> org.apache.wicket.util.tester.BaseWicketTester.<init>(BaseWicketTester.java:247)
>        at
> org.apache.wicket.util.tester.BaseWicketTester.<init>(BaseWicketTester.java:217)
>        at 
> org.apache.wicket.util.tester.WicketTester.<init>(WicketTester.java:170)
>        at xxxTest.init(xxxTest.java:61)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>        at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>        at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>        at
> mockit.integration.junit4.internal.JUnit4TestRunnerDecorator.invokeExplosively(JUnit4TestRunnerDecorator.java:53)
>        at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java)
>        at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
>        at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
>        at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
>        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>        ... 6 more
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/NullPointerException-in-WicketTester-tp4073967p4075050.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to