You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Yeeswara Nadapana (HCL Financial Services)" <Ye...@hcl.in> on 2008/01/14 11:29:17 UTC

Use System ClassLoader with Tapestry5

Hi,

 

I am building a Tapestry 5 application. It is using a Tapestry specific
ClassLoader called
"org.apache.tapestry.internal.services.ComponentInstantiatorSourceImpl$P
ackageAwareLoader" to load all the classes. I am trying to use an DWR
call to method on my Page class, where its using System ClassLoader to
load that class. There starts the problem. Its not loading some library
files which I already loaded by my Tapestry ClassLoader. Is there any
way to customize my Tapestry application to use generic System
ClassLoader to load all the classes.

 

Please help....

 

Thanks and Regards

Yeeswara N



DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
received this email in error please delete it and notify the sender immediately. Before opening any mail and 
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------

Re: Use System ClassLoader with Tapestry5

Posted by Howard Lewis Ship <hl...@gmail.com>.
Tricky.

The class loader Tapestry uses does two different things:
- Transforms the class (for injections, parameters, and lots of other stuff)
- Handles reloading of classes when they change

When a .class file on the disk changes, Tapestry will actually discard
the class loader and create a new one.

I suspect you are going to have to go into the internals of DWR and
Tapestry in order to get this to work properly.

You can inject the @ComponentLayer ClassLoader and obtain the current
ClassLoader from it.

On Jan 14, 2008 2:29 AM, Yeeswara Nadapana (HCL Financial Services)
<Ye...@hcl.in> wrote:
>
> Hi,
>
>
>
> I am building a Tapestry 5 application. It is using a Tapestry specific
> ClassLoader called
> "org.apache.tapestry.internal.services.ComponentInstantiatorSourceImpl$P
> ackageAwareLoader" to load all the classes. I am trying to use an DWR
> call to method on my Page class, where its using System ClassLoader to
> load that class. There starts the problem. Its not loading some library
> files which I already loaded by my Tapestry ClassLoader. Is there any
> way to customize my Tapestry application to use generic System
> ClassLoader to load all the classes.
>
>
>
> Please help....
>
>
>
> Thanks and Regards
>
> Yeeswara N
>
>
>
> DISCLAIMER:
> -----------------------------------------------------------------------------------------------------------------------
> The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
> this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
> this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
> received this email in error please delete it and notify the sender immediately. Before opening any mail and
> attachments please check them for viruses and defect.
> -----------------------------------------------------------------------------------------------------------------------



-- 
Howard M. Lewis Ship

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