Carsten Ziegeler wrote:
> Ok, I have a simple test case, go into the sitemap of the gallery coplet
> (coplets/gallery) and change the type attribute of the xslt transformer
> from "xslt" to "xslt2" then go into the portal and to the gallery tab.
> The result will be an exception in the log which does not tell you
> anymore the reason why the sitemap couldn't be loaded.
> Same happens if a component could not be created or any other problem
> occurs.
I have changed both occurences of xslt to xslt2.
After visiting the gallery coplet, portal log says :
o.a.c.ProcessingException: Failed to load sitemap from
file:/D:/src/cocoon-2.1.x/build/webapp/samples/blocks/portal/coplets/gallery/sitemap.xmap
at [ConfigurationException] -
file:/D:/src/cocoon-2.1.x/build/webapp/samples/blocks/portal/coplets/gallery/sitemap.xmap:39:55
at <map:mount> -
file:/D:/src/cocoon-2.1.x/build/webapp/samples/blocks/portal/coplets/sitemap.xmap:27:65
at <map:mount> -
file:/D:/src/cocoon-2.1.x/build/webapp/samples/blocks/portal/sitemap.xmap:181:76
at
o.a.c.p.coplet.adapter.impl.URICopletAdapter.streamContent(URICopletAdapter.java:134)
at
o.a.c.p.coplet.adapter.impl.CachingURICopletAdapter.streamContent(CachingURICopletAdapter.java:165)
at
o.a.c.p.coplet.adapter.impl.CachingURICopletAdapter.streamContent(CachingURICopletAdapter.java:120)
at
o.a.c.p.coplet.adapter.impl.AbstractCopletAdapter.toSAX(AbstractCopletAdapter.java:162)
at o.a.c.p.source.CopletSource.toSAX(CopletSource.java:169)
at o.a.c.components.source.SourceUtil.toSAX(SourceUtil.java:100)
at o.a.c.components.source.SourceUtil.toSAX(SourceUtil.java:180)
at o.a.c.components.source.SourceUtil.toSAX(SourceUtil.java:158)
....... (snipped)
followed by
INFO (2005-09-22) 23:36.04:502 [portal]
(/samples/blocks/portal/portal) PoolThread-4/AbstractCopletAdapter:
Streamed coplet Gallery (instance Gallery-Petstore) in 30ms.
WARN (2005-09-22) 23:36.04:532 [portal]
(/samples/blocks/portal/portal) PoolThread-4/AbstractCopletAdapter:
Unable to get content of coplet: GalleryViewer-1
o.a.c.ProcessingException: Failed to load sitemap from
file:/D:/src/cocoon-2.1.x/build/webapp/samples/blocks/portal/coplets/gallery/sitemap.xmap
at [ConfigurationException] -
file:/D:/src/cocoon-2.1.x/build/webapp/samples/blocks/portal/coplets/gallery/sitemap.xmap:39:55
at <map:mount> -
file:/D:/src/cocoon-2.1.x/build/webapp/samples/blocks/portal/coplets/sitemap.xmap:27:65
at <map:mount> -
file:/D:/src/cocoon-2.1.x/build/webapp/samples/blocks/portal/sitemap.xmap:181:76
at
o.a.c.p.coplet.adapter.impl.URICopletAdapter.streamContent(URICopletAdapter.java:134)
at
o.a.c.p.coplet.adapter.impl.CachingURICopletAdapter.streamContent(CachingURICopletAdapter.java:165)
at
o.a.c.p.coplet.adapter.impl.CachingURICopletAdapter.streamContent(CachingURICopletAdapter.java:120)
at
o.a.c.p.coplet.adapter.impl.AbstractCopletAdapter.toSAX(AbstractCopletAdapter.java:162)
at o.a.c.p.source.CopletSource.toSAX(CopletSource.java:169)
at o.a.c.components.source.SourceUtil.toSAX(SourceUtil.java:100)
at o.a.c.components.source.SourceUtil.toSAX(SourceUtil.java:180)
at o.a.c.components.source.SourceUtil.toSAX(SourceUtil.java:158)
HTH
Jorg