You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk> on 2007/09/14 09:39:19 UTC

wicket 1.2 ---> wicket 1.3 upgrade / java.lang.ClassCastException: wicket.Initializer

Hi

Im trying to upgrade our application to wicket 1.3 comming from 1.2.6, 
all now compiles fine but at runtime I get an exception in

my application:

    /**
     * @param properties
     *            Properties map with names of any library initializers 
in it
     */
    private final void load(final Properties properties)
    {
        addInitializer(properties.getProperty("initializer"));
        addInitializer(properties.getProperty(getName() + "-initializer"));
    }

I could not find anything about it mentioned in wiki / 
http://cwiki.apache.org/WICKET/migrate-13.html


Exception details:

ain 2007-09-14 09:36:05,334 ERROR [[/PolFotoWebNew]] - <Exception 
starting filter PolFotoWebNew>
java.lang.ClassCastException: wicket.Initializer
    at org.apache.wicket.Application.addInitializer(Application.java:774)
    at org.apache.wicket.Application.load(Application.java:850)
    at 
org.apache.wicket.Application.initializeComponents(Application.java:621)
    at 
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:423)


regards Nino

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


Re: wicket 1.2 ---> wicket 1.3 upgrade / java.lang.ClassCastException: wicket.Initializer

Posted by "Nino.Martinez" <ni...@jayway.dk>.
Dead on! thanks :)

Eelco Hillenius wrote:
> 
>> Im trying to upgrade our application to wicket 1.3 comming from 1.2.6,
>> all now compiles fine but at runtime I get an exception in
>>
>> my application:
>>
>>     /**
>>      * @param properties
>>      *            Properties map with names of any library initializers
>> in it
>>      */
>>     private final void load(final Properties properties)
>>     {
>>         addInitializer(properties.getProperty("initializer"));
>>         addInitializer(properties.getProperty(getName() +
>> "-initializer"));
>>     }
>>
>> I could not find anything about it mentioned in wiki /
>> http://cwiki.apache.org/WICKET/migrate-13.html
>>
>>
>> Exception details:
>>
>> ain 2007-09-14 09:36:05,334 ERROR [[/PolFotoWebNew]] - <Exception
>> starting filter PolFotoWebNew>
>> java.lang.ClassCastException: wicket.Initializer
>>     at org.apache.wicket.Application.addInitializer(Application.java:774)
>>     at org.apache.wicket.Application.load(Application.java:850)
>>     at
>> org.apache.wicket.Application.initializeComponents(Application.java:621)
>>     at
>> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:423)
> 
> Our package names changed from wicket.* to org.apache.wicket.*.  I
> don't know where it get's the wicket.Initializer value from, but that
> should typically come from a wicket.properties file. Are you sure you
> did full clean builds etc? Anything you might have overlooked or could
> you have a double classpath entry maybe?
> 
> Eelco
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/wicket-1.2----%3E-wicket-1.3-upgrade----java.lang.ClassCastException%3A-wicket.Initializer-tf4440739.html#a12670948
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: wicket 1.2 ---> wicket 1.3 upgrade / java.lang.ClassCastException: wicket.Initializer

Posted by Eelco Hillenius <ee...@gmail.com>.
> Im trying to upgrade our application to wicket 1.3 comming from 1.2.6,
> all now compiles fine but at runtime I get an exception in
>
> my application:
>
>     /**
>      * @param properties
>      *            Properties map with names of any library initializers
> in it
>      */
>     private final void load(final Properties properties)
>     {
>         addInitializer(properties.getProperty("initializer"));
>         addInitializer(properties.getProperty(getName() + "-initializer"));
>     }
>
> I could not find anything about it mentioned in wiki /
> http://cwiki.apache.org/WICKET/migrate-13.html
>
>
> Exception details:
>
> ain 2007-09-14 09:36:05,334 ERROR [[/PolFotoWebNew]] - <Exception
> starting filter PolFotoWebNew>
> java.lang.ClassCastException: wicket.Initializer
>     at org.apache.wicket.Application.addInitializer(Application.java:774)
>     at org.apache.wicket.Application.load(Application.java:850)
>     at
> org.apache.wicket.Application.initializeComponents(Application.java:621)
>     at
> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:423)

Our package names changed from wicket.* to org.apache.wicket.*.  I
don't know where it get's the wicket.Initializer value from, but that
should typically come from a wicket.properties file. Are you sure you
did full clean builds etc? Anything you might have overlooked or could
you have a double classpath entry maybe?

Eelco

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


Re: wicket 1.2 ---> wicket 1.3 Beta 3 upgrade / java.lang.ClassCastException: wicket.Initializer

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
I have added the slf4j dependencies from start so I cannot be that which 
are causing it...



Looking at this thread

http://www.nabble.com/remove-test-scope-for-slf4j-in-pom.xml-t3913261.html

and my old thread regarding something possibly different(this is a new 
project):

http://www.nabble.com/wicket-1.3-and-tomcat-5.5-filterStart-severe-error--tf3987012.html#a11408883

regards Nino.


Nino Saturnino Martinez Vazquez Wael wrote:
> Hi
>
> Im trying to upgrade our application to wicket 1.3 comming from 1.2.6, 
> all now compiles fine but at runtime I get an exception in
>
> my application:
>
>    /**
>     * @param properties
>     *            Properties map with names of any library initializers 
> in it
>     */
>    private final void load(final Properties properties)
>    {
>        addInitializer(properties.getProperty("initializer"));
>        addInitializer(properties.getProperty(getName() + 
> "-initializer"));
>    }
>
> I could not find anything about it mentioned in wiki / 
> http://cwiki.apache.org/WICKET/migrate-13.html
>
>
> Exception details:
>
> ain 2007-09-14 09:36:05,334 ERROR [[/PolFotoWebNew]] - <Exception 
> starting filter PolFotoWebNew>
> java.lang.ClassCastException: wicket.Initializer
>    at org.apache.wicket.Application.addInitializer(Application.java:774)
>    at org.apache.wicket.Application.load(Application.java:850)
>    at 
> org.apache.wicket.Application.initializeComponents(Application.java:621)
>    at 
> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:423)
>
>
> regards Nino
>

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