You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2010/01/19 07:48:55 UTC

[jira] Resolved: (WICKET-2034) Resources refereced by HeaderContributor outside of WAR inaccessible.

     [ https://issues.apache.org/jira/browse/WICKET-2034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-2034.
-----------------------------------

    Resolution: Won't Fix
      Assignee: Igor Vaynberg

> Resources refereced by HeaderContributor outside of WAR inaccessible.
> ---------------------------------------------------------------------
>
>                 Key: WICKET-2034
>                 URL: https://issues.apache.org/jira/browse/WICKET-2034
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4-RC1
>            Reporter: Maarten Billemont
>            Assignee: Igor Vaynberg
>
> It appears that when referencing resources outside of the Wicket application's WAR using a statement such as:
> add(HeaderContributor.forJavaScript(getClass(), "foo.js")) ;
> The AS can't resolve the reference created for it.
> My scenario is the following:
> - I have a Wicket page which extends FooPage.  FooPage resides in a JAR somewhere in the classpath, outside of the WAR.  My Wicket page that extends FooPage is in the WAR.
> - FooPage uses the code above to add a HeaderContributor to the page.  "foo.js" is a resource that's in the same package, and in the same JAR as FooPage (So also outside of the WAR).
> - When the page is rendered; the script is referenced using the URL: http://localhost/fooapp/resources/my.package.FooPage/foo.js
> - When I open that URL, I get the following error message from my JBoss AS:
> HTTP Status 404 - Unable to find package resource [path = net/link/safeonline/wicket/web/functions.js, style = null, locale = null]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.