[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tapestry-user
Subject:    Re: [t5] Classloader problem
From:       "Howard Lewis Ship" <hlship () gmail ! com>
Date:       2007-11-20 22:07:20
Message-ID: ecd0e3310711201407k776c093bg3d10752e61395420 () mail ! gmail ! com
[Download RAW message or body]

Have you added an issue to JIRA?


On Nov 19, 2007 3:40 AM, Joachim Van der Auwera (PROGS bvba)
<joachim@progs.be> wrote:
> When trying to deploy an application on JBoss which also references my
> EJB3 beans, I get a "no classloader found for" exception in the when
> passing a context from one page to the next.
>
> This seems to be caused by the use of Class.forName in ComponentEventImpl.
>
> Replacing line 82
>     Class desiredType = Class.forName(desiredTypeName);
> with
>     ClassLoader loader = Thread.currentThread().getContextClassLoader();
>     if ( loader == null ) loader = this.getClass().getClassLoader();
>     Class desiredType = Class.forName(desiredTypeName, true, loader);
>
> Seems to fix this problem.
>
> Could this be applied to the codebase?
>
> Thanks,
> Joachim
>
> --
> Joachim Van der Auwera
> PROGS bvba, progs.be
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship
Partner and Senior Architect at Feature50

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic