Wow- that is a biggie, for me at least.
Let me try to verify this- to be sure
If I have this structure:
A.ear-->b.war (nonslingwebapp)--->pleaseincludeme.jsp
-->sling webapp (in my case day cq launchpad)-->someinclude.jsp
(needs to include pleaseincludeme.jsp, with c:import or some custom tags
from 3rd party lib)
this above scenario is not possible currently ?
Strangely, playing around with c:import, I AMable to do an includes across
webapp contexts(the above scenario), only sometimes, I still need to work
out how it works sometimes)
Thanks
Tim
On Wed, Apr 13, 2011 at 12:15 AM, Felix Meschberger <[email protected]>wrote:
> Hi Tim,
>
> Am Mittwoch, den 13.04.2011, 00:28 +0100 schrieb tim tam:
> > Wrong stacktrace!
> > here is the right one.
> > This resource is supposed to be from another webapp.
>
> This is key. Sling provides its own RequestDispatcher which only knows
> about the Sling Resource Tree and cannot (currently) access includes
> from another web application.
>
> Regards
> Felix
>
> >
> > org.apache.sling.api.resource.ResourceNotFoundException: No resource
> found
> > at
> >
> org.apache.sling.servlets.get.impl.DefaultGetServlet.doGet(DefaultGetServlet.java:218)
> > at
> >
> org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet.java:268)
> > at
> >
> org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:344)
> > at
> >
> org.apache.sling.api.servlets.SlingSafeMethodsServlet.service(SlingSafeMethodsServlet.java:375)
> > at
> >
> org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:529)
> > at
> >
> org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45)
> > at
> >
> org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64)
> > at
> >
> com.day.cq.wcm.core.impl.WCMDebugFilter.doFilterWithErrorHandling(WCMDebugFilter.java:182)
> > at
> > com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:149)
> > at
> >
> org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
> > at
> >
> com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:196)
> > at
> >
> org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)
> > at
> >
> org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProcessorImpl.java:269)
> > at
> >
> org.apache.sling.engine.impl.SlingRequestProcessorImpl.dispatchRequest(SlingRequestProcessorImpl.java:308)
> > at
> >
> org.apache.sling.engine.impl.request.SlingRequestDispatcher.dispatch(SlingRequestDispatcher.java:208)
> > at
> >
> org.apache.sling.engine.impl.request.SlingRequestDispatcher.include(SlingRequestDispatcher.java:102)
> >
> >
> > at
> >
> com.day.cq.wcm.core.impl.WCMComponentFilter$ForwardRequestDispatcher.include(WCMComponentFilter.java:381)
> >
> > at
> > gopa.servlet.WrapRequestDispatcher.include(WrapRequestDispatcher.java:94)
> >
> >
> > --> at gopa.tags.IncludeTag.doEndTag(IncludeTag.java:300)
>
>
>