Hi,

you have logo.png in the webapp folder. To reference it from a package it has to be located besides your StyleResources class:

    new PackageResourceReference(StyleResources.class, "logo.png");

Are you sure, this worked in Wicket 6?

Sven

On 30.07.2015 11:03, expresso wrote:
Hi !

I have a NullPointerException after migration from 6 to 7.

Caused by: java.lang.NullPointerException
        at
org.apache.wicket.request.resource.PackageResourceReference.getResource(PackageResourceReference.java:126)
~[wicket-core-7.0.0.jar:7.0.0]
        at
com.mycompany.myproject.WicketApplication.init(WicketApplication.java:34)
~[classes/:?]
        at org.apache.wicket.Application.initApplication(Application.java:919)
~[wicket-core-7.0.0.jar:7.0.0]
        at 
org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:429)
~[wicket-core-7.0.0.jar:7.0.0]

wicket-quickstart.zip
<http://apache-wicket.1842946.n4.nabble.com/file/n4671710/wicket-quickstart.zip>

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-7-SharedResourceReference-tp4671710.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to