Hi, I have discovered that the issue relates to how we are overriding the default Wicket javascript.
We are adding the following to Application#init() addResourceReplacement((JavaScriptResourceReference) DirectSkiApplication.get().getJavaScriptLibrarySettings().getJQueryReference(), new UrlResourceReference(Url.parse(""))); addResourceReplacement((JavaScriptResourceReference) DirectSkiApplication.get().getJavaScriptLibrarySettings().getWicketEventReference(), new UrlResourceReference(Url.parse(""))); addResourceReplacement((JavaScriptResourceReference) DirectSkiApplication.get().getJavaScriptLibrarySettings().getWicketAjaxReference(), new UrlResourceReference(Url.parse(""))); addResourceReplacement((JavaScriptResourceReference) DirectSkiApplication.get().getJavaScriptLibrarySettings().getWicketAjaxDebugReference(),new UrlResourceReference(Url.parse(""))) We are then adding the correct resources as a bundle through wro4j.xml. (it was probably overkill but trying to load as a single bundled cached request. This worked in wicket 6.5.0 without throwing an error. What is the simplest way i can achieve the same functionality ? On 6 May 2014 20:29, Martin Grigorov <mgrigo...@apache.org> wrote: > Hi, > > If you are able to reproduce this in a quickstart (mini) app then please > attach it to a ticket at https://issues.apache.org/jira/browse/WICKET > Thanks! > > Martin Grigorov > Wicket Training and Consulting > > > On Tue, May 6, 2014 at 5:43 PM, Fergal Keating < > fergal.keat...@directski.com > > wrote: > > > Hi, > > > > I was attempting to upgrade to Wicket 6.15.0 from 6.5.0 in order to use > > > > <wicket:header-items/> > > > > As described in > > http://wicketinaction.com/2014/03/header-contributions-positioning/ > > > > This should nicely solve an issue I'm currently having in the HTML rather > > than the Java where i am using WRO4J to minimise and join javascript and > > CSS . I am also using wicket-facebook 6.15.0. > > > > I have run into a problem when i run my application. I get an error after > > facebooksdk.java line 99 The following error is thrown. > > > > org.apache.wicket.resource.CircularDependencyException: Circular > > dependency detected in the dependency chain > > [JavaScriptReferenceHeaderItem(scope: org.apache.wicket.Application; > > name: ; locale: null; style: null; variation: null, null)]. > > JavaScriptReferenceHeaderItem(scope: org.apache.wicket.Application; > > name: ; locale: null; style: null; variation: null, null) is already > > in the chain. > > > > > > It seems that for some reason a null reference is being added to the > > header. > > > > I do not get this error in 6.5.0. > > > > Is there some obvious change i am missing between the versions that can > > point me in the right direction? > > > > > > > > -- > > Fergal Keating > > > -- Fergal Keating Senior Software Engineer ----------------------------------------------- e. fergal.keat...@directski.com p. NA *Topflight Travel Group* winter: www.directski.com www.topflight.ie www.skibeat.co.uk www.skimcneill.com summer: www.topflight.ie, www.blis <http://www.blisscamping.co.uk> scamping.co.uk <http://www.blisscamping.co.uk>