You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Ritesh Trivedi (JIRA)" <ji...@apache.org> on 2008/09/04 18:39:44 UTC

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

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
             Fix For: 1.3.5


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.


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

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg updated WICKET-1819:
----------------------------------

    Fix Version/s:     (was: 1.3.5)

we need a quickstart that reproduces this...

> 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
>
> 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.


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

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ 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.