I'am new with cocoon.

I have developed an application web in the framework cocoon 2.0.4 and
are OK. then migrate to cocoon 2.1.4. basically application web use sessions, jdbc drivers mysql and postgres, form-validator, etc.


I have problems with sitemap.xmap and context.
when the application start always re-direct the context of cocoon (build/webapps/.... and not directory build/webapps/my_application).
generating not Database mapping environment.


in the logs report problems with sitemap.conf for handling errors
and context. this is fragment of my sitemap

<map:actions>
<map:action name="form-validator" src="org.apache.cocoon.acting.FormValidatorAction"/>
<map:action name="session-validator" src="org.apache.cocoon.acting.SessionValidatorAction"/>
<map:action name="session-invalidator" src="org.apache.cocoon.acting.SessionInvalidatorAction"/>
<map:action name="db-authenticator" src="org.apache.cocoon.acting.DatabaseAuthenticatorAction"/>
</map:actions>


<!-- Autenticar datos de Usuario   -->
<map:match pattern="do-login">
<!-- validamos los valores enviados por submit -->
<map:act type="form-validator">
<map:parameter name="descriptor"           
      value="context://descriptors/params.xml"/>
      <map:parameter name="validate" value="usuario,clave"/>
      <!-- Intentamos loguearnos -->
     <map:act type="db-authenticator">
     <map:parameter name="descriptor"
     value="context://descriptors/auth.xml"/>
     <!-- Desplegamos los datos y opciones para el usuario -->
     <map:redirect-to uri="autent"/>
     </map:act>
   </map:act>
   <!-- si falla  -->
   <map:redirect-to uri=""/>
</map:match>

<map:match pattern="autent">
<!-- Validamos los datos -->
<map:act type="session-validator">
<map:parameter name="descriptor"
 value="context://descriptors/params.xml"/>
<map:parameter name="validate" value="usuario,clave"/>
<!-- generamos el contenido -->
<map:generate type="xsp" src="docs/autent.xsp"/>
<map:transform src="estilos/estilo.xsl"/>
<map:serialize/>
</map:act>
<map:redirect-to uri=""/>
</map:match>
....

in the logs report error with this part
<map:handle-errors>
<map:transform src="estilos/sistema/error2html.xsl"/>
<map:serialize status-code="500"/>
</map:handle-errors>


How can I solution this situation.


Thanks very much.


-- Cordialmente,

Andres Taborda
Departamento de Sistemas
http://www.saludcolombiaeps.com.co
email:[EMAIL PROTECTED]
SaludColombia E.P.S.. - Una Sola Familia
Calle 5C # 43-05 B. Tequendama
Telefono : 57 (002) 551 04 89 - 57 (002) 551 04 90
Cali - Colombia


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to