My  problem was that I used the wrong version of wicket-spring annot: 1.2.rc
instead of 1.3.5, for the wicket-1.4-rc1

HHB wrote:
> 
> Hey,
> I created a Wicket skeleton project via Maven.
> When trying to install the project, I got this error:
> ++++++++
> java.lang.ClassCastException: wicket.Initializer cannot be cast to
> org.apache.wicket.IInitializer
>       at org.apache.wicket.Application.addInitializer(Application.java:755)
>       at org.apache.wicket.Application.load(Application.java:829)
>       at
> org.apache.wicket.Application.initializeComponents(Application.java:608)
>       at
> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:575)
>       at
> org.apache.wicket.protocol.http.MockWebApplication.<init>(MockWebApplication.java:157)
>       at
> org.apache.wicket.util.tester.BaseWicketTester.<init>(BaseWicketTester.java:204)
>       at
> org.apache.wicket.util.tester.WicketTester.<init>(WicketTester.java:308)
>       at
> org.apache.wicket.util.tester.WicketTester.<init>(WicketTester.java:291)
>       at com.eldorado.TestHomePage.setUp(TestHomePage.java:15)
>       at junit.framework.TestCase.runBare(TestCase.java:125)
>       at junit.framework.TestResult$1.protect(TestResult.java:106)
>       at junit.framework.TestResult.runProtected(TestResult.java:124)
>       at junit.framework.TestResult.run(TestResult.java:109)
>       at junit.framework.TestCase.run(TestCase.java:118)
>       at junit.framework.TestSuite.runTest(TestSuite.java:208)
>       at junit.framework.TestSuite.run(TestSuite.java:203)
>       at
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)
>       at
> org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:155)
>       at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>       at
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
>       at
> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
> ... Removed 18 stack frames
> ++++++++++++++++
> Please note, that I didn't code anything at all, I just tried to test the
> basic skeleton.
> Is this error intentional or something is going wrong?
> Thanks. 
> 

-- 
View this message in context: 
http://www.nabble.com/Getting-an-error-when-trying-to-install-via-Maven-tp21651202p22424928.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to