Did you impl your own classresolver so that the class can be resolved correctly? What is the url and should the class come from a bundle? Then you have to make sure that wicket finds your class
On 5/17/08, james yong <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a javascript file inside a osgi bundle. ResourceReference is used to > refer to that file. > > When running the application, the following exception occurs when the > resourceReference's renderhead method is run. > > java.lang.NullPointerException > at org.apache.wicket.SharedResources.resourceKey(SharedResources.java:322) > > at org.apache.wicket.SharedResources.get(SharedResources.java:238) > at org.apache.wicket.ResourceReference.bind(ResourceReference.java:137) > at > org.apache.wicket.ResourceReference.getSharedResourceKey(ResourceReference.java:224) > > at org.apache.wicket.RequestCycle.urlFor(RequestCycle.java:996) > at org.apache.wicket.RequestCycle.urlFor(RequestCycle.java:981) > at > org.apache.wicket.markup.html.internal.HeaderResponse.renderJavascriptReference(HeaderResponse.java:157) > > at > org.apache.wicket.ajax.AjaxRequestTarget$AjaxHeaderResponse.renderJavascriptReference(AjaxRequestTarget.java:783) > > I am using wicket 1.3.3. NullPointerException comes about because the scope > variable is a null, as in > alias = scope.getName();. > Not sure why scope is null in the 1st place. > > Regards, > james > > -- > View this message in context: > http://www.nabble.com/Using-ResourceReference-in-osgi-bundle-tp17288449p17288449.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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
