I use cocoon2.0.1
My resource "portal": <map:resource name="portal"> <map:generate type="serverpages" src="{accion}.xsp"> <map:parameter name="validado" value="{validado}"/> <map:parameter name="ajeno" value="{ajeno}"/> <map:parameter name="primeraVez" value="{primeraVez}"/> <map:parameter name="vieneDeMod" value="{vieneDeMod}"/> </map:generate> <map:transform type="xinclude"/> <map:act type="session-validator"> <map:parameter name="descriptor" value="context://pieles/piel.xml"/> <map:parameter name="validate-set" value="piel-hojasestilo3"/> <map:transform src="context://pieles/{es.tid.sga.piel.nombre.hojasestilo}/portal.xsl"> <map:parameter name="PSP_PERFIL" value="{PSP_PERFIL}"/> <map:parameter name="PSP_MATRICULA_RH" value="{PSP_MATRICULA_RH}"/> <map:parameter name="PSP_NOMBRE_USU" value="{PSP_NOMBRE_USU}"/> <map:parameter name="PSP_APELLIDOS_USU" value="{PSP_APELLIDOS_USU}"/> <map:parameter name="PSP_CARGO" value="{PSP_CARGO}"/> <map:parameter name="PSP_NOMBRE_TERRITORIO" value="{PSP_NOMBRE_TERRITORIO}"/> </map:transform> <map:serialize type="html"/> </map:act> <map:act type="session-validator"> <map:parameter name="descriptor" value="context://pieles/piel.xml"/> <map:parameter name="validate-set" value="sesion3"/> <map:transform src="context://pieles/default/hojasestilo/portal.xsl"> <map:parameter name="PSP_PERFIL" value="{PSP_PERFIL}"/> <map:parameter name="PSP_MATRICULA_RH" value="{PSP_MATRICULA_RH}"/> <map:parameter name="PSP_NOMBRE_USU" value="{PSP_NOMBRE_USU}"/> <map:parameter name="PSP_APELLIDOS_USU" value="{PSP_APELLIDOS_USU}"/> <map:parameter name="PSP_NOMBRE_TERRITORIO" value="{PSP_NOMBRE_TERRITORIO}"/> <map:parameter name="PSP_CARGO" value="{PSP_CARGO}"/> </map:transform> <map:serialize type="html"/> </map:act> <map:act type="session-validator"> <map:parameter name="descriptor" value="context://pieles/piel.xml"/> <map:parameter name="validate-set" value="piel-hojasestilo-inicio"/> <map:transform src="context://pieles/{es.tid.sga.piel.nombre.hojasestilo}/portal.xsl"/> <map:serialize type="html"/> </map:act> <map:transform src="context://pieles/default/hojasestilo/portal.xsl"/> <map:serialize type="html"/> </map:resource> I have also modified the sitemap: <map:match pattern="NuevoMotivosSolicitud"> <map:act type="form-validator"> <map:parameter name="descriptor" value="context://descriptores/NuevoMotivosSolicitud.xml"/> <map:parameter name="validate-set" value="NuevoMotivosSolicitud"/> <map:call resource="portal"> <map:parameter name="accion" value="context://logica/configuracion/MotivosSolicitud/FrmMotivosSolicitud"/> <map:parameter name="validado" value="false"/> <map:parameter name="ajeno" value="false"/> <map:parameter name="primeraVez" value="false"/> <map:parameter name="vieneDeMod" value="false"/> </map:call> </map:act> <map:call resource="recursoprueba"> <map:parameter name="accion" value="context://logica/configuracion/MotivosSolicitud/FrmNuevoMotivosSolicitud"/> <map:parameter name="validado" value="true"/> <map:parameter name="ajeno" value="false"/> <map:parameter name="primeraVez" value="false"/> <map:parameter name="vieneDeMod" value="false"/> </map:call> </map:match> <map:resource name="recursoprueba"> <map:generate type="serverpages" src="{accion}.xsp"/> <map:serialize type="xml"/> </map:resource> In the core.log I can't find the string "recursoprueba" but the queries have been executed twice. DEBUG (2002-07-12) 13:52.02:326 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/XIncludeTransformer: Base URI: file:/users/sga/webapps/pruebas/sga/distribucion/logica/configuracion/MotivosSolicitud/ DEBUG (2002-07-12) 13:52.02:326 [core.url-factory] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/URLFactoryImpl: Making URL from file:/users/sga/webapps/pruebas/sga/distribucion/logica/configuracion/MotivosSolicitud/../../../perfiles/administradorn/documentos/menu.xml DEBUG (2002-07-12) 13:52.02:337 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/XIncludeTransformer: URL: org.apache.cocoon.components.source.URLSource@1fda617 Suffix: DEBUG (2002-07-12) 13:52.02:338 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/XIncludeTransformer: Parse type is XML DEBUG (2002-07-12) 13:52.02:338 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/LogKitLogger: Retrieving a org.apache.cocoon.components.parser.JaxpParser from the pool DEBUG (2002-07-12) 13:52.02:338 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-70/FrmMotivosSolicitud_xsp: esql query: INSERT INTO SGMOSOTO SELECT SG_SQ_CO_MOTIVO_SOLI.NEXTVAL, 'PRUEBA 2' FROM DUAL WHERE NOT EXISTS (SELECT null FROM SGMOSOTO WHERE MOSO_DS_MOTIVO_SOLICITUD = 'PRUEBA 2') DEBUG (2002-07-12) 13:52.02:343 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/LogKitLogger: Returning a org.apache.cocoon.components.parser.JaxpParser to the pool DEBUG (2002-07-12) 13:52.02:344 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/XIncludeTransformer: Processing XInclude element: href=../../../perfiles/administradorn/documentos/pie.xml, parse=xml DEBUG (2002-07-12) 13:52.02:345 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/XIncludeTransformer: Base URI: file:/users/sga/webapps/pruebas/sga/distribucion/logica/configuracion/MotivosSolicitud/ DEBUG (2002-07-12) 13:52.02:345 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-70/FrmMotivosSolicitud_xsp: esql query: SELECT MOSO_CO_MOTIVO_SOLICITUD, MOSO_DS_MOTIVO_SOLICITUD FROM SGMOSOTO DEBUG (2002-07-12) 13:52.02:346 [core.url-factory] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/URLFactoryImpl: Making URL from file:/users/sga/webapps/pruebas/sga/distribucion/logica/configuracion/MotivosSolicitud/../../../perfiles/administradorn/documentos/pie.xml DEBUG (2002-07-12) 13:52.02:347 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/XIncludeTransformer: URL: org.apache.cocoon.components.source.URLSource@1a356fa Suffix: DEBUG (2002-07-12) 13:52.02:347 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/XIncludeTransformer: Parse type is XML DEBUG (2002-07-12) 13:52.02:347 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/LogKitLogger: Retrieving a org.apache.cocoon.components.parser.JaxpParser from the pool DEBUG (2002-07-12) 13:52.02:349 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/LogKitLogger: Returning a org.apache.cocoon.components.parser.JaxpParser to the pool DEBUG (2002-07-12) 13:52.02:349 [core.datasources.sga_db] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/LogKitLogger: Retrieving a org.apache.avalon.excalibur.datasource.JdbcConnection from the pool DEBUG (2002-07-12) 13:52.02:350 [core.datasources.sga_db] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/LogKitLogger: Pinging database after 67630ms of inactivity. DEBUG (2002-07-12) 13:52.02:355 [core.datasources.sga_db] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-70/LogKitLogger: Returning a org.apache.avalon.excalibur.datasource.JdbcConnection to the pool DEBUG (2002-07-12) 13:52.02:355 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/FrmMotivosSolicitud_xsp: esql query: INSERT INTO SGMOSOTO SELECT SG_SQ_CO_MOTIVO_SOLI.NEXTVAL, 'PRUEBA 2' FROM DUAL WHERE NOT EXISTS (SELECT null FROM SGMOSOTO WHERE MOSO_DS_MOTIVO_SOLICITUD = 'PRUEBA 2') DEBUG (2002-07-12) 13:52.02:360 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/FrmMotivosSolicitud_xsp: esql query: SELECT MOSO_CO_MOTIVO_SOLICITUD, MOSO_DS_MOTIVO_SOLICITUD FROM SGMOSOTO DEBUG (2002-07-12) 13:52.02:363 [core.datasources.sga_db] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/LogKitLogger: Returning a org.apache.avalon.excalibur.datasource.JdbcConnection to the pool DEBUG (2002-07-12) 13:52.02:372 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-70/LogKitLogger: Returning a org.apache.cocoon.www.logica.configuracion.MotivosSolicitud.FrmMotivosSolicitud_xsp to the pool DEBUG (2002-07-12) 13:52.02:373 [core.event-pipeline] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-70/CachingEventPipeline: Recycling of CachingEventPipeline DEBUG (2002-07-12) 13:52.02:373 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-70/LogKitLogger: Returning a org.apache.cocoon.generation.ServerPagesGenerator to the pool DEBUG (2002-07-12) 13:52.02:373 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-70/LogKitLogger: Returning a org.apache.cocoon.transformation.XIncludeTransformer to the pool DEBUG (2002-07-12) 13:52.02:373 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-70/LogKitLogger: Returning a org.apache.cocoon.transformation.TraxTransformer to the pool DEBUG (2002-07-12) 13:52.02:374 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-70/LogKitLogger: Returning a org.apache.cocoon.components.pipeline.CachingEventPipeline to the pool DEBUG (2002-07-12) 13:52.02:374 [core.stream-pipeline] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-70/CachingStreamPipeline: Recycling of CachingStreamPipeline DEBUG (2002-07-12) 13:52.02:374 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-70/LogKitLogger: Returning a org.apache.cocoon.serialization.HTMLSerializer to the pool DEBUG (2002-07-12) 13:52.02:375 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-70/LogKitLogger: Returning a org.apache.cocoon.components.pipeline.CachingStreamPipeline to the pool DEBUG (2002-07-12) 13:52.02:375 [core.event-pipeline] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-70/CachingEventPipeline: Recycling of CachingEventPipeline DEBUG (2002-07-12) 13:52.02:376 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-70/LogKitLogger: Returning a org.apache.cocoon.components.pipeline.CachingEventPipeline to the pool DEBUG (2002-07-12) 13:52.02:376 [core.stream-pipeline] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-70/CachingStreamPipeline: Recycling of CachingStreamPipeline DEBUG (2002-07-12) 13:52.02:376 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-70/LogKitLogger: Returning a org.apache.cocoon.components.pipeline.CachingStreamPipeline to the pool DEBUG (2002-07-12) 13:52.02:378 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/LogKitLogger: Returning a org.apache.cocoon.www.logica.configuracion.MotivosSolicitud.FrmMotivosSolicitud_xsp to the pool DEBUG (2002-07-12) 13:52.02:379 [core.event-pipeline] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/CachingEventPipeline: Recycling of CachingEventPipeline DEBUG (2002-07-12) 13:52.02:379 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/LogKitLogger: Returning a org.apache.cocoon.generation.ServerPagesGenerator to the pool DEBUG (2002-07-12) 13:52.02:380 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/LogKitLogger: Returning a org.apache.cocoon.transformation.XIncludeTransformer to the pool DEBUG (2002-07-12) 13:52.02:380 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/LogKitLogger: Returning a org.apache.cocoon.transformation.TraxTransformer to the pool DEBUG (2002-07-12) 13:52.02:380 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/LogKitLogger: Returning a org.apache.cocoon.components.pipeline.CachingEventPipeline to the pool DEBUG (2002-07-12) 13:52.02:381 [core.stream-pipeline] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/CachingStreamPipeline: Recycling of CachingStreamPipeline DEBUG (2002-07-12) 13:52.02:381 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/LogKitLogger: Returning a org.apache.cocoon.serialization.HTMLSerializer to the pool DEBUG (2002-07-12) 13:52.02:381 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/LogKitLogger: Returning a org.apache.cocoon.components.pipeline.CachingStreamPipeline to the pool DEBUG (2002-07-12) 13:52.02:382 [core.event-pipeline] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/CachingEventPipeline: Recycling of CachingEventPipeline DEBUG (2002-07-12) 13:52.02:382 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/LogKitLogger: Returning a org.apache.cocoon.components.pipeline.CachingEventPipeline to the pool DEBUG (2002-07-12) 13:52.02:383 [core.stream-pipeline] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/CachingStreamPipeline: Recycling of CachingStreamPipeline DEBUG (2002-07-12) 13:52.02:383 [core] (/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-71/LogKitLogger: Returning a org.apache.cocoon.components.pipeline.CachingStreamPipeline to the pool DEBUG (2002-07-12) 13:52.02:486 [core] (/sg/perfil:administradorn/main.javascript) Thread-74/Cocoon: DEBUGGING INFORMATION: Christian Haul wrote: > On 12.Jul.2002 -- 10:33 AM, Carlos Maté wrote: > > This is what I can see in core.log > > DEBUG (2002-07-12) 09:25.27:279 [core] >(/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-197/FrmMotivosSolicitud_xsp: >esql query: > > DEBUG (2002-07-12) 09:25.27:284 [core] >(/sg/perfil:administradorn/NuevoMotivosSolicitud) Thread-196/FrmMotivosSolicitud_xsp: >esql query: > > Interesting: two different threads! > > > And in the sitemap... > > <map:match pattern="NuevoMotivosSolicitud"> > > <map:act type="form-validator"> > > <map:call resource="portal"> > > </map:act> > > <map:call resource="portal"> > > What version of Cocoon are you using? Do you use the treeprocessor? How > does the "portal" resource look like? > > I suspect the sitemap to be responsible for the problem you see. Change > the second call to another resource and see if you find both resources > executed in the log. > > Chris. > > Please follow up summarizing your problem and which suggested solution > / information worked for you when you consider your problem > solved. Add "SUMMARY: " to the subject line. This will make FAQ > generation and searching the list easier. In addition, it makes > helping you more fun. Thank you. > > -- > C h r i s t i a n H a u l > [EMAIL PROTECTED] > fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]> > For additional commands, e-mail: <[EMAIL PROTECTED]> -- ********************************************** Carlos Maté de Anta Telefónica I+D Boecillo (Valladolid) [EMAIL PROTECTED] Tfno: 983367629 Fax: 983367564 ********************************************** --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>