Hi; thanks again for your rapid replay.
I'm sorry for my bad english, but i'll try to be as clear as i can.You are
right i'm european and i'm from Italy.
I start from Home page, from here i use "pageLabel=mare" in order to go to the
page related to "mare"; here i have a list of services (some of them are only
news other are web services client); in this list i show the service
description the i have a link that should let me start the right application;
in order to do this i have created the page "dispatcher"; this page contains
the coplet dispatcher that by using a flow script should let me go to the right
application; the flow script is this one:
cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js");
importPackage(Packages.java.util);
importPackage(Packages.it.eng.scf.dao);
importPackage(Packages.it.eng.scf.dao.model);
importPackage(Packages.it.eng.scf.util);
function start(){
var sid = cocoon.request.getParameter("sid");
print( "Start function... sid: "+ sid );
if( sid.equalsIgnoreCase( "S077" ) ){
cocoon.sendPage( "Ricettivita_turistica/execute.start" );
}
}
It has only one function. Note that for this coplet dispatcher i have modified
the sitemap.xmap of coplets directory by adding this:
<?xml version="1.0"?>
<!--
Copyright 1999-2004 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- SVN $Id: sitemap.xmap,v 1.1.1.1 2005/06/08 07:42:34 angelo Exp $ -->
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<!--
This sitemap just forwards the request to the corresponding coplet
sub sitemap
-->
<map:flow language="javascript">
<map:script src="flow/dispatcher.js"/>
</map:flow>
<map:pipelines>
<map:pipeline>
<map:match pattern="execute.*">
<map:call function="{1}">
</map:call>
</map:match>
<map:match pattern="*/**">
<map:mount check-reload="yes" src="{1}/" uri-prefix="{1}"/>
</map:match>
<map:match pattern="pmmLogin/**">
<map:mount check-reload="yes" reload-method="synchron"
src="pmmLogin/sitemap.xmap" uri-prefix="pmmLogin"/>
</map:match>
</map:pipeline>
</map:pipelines>
</map:sitemap>
Well when i try to use this... i have this error: i can arrive to page called
"mare" and i'm able to see the list of services but when i try to use one of
them i have seen the the page does not chenge (it remains on "pageLabe=mare")
and i have the error "The coplet elencoServizi is currently not available"; in
the core.log file i have:
WARN (2005-06-27) 10:58.29:195 [portal] (/pmm/portal/portal)
http-8080-Processor9/AuthenticationProfileManager: Unable to locate profile:
Exception during processing of
cocoon://portal/load-role-profile?profile=copletdata&portal=portal&layout=portal&type=role&role=static
value undefined
INFO (2005-06-27) 10:58.49:784 [portal] (/pmm/portal/portal)
http-8080-Processor2/CachingURICopletAdapter: CopletInstanceEvent [EMAIL
PROTECTED] caught by CachingURICopletAdapter
INFO (2005-06-27) 10:58.49:784 [portal] (/pmm/portal/portal)
http-8080-Processor2/CachingURICopletAdapter: CopletInstanceEvent [EMAIL
PROTECTED] caught by CachingURICopletAdapter
INFO (2005-06-27) 10:58.54:501 [portal] (/pmm/portal/portal)
http-8080-Processor9/CachingURICopletAdapter: CopletInstanceEvent [EMAIL
PROTECTED] caught by CachingURICopletAdapter
INFO (2005-06-27) 10:58.54:501 [portal] (/pmm/portal/portal)
http-8080-Processor9/CachingURICopletAdapter: CopletInstanceEvent [EMAIL
PROTECTED] caught by CachingURICopletAdapter
INFO (2005-06-27) 10:58.55:663 [core.authentication-manager]
(/pmm/portal/portal) http-8080-Processor2/PipelineAuthenticator: Authenticator:
User authenticated using handler 'portal-handler'
WARN (2005-06-27) 10:58.55:713 [portal] (/pmm/portal/portal)
http-8080-Processor2/AuthenticationProfileManager: Unable to locate profile:
Exception during processing of
cocoon://portal/load-role-profile?profile=copletdata&portal=portal&layout=portal&type=role&role=static
value undefined
WARN (2005-06-27) 10:59.03:704 [portal] (/pmm/portal/portal)
http-8080-Processor9/AbstractCopletAdapter: Unable to get content of coplet:
elencoServizi
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
http://www.w3.org/TR/html4/loose.dtd:31:3:org.xml.sax.SAXParseException: The
declaration for the entity "HTML.Version" must end with '>'.
at
org.apache.cocoon.portal.coplet.adapter.impl.URICopletAdapter.streamContent(URICopletAdapter.java:133)
at
org.apache.cocoon.portal.coplet.adapter.impl.CachingURICopletAdapter.streamContent(CachingURICopletAdapter.java:112)
at
org.apache.cocoon.portal.coplet.adapter.impl.CachingURICopletAdapter.streamContent(CachingURICopletAdapter.java:97)
at
org.apache.cocoon.portal.coplet.adapter.impl.AbstractCopletAdapter.toSAX(AbstractCopletAdapter.java:133)
at
org.apache.cocoon.portal.source.CopletSource.toSAX(CopletSource.java:169)
at
org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:142)
at
org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:119)
at
org.apache.cocoon.transformation.CIncludeTransformer.processCIncludeElement(CIncludeTransformer.java:556)
at
org.apache.cocoon.transformation.CIncludeTransformer.startTransformingElement(CIncludeTransformer.java:262)
at
org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:313)
at
org.apache.xalan.transformer.ResultTreeHandler.flushElem(ResultTreeHandler.java:860)
at
org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHandler.java:954)
at
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:308)
at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:166)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:162)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:162)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:162)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:162)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:162)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:162)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at org.apache.xalan.templates.ElemCopy.execute(ElemCopy.java:162)
at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:425)
at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:216)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2339)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2160)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1213)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3372)
at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433)
at
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
at
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:560)
at
org.apache.cocoon.portal.impl.PortalManagerImpl.showPortal(PortalManagerImpl.java:80)
at
org.apache.cocoon.portal.impl.PortletPortalManager.showPortal(PortletPortalManager.java:254)
at
org.apache.cocoon.portal.generation.PortalGenerator.generate(PortalGenerator.java:58)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:575)
at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:183)
at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:483)
at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:120)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
at
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:138)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:138)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
at
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
at
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:243)
at
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:138)
at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
at
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
at
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:243)
at org.apache.cocoon.Cocoon.process(Cocoon.java:608)
at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1123)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Thanks for your help.
Angelo
---------- Initial Header -----------
>From : "Ralph Goers" [EMAIL PROTECTED]
To : [email protected]
Cc :
Date : Mon, 27 Jun 2005 01:18:24 -0700
Subject : Re: Cocoon portal
> First, the layout file looks OK to me. At least, I don't see how it
> could cause this problem.
>
> However, I'm a little confused. In your first message it sounded like
> the link was to "portal?pageLabel=dispatcher" and that wasn't working.
> In this message it sounds like it is supposed to be to
> "portal?pageLabel=dispatcher" but it is somehow appearing on the "mare"
> page as "portal?pageLabel=mare" (i.e you don't click on it - just hover
> over it and see the link). Is this correct? If so, clicking on the
> link should do nothing. What error do you get?
>
> Unfortunately, javascript is not one of my strong points, but I'll look
> at it as best I can.
>
> BTW, it is 1am here in California and I won't be able to look at this
> till sometime tomorrow as I am off to bed.. I'm assuming you are in
> Europe somewhere so this dialogue could take awhile just for me to
> understand what is going on.
>
> Ralph
>
> Angelo Immediata wrote:
>
> >Hi first of all thanks for your replay; i have attached my
> >portal-user-anonymous.xml located in the layout directory and my .jx page
> >I start from page called "Home"; then by using a javascript menu i call the
> >page called "mare"; i call "mare" by using this link in the javascript:
> >insDoc(aux1, gLnk("R", "> Stazioni del mare", "portal?pageLabel=mare"));
> >
> >
> >then in this label i have the .jx i have attached where i try to call the
> >page called "dispatcher" but when i pass on the link by the mouse i see that
> >the link is "portal?pageLabel=mare" and if i click it the coplet goes in
> >error.
> >Thanls for your help.
> >---------- Initial Header -----------
> >
> >From : "Ralph Goers" [EMAIL PROTECTED]
> >To : [email protected]
> >Cc :
> >Date : Sat, 25 Jun 2005 10:51:06 -0700
> >Subject : Re: Cocoon portal
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >>Can you attach your layout file? What is the name of the page you are
> >>on when you do this?
> >>
> >>Ralph
> >>
> >>Angelo Immediata wrote:
> >>
> >>
> >>
> >>>Hi all; i'm using cocoon version 2.1.7; i'm using the portal blocks and
> >>>CachingUriCoplets; now, even if i have several problems, the greatest is
> >>>this one: i have several pages (that is several named-item in the
> >>>portal-user-anonymous.xml file); i have used the pageLabel link handler;
> >>>in a my cocoon application that i have inserted under the portal block i
> >>>have this link (this is in a jx file):
> >>>
> >>><a href='portal?pageLabel=dispatcher&sid=S077'>Utilizza il servizio</a>
> >>>
> >>>I have arrived to this page from the home page by using a menu and the
> >>>pageLabel method; well this link doesn't make me change page... i think
> >>>that by seeing pageLabel=..... the Link Engine will make me to change page
> >>>instead it's not so... can anybody help me?
> >>>Thanks
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
____________________________________________________________
6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero!
Scaricalo su INTERNET GRATIS 6X http://www.libero.it
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]