I'm trying to create a Wicket 1.3.5 project.
I add the following dependencies:
<dependency>
<groupId>wicket</groupId>
<artifactId>wicket-spring-annot</artifactId>
<version>1.2.7</version>
</dependency>
<dependency>
<groupId>wicket</groupId>
<artifactId>wicket-spring</artifactId>
<version>1.2.7</version>
</dependency>
<dependency>
<groupId>wicket</groupId>
<artifactId>wicket-auth-roles</artifactId>
<version>1.2.7</version>
</dependency>
Which it is obvious not compatible with 1.3.5
I solved the issue, now, Thanks.
Michael Sparer wrote:
>
> Looks like you're mixing up different wicket versions. wicket.Initializer
> was before the move to apache. Check your pom if you're using different
> wicket versions - or perform a clean if you did an update recently
>
> hth,
> Michael
>
>
> 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-tp21651202p21664193.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]