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/08/25 01:34:17 UTC

[jira] Resolved: (WICKET-1819) SharedResourceRequestTarget with Custom ResourceStreamLocator throws ClassNotFoundException

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

Igor Vaynberg resolved WICKET-1819.
-----------------------------------

      Assignee: Igor Vaynberg
    Resolution: Won't Fix

could not reproduce and no quickstart was provided

> SharedResourceRequestTarget with Custom ResourceStreamLocator throws ClassNotFoundException
> -------------------------------------------------------------------------------------------
>
>                 Key: WICKET-1819
>                 URL: https://issues.apache.org/jira/browse/WICKET-1819
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.4
>         Environment: All
>            Reporter: Ritesh Trivedi
>            Assignee: Igor Vaynberg
>
> Hi,
> Seems like in wicket 1.3.x, if you include a CSS using HeaderContributor and if CSS has background-image style with paths like ../img/whatever.gif, SharedResourceRequestTarget throws exception instead of resource getting loaded through the custom resource stream locator registered in the application.
> resolver below tried to find a class by the name of img from ../img/whatever.gif which of course will fail with classnotfoundexception.
> The block of code that causes the exception is
> SharedResourceRequestTarget.java
> line:143
> // First try to match mounted
> scope = Application.get().getSharedResources().getAliasClass(className);
> // If that fails, resolve it as a fully qualified class
> // name.
> if (scope == null)
> {
>       scope = resolver.resolveClass(className);
> }

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