You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Helena Ginzburg <he...@earthlink.co.il> on 2002/08/06 18:39:03 UTC
I18nTransformer using problem.
> Hi, All
> I'm try to use I18nTransformer. I'm getting namespace prefixes in
> the wml output from Cocoon 2.03. If I to use
> exclude-result-prefixes="i18n" namespace prefixes removing from wml tag
> while I have it with i18n:attribute. Can I to remove namespace prefix
> total?
> My xsl:
> <xsl:stylesheet version="1.0"
>
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
> xmlns:i18n="http://apache.org/cocoon/i18n/2.0"
> exclude-result-prefixes="i18n">
> <xsl:template match="/">
> <wml>
> <card title="Login" i18n:attr="title">
> <p>
> <b><i18n:text>Login</i18n:text></b><br/>
> </p>
> </card>
> </wml>
> </xsl:template>
> </xsl:stylesheet>
>
> Wml output :
> <?xml version="1.0" encoding="UTF-8"?>
> <wml>
> <card xmlns:i18n="http://apache.org/cocoon/i18n/2.0" title="Please Login">
> <p><b>Please Login</b><br/>
> </card>
> </wml>
>
> Any help would be much appreciated.
> Regards, Helena.
>
>
>
>
>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Yet another No suitable driver error
Posted by Leigh Dodds <ld...@ingenta.com>.
See this page, and let me know if its of any use:
http://outerthought.net/wiki/Wiki.jsp?page=ConnectionPooling
To be honest, I've generally placed things under the Tomcat
or Cocoon lib directory.
Cheers,
L.
> -----Original Message-----
> From: Albert Cervera Areny [mailto:informatic@sedifa.com]
> Sent: 08 August 2002 13:15
> To: cocoon-users@xml.apache.org
> Subject: Yet another No suitable driver error
>
>
> I get the following error while trying to connect to a postgresql database
> throw the SQLTransformer:
>
> java.sql.SQLException: No suitable driver
>
> I've seen in the list archives that it's been reported various times but
> none of the solutions seems to correct my problem.
>
> web.xml:
>
> <init-param>
> <param-name>load-class</param-name>
> <param-value>
> org.postgresql.Driver
> </param-value>
> </init-param>
> <init-param>
> <param-name>extra-classpath</param-name>
> <param-value>/usr/share/java/postgresql.jar</param-value>
> </init-param>
>
> cocoon.xconf:
>
> <datasources>
> <jdbc logger="core.datasources.postgres" name="cocoon">
> <pool-controller max="10" min="5"/>
> <driver>org.postgresql.Driver</driver>
> <dburl>jdbc:postgresql://localhost/cocoon:5432</dburl>
> <user>cocoon</user>
> <password>password</password>
> </jdbc>
> </datasources>
>
> I don't know if org.postgresql.Driver is necessari in both files but I
> started I've tried it in just one of them and doesn't work neighter.
> Of course access to the database is enabled correctly, the port is 5432 as
> NMAP says ;) and I can connect from psql. All connection data seems to be
> correct... Any other ideas??
>
>
> Thanks!
>
> Albert Cervera Areny
>
>
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Yet another No suitable driver error
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Albert Cervera Areny [mailto:informatic@sedifa.com]
>
> I get the following error while trying to connect to a postgresql
database
> throw the SQLTransformer:
>
> java.sql.SQLException: No suitable driver
>
> I've seen in the list archives that it's been reported various times
but
> none of the solutions seems to correct my problem.
>
> web.xml:
>
> <init-param>
> <param-name>load-class</param-name>
> <param-value>
> org.postgresql.Driver
> </param-value>
> </init-param>
> <init-param>
> <param-name>extra-classpath</param-name>
> <param-value>/usr/share/java/postgresql.jar</param-value>
AFAIR, this will not work and has different purpose.
Please jar under WEB-INF/lib.
Vadim
</init-param>
>
> cocoon.xconf:
>
> <datasources>
> <jdbc logger="core.datasources.postgres" name="cocoon">
> <pool-controller max="10" min="5"/>
> <driver>org.postgresql.Driver</driver>
> <dburl>jdbc:postgresql://localhost/cocoon:5432</dburl>
> <user>cocoon</user>
> <password>password</password>
> </jdbc>
> </datasources>
>
> I don't know if org.postgresql.Driver is necessari in both files but I
> started I've tried it in just one of them and doesn't work neighter.
> Of course access to the database is enabled correctly, the port is
5432 as
> NMAP says ;) and I can connect from psql. All connection data seems to
be
> correct... Any other ideas??
>
>
> Thanks!
>
> Albert Cervera Areny
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Yet another No suitable driver error
Posted by Albert Cervera Areny <in...@sedifa.com>.
I get the following error while trying to connect to a postgresql database
throw the SQLTransformer:
java.sql.SQLException: No suitable driver
I've seen in the list archives that it's been reported various times but
none of the solutions seems to correct my problem.
web.xml:
<init-param>
<param-name>load-class</param-name>
<param-value>
org.postgresql.Driver
</param-value>
</init-param>
<init-param>
<param-name>extra-classpath</param-name>
<param-value>/usr/share/java/postgresql.jar</param-value>
</init-param>
cocoon.xconf:
<datasources>
<jdbc logger="core.datasources.postgres" name="cocoon">
<pool-controller max="10" min="5"/>
<driver>org.postgresql.Driver</driver>
<dburl>jdbc:postgresql://localhost/cocoon:5432</dburl>
<user>cocoon</user>
<password>password</password>
</jdbc>
</datasources>
I don't know if org.postgresql.Driver is necessari in both files but I
started I've tried it in just one of them and doesn't work neighter.
Of course access to the database is enabled correctly, the port is 5432 as
NMAP says ;) and I can connect from psql. All connection data seems to be
correct... Any other ideas??
Thanks!
Albert Cervera Areny
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
I18n problem
Posted by Alejandro Raiczyk <al...@technisys.net>.
Hi
I'm having a problem with the i18n procesor, I have this working in
a pipeline:
<map:match pattern="admin/abm_*">
<map:generate src="xsp/admin/abm_{1}.form" type="serverpages"/>
<map:transform type="i18n"/>
<map:transform src="stylesheets/admin/lib_validaciones.xsl"/>
<map:transform src="stylesheets/admin/abm.xsl">
<map:parameter name="entidad" value="{1}"/>
</map:transform>
<map:transform src="stylesheets/admin/formulario.xsl">
<map:parameter name="use-request-parameters" value="true"/>
<map:parameter name="url" value="abm_{1}"/>
</map:transform>
<map:transform src="stylesheets/admin/template.xsl"/>
<map:serialize type="html"/>
</map:match>
but if I put the <map:transform type="i18n"/> at the end (after the
template.xsl), it throws this:
Original exception : java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.RuntimeException:
java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170)
at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433)
at
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
at
org.apache.cocoon.www.xsp.admin.abm_tipoalojamiento_form.generate(/home/ale/tomcat4.0.4/work/Standalone/devacaciones/_/cocoon-files/org/apache/cocoon/www/xsp/admin/abm_tipoalojamiento_form.java:1017)
at
org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenerator.java:260)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:251)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
at
org.apache.cocoon.www.sitemap_xmap.matchN40020A(/home/ale/tomcat4.0.4/work/Standalone/devacaciones/_/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:1660)
at
org.apache.cocoon.www.sitemap_xmap.process(/home/ale/tomcat4.0.4/work/Standalone/devacaciones/_/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:1361)
at
org.apache.cocoon.www.sitemap_xmap.process(/home/ale/tomcat4.0.4/work/Standalone/devacaciones/_/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:1298)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
.......
any ideas ?
thanks in adavance.
Alejandro Raiczyk
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>