Erreur "Could not resolve class: org.apache.wicket.Initializer"
Bonjour,
J'utilise apache Maven 3.0.4, Jdk 1.6, servlet 2.5 avec apache wicket 1.4.18, et j'ai le message d'erreur lors de mon test Maven.
Could not resolve class: org.apache.wicket.Initializer
Le jar est bien charge wicket est bien dans mon repository avecl la classe est bien a l'interieur ?
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
ests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.016 sec <<< FAILURE!
testRenderMyPage(app.web.TestHomePage) Time elapsed: 0 sec <<< ERROR!
org.apache.wicket.WicketRuntimeException: Unable to create org.apache.wicket.Initializer
at org.apache.wicket.util.lang.Objects.newInstance(Objects.java:1034)
at org.apache.wicket.Application.addInitializer(Application.java:864)
at org.apache.wicket.Application.load(Application.java:938)
at org.apache.wicket.Application.initializeComponents(Application.java:715)
at org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:732)
at org.apache.wicket.protocol.http.MockWebApplication.<init>(MockWebApplication.java:169)
at org.apache.wicket.util.tester.BaseWicketTester.<init>(BaseWicketTester.java:218)
at org.apache.wicket.util.tester.WicketTester.<init>(WicketTester.java:331)
at org.apache.wicket.util.tester.WicketTester.<init>(WicketTester.java:314)
at app.web.TestHomePage.setUp(TestHomePage.java:23)
at junit.framework.TestCase.runBare(TestCase.java:132)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68) |
Ou est mon erreur ?
Merci d'avance
Phil