Hi,

Any help with the following problem would be greatly apprciated as we're
about  to go into full production with our wicket app and this showstopper
bug is holding us back.. thanks

I'm having an issue on our production server running a wicket application,
with a JavascriptReference.  We are using a single, non-clustered tomcat
instance and are accessing a couple of javascript files using
JavascriptReference, because they need to be contained in the body rather
than the head.  I'm using the following:

add(new JavaScriptReference("tooltipjs", JumbuckPage.class,
"wz_tooltip.js"));

It all works fine for a couple of hours, and the HTML returned by wicket
includes the following html inserted by wicket:

<script type="text/javascript"
src="resources/jumbuck.wicket.page.JumbuckPage/wz_tooltip.js"></script>

But all of a sudden, I start getting the following error repeating
constantly whenver the page with the resource is accessed:

[23:13:07,820 WARN  org.apache.wicket.markup.html.PackageResource]:Unable to
find package resource [path = jumbuck/wicket/page/wz_tooltip_en_US.js, sty
le = null, locale = null]

now I check the returned HTML and the inserted code from wicket has change
to:
<script type="text/javascript"
src="resources/jumbuck.wicket.page.JumbuckPage/wz_tooltip_en_US.js"></script>

so it's now trying to grab a different (localized) file which doesn't exist. 
Please note that this is with no server restarts and I'm using wicket 1.3.3.

The only thing of note I could find from searching the forums is that I'm
not calling PackageResource.bind()  on my javascript references.   Could
this be causing it to fail? It seems strange that it would work for a few
hours then suddenly stop.

Any help would be greatly appreciated as this is current a showstopper for
our wicket app, about to go into full production.

-- 
View this message in context: 
http://www.nabble.com/Strange-issue-with-JavascriptReference-tp16837117p16837117.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]

Reply via email to