You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "horatiu.cherebetiu" <ho...@yahoo.com> on 2009/03/10 00:25:42 UTC

Re: Getting an error when trying to install via Maven

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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Getting an error when trying to install via Maven

Posted by Igor Vaynberg <ig...@gmail.com>.
all wicket modules are released together, so for wicket-1.4-rc1 you
should user wicket-spring-1.4-rc1

-igor

On Mon, Mar 9, 2009 at 4:25 PM, horatiu.cherebetiu <ho...@yahoo.com> wrote:
>
> 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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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