Antwort: Serving wbmp images in cocoon
If you use apache, check mime-types, too. image/vnd.wap.wbmp wbmp Richard [EMAIL PROTECTED] (Sean Malone) am 07.02.2002 21:37:54 Bitte antworten an [EMAIL PROTECTED] An: [EMAIL PROTECTED] Kopie: (Blindkopie: Richard Gfrerer/DEBIS/EDVG/AT) Thema:Serving wbmp images in cocoon Hi, I am using cocoon to deliver wml, in one of my stylesheets i have img src=images/imagename.wbmp alt=alt text/ this does not seem to work from cocoon, I always get the alt text. Any ideas ? Thanking you in anticipation - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: external cgi
Hi. I used to use the tag util:include-uri in the XSP util logicsheet (xmlns:util=http://www.apache.org/1999/XSP/Util;). That was in cocoon 1.8. Anders - Original Message - From: Ratty [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 4:25 PM Subject: external cgi Hi! Can anyone answer me - how can i call from xsp page external cgi program ? I dont need redirect to that page - i only need output what it generate which would be processed in Cocoon Or may be i must write some generator which would read output of this cgi and create xml? Thanx for any suggestions Igor Sazhnev - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HowTo Cocoon pages
Mohamed, Your problem is too general. Anyway, try to copy generated war file (after Build) to Tomcat webapps directory and run Tomcat without JBuilder. Don't forget to include required libraries to WEB-INF\lib directory for generated war file (all jars from cocoon/lib). Your problem looks like some required libraries are not on Java classpath (or in WEB-INF/lib) OR some of required Cocoon configuration files are missing (cocoon.xconf). Try to check it and next time try to submit what kind of exception occured. With regards, Mike -Original Message- From: Mohamed El-Refaey [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 5:23 PM To: [EMAIL PROTECTED] Subject: Re: HowTo Cocoon pages Hi I just try to configure and run the example of cocoon2 and tomcat 4 u made on JBuilder 5 and followed all the configuration instruction u put in the project and it rais an internal server error. I wish u tell me how to solve this problem. Thanx Mohamed - Original Message - From: DURDINA Michal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 06, 2002 4:42 PM Subject: HowTo Cocoon pages Hello Cocoon users, I have just completed few tutorial pages along with examples about developing applications in Cocoon2. The location is http://durdo.miesto.sk/Cocoon2HowTo/index.html. At the time these pages consist of only 3 articles: * Subsitemap - creating the empty project before you move on * Data connection - connecting to DBMS, generating XML document with data from database * JBuilder for Cocoon developing - overview of JBuilder in scope of Cocoon2 developing, settings, hints, web application example These articles evolved with time, the last one is most comprehensive and contains working example of simple Cocoon2 web application. Tech info: All docs are written using Apache Documentation DTD and can be easily integrated to greater documentation. If anybody has similar pages we can merge or has better repository (domain) for these pages, please contact me. With regards, -- MisoD -- Michal Durdina - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Informacia od NOD32 1.209 (20020130) __ Tato sprava bola preverena systemom NOD32 pre Exchange. http://www.nod32.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon-2.0/Tomcat with Postgres
Alex Kachanov wrote: what seems to be a problem? I use jakarta 4.0.1 and cocoon 2.0.1 and want to use PostgreSQL. I have the following problem: my test page says the following: Hello This is my first Cocoon2 page filled with sql data! This method is not yet implemented. it is just the simple sql page a little modified: ?xml version=1.0? page xmlns:sql=http://apache.org/cocoon/SQL/2.0; titleHello/title content paraThis is my first Cocoon2 page filled with sql data!/para execute-query xmlns=http://apache.org/cocoon/SQL/2.0; query select name, country from doctors /query /execute-query /content /page in psql: heli= select name, country from doctors; name| country +--- Gustav Gans| Tirol Donald Duck| Wien Daisy Duck | Salzburg (3 rows) logs: Processor[8080][0]/SQLTransformer$Query: Caught a SQLException This method is not yet implemented. at org.postgresql.Driver.notImplemented(Driver.java:368) at org.postgresql.jdbc2.Connection.prepareStatement(Connection.java:399) at org.apache.avalon.excalibur.datasource.JdbcConnection.prepareStatement(JdbcConnection.java:172) at org.apache.cocoon.transformation.SQLTransformer$Query.execute(SQLTransformer.java:985) at org.apache.cocoon.transformation.SQLTransformer.executeQuery(SQLTransformer.java:271) at org.apache.cocoon.transformation.SQLTransformer.endExecuteQueryElement(SQLTransformer.java:417) at org.apache.cocoon.transformation.SQLTransformer.endElement(SQLTransformer.java:691) at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XMLByteStreamInterpreter.java:86) at org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserialize(XMLByteStreamInterpreter.java:59) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:177) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:355) at org.apache.cocoon.www.sitemap_xmap.matchN104DD(sitemap_xmap.java:6499) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3028) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2432) at org.apache.cocoon.sitemap.Handler.process(Handler.java:180) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144) at org.apache.cocoon.Cocoon.process(Cocoon.java:582) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) . . . and the postmaster says: DEBUG: database system is in production state postmaster: reaping dead processes... postmaster: BackendStartup: pid 3285 user test db heli socket 5 FindExec: searching PATH ... FindExec: found /usr/bin/postgres using PATH DEBUG: StartTransactionCommand DEBUG: CommitTransactionCommand postmaster: BackendStartup: pid 3287 user test db heli socket 5 FindExec: searching PATH ... FindExec: found /usr/bin/postgres using PATH DEBUG: StartTransactionCommand DEBUG: CommitTransactionCommand FindExec: searching PATH ... FindExec: found /usr/bin/postgres using PATH DEBUG: StartTransactionCommand DEBUG: CommitTransactionCommand postmaster: BackendStartup: pid 3288 user test db heli socket 5 FindExec: searching PATH ... FindExec: found /usr/bin/postgres using PATH DEBUG: StartTransactionCommand DEBUG: CommitTransactionCommand postmaster: BackendStartup: pid 3289 user test db heli socket 5 postmaster: BackendStartup: pid 3290 user test db heli socket 5 FindExec: searching PATH ... FindExec: found /usr/bin/postgres using PATH DEBUG: StartTransactionCommand DEBUG: CommitTransactionCommand DEBUG: StartTransactionCommand DEBUG: CommitTransactionCommand postmaster: dumpstatus: I looked at http://lab.applinet.nl/postgresql-jdbc/ and the doku says The PreparedStatement Interface is supported. - Please check that
patch to SQLTransformer for result sets returned from stored procedures
The version of org.apache.cocoon.transformation.SQLTransformer.java in cocoon 2.0 handles ResultSets returned from a stored procedure as OUT parameters. Oracle and some others do this, however MS SQL Server and some others can return multiple results each of which is either a ResultSet or a count of updated rows. The following patch attempts to jack up SQLTransformer v1.24 to handle these multiple results. It works well enough for what I need, but has only been tested with a MS SQL Server stored procedure that returns one ResultSet. v1.24 is the most recent version before SQLTransformer was moved somewhere else in the source tree. It's more recent than what comes with cocoon 2.0. If anyone wants to try it or just review the changes and offer suggestions for improvements please feel free. I just compile this one file and jar the resulting classes into cocoon\WEB-INF\lib\AAnewstuff.jar and cocoon picks it up from there. Cheers, Neil. Result of: LC_ALL=C TZ=UTC0 diff -Naurb SQLTransformer-1.24.java SQLTransformer.java --- SQLTransformer-1.24.javaThu Feb 7 01:23:52 2002 +++ SQLTransformer.java Fri Feb 8 05:25:10 2002 @@ -35,7 +35,7 @@ * @author a href=mailto:[EMAIL PROTECTED];Giacomo Pati/a * (PWR Organisation Entwicklung) * @author a href=mailto:[EMAIL PROTECTED];Sven Beauprez/a - * @version CVS $Revision: 1.24 $ $Date: 2001/12/15 00:21:19 $ $Author: vgritsenko $ + * @version CVS $Revision: 1.2 $ $Date: 2002/02/08 05:25:10 $ $Author: neil $ */ public class SQLTransformer extends AbstractTransformer implements Composable, Recyclable, Disposable, Configurable { @@ -263,7 +263,6 @@ } getLogger().debug( SQLTransformer executing query nr + index ); -AttributesImpl attr = new AttributesImpl(); Query query = (Query) queries.elementAt( index ); boolean query_failure = false; try { @@ -280,19 +279,19 @@ query_failure = true; } if ( !query_failure ) { - +if ( !query.isStoredProcedure() ) { + AttributesImpl rowsetAttr = new AttributesImpl(); if ( showNrOfRows != null showNrOfRows.equalsIgnoreCase( true ) ) { -attr.addAttribute( my_uri, query.nr_of_rows, query.nr_of_rows, CDATA, + rowsetAttr.addAttribute( my_uri, query.nr_of_rows, +query.nr_of_rows, CDATA, String.valueOf( query.getNrOfRows() ) ); } String name = query.getName(); if ( name != null ) { -attr.addAttribute( my_uri, query.name_attribute, query.name_attribute, CDATA, + rowsetAttr.addAttribute( my_uri, query.name_attribute, query.name_attribute, CDATA, name ); } -this.start( query.rowset_name, attr ); -attr = new AttributesImpl(); -if ( !query.isStoredProcedure() ) { + this.start( query.rowset_name, rowsetAttr ); + AttributesImpl attr = new AttributesImpl(); while ( query.next() ) { this.start( query.row_name, attr ); query.serializeRow(); @@ -301,10 +300,10 @@ } this.end( query.row_name ); } + this.end( query.rowset_name ); } else { query.serializeStoredProcedure(); } -this.end( query.rowset_name ); } } catch ( SQLException e ) { getLogger().debug( SQLTransformer.executeQuery(), e ); @@ -566,7 +565,7 @@ SQLTransformer.MAGIC_OUT_PARAMETER_NR_ATTRIBUTE ); String type = attributes.getValue( my_uri, SQLTransformer.MAGIC_OUT_PARAMETER_TYPE_ATTRIBUTE ); -getLogger().debug( OUT PARAMETER NAME + name + ;NR + nr + ; TYPE + type ); +getLogger().debug( OUT PARAMETER NAME + name + ; NR + nr + ; TYPE + type ); int position = Integer.parseInt( nr ); getCurrentQuery().setOutParameter( position, type, name ); current_state = SQLTransformer.STATE_INSIDE_OUT_PARAMETER_ELEMENT; @@ -759,13 +758,13 @@ class Query { /** Who's your daddy? **/ -protected SQLTransformer transformer; +protected final SQLTransformer transformer; /** What index are you in daddy's queries list **/ -protected int query_index; +protected final int query_index; /** SQL configuration information **/ -protected Properties properties; +protected final Properties properties; /** Dummy static variables for the moment **/ protected String rowset_name = rowset; @@ -774,29 +773,10 @@ protected String name_attribute = name; /** The connection, once opened **/ -
JSPGenerator encoding problem
Hi all! My JSPGenerator or jasper-compiler don't supported KOI8-R charset encoding. What is me do? Instructions llike ?xml version=1.0 encoding=KOI8-R? in header jsp page or map:generator name=jsp src=org.apache.cocoon.generation.JspGenerator logger=sitemap.generator.jsp label=content,data encodingKOI8-R/encoding /map:generator in sitemap.xmap Don't solved my problem Instruction like %@ page language=java encoding=KOI8-R% in jsp page is not valid I have use jasper-compiler.jar from /CATALINA_HOME/jasper dir Cocoon don't compiled without this library in WEB-INF/lib dir my jsp page. Can anyone help me with this problem? Thanx Yury. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Antw: Re: odd problem with transformer
Thank you all for your help! I've got still the same problem! I tried the writeToFile suggestion. The dynamic created xml data isn't in the pipeline anymore! Only the static data appears in the output! In my xsp code I build a dom -tree and insert the tree with xsp:exprorg.w3c.dom.Document/xsp:expr in my xml data. I even tried to put the build methods in a Java class with static methods and got the same result. PLEASE HELP! Johannes Schwarz [EMAIL PROTECTED] 07.02.2002 12.45 Uhr Jozsa Kristof writes: Under linux I use xsltproc, and it shortens the xsl-tinkering/testing/aint-work cycle very much. Great tool, I didn't know that. An alternative (and dirty) approach is to intercept the SAX stream in the pipeline and write it to a file. Place this into the sitemap (somewhere where a transformer can be placed, i.e. after a generator or another transformer): !-- write files for debugging -- map:transform src=stylesheets/saveToFile.xsl map:parameter name=filename value=/home/tinu/debug/mySAXstream.xml/ /map:transform if you use Xalan (in the Cocoon distribution), the stylesheet looks like: [...] If you use something else than Xalan, the redirect method is called differently (see e.g. in Michael Kay's 900 page XSLT book). And don't forget to cancel these lines from the sitemap, as it will certainly be slow and non-portable. Have fun! Tinu - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with Tomcat 4.0.1 and Cocoon 2.0.1
I try to use Cocoon 2.0.1 on Windows 2000 with Tomcat 4.0.1. But when I start Cocoon 2.0.1 then I get the following error. (I have enabled the trace in the cocoon.xconf.) Starting service Tomcat-Standalone Apache Tomcat/4.0.1 DriverManager.getConnection(jdbc:hsqldb:hsql://localhost:9002) trying driver[className=org.hsqldb.jdbcDriver,org.hsqldb.jdbcDriver@75078b] getConnection returning driver[className=org.hsqldb.jdbcDriver,org.hsqldb.jdbcDr iver@75078b] DriverManager.getConnection(jdbc:hsqldb:hsql://localhost:9002) trying driver[className=org.hsqldb.jdbcDriver,org.hsqldb.jdbcDriver@75078b] getConnection returning driver[className=org.hsqldb.jdbcDriver,org.hsqldb.jdbcDr iver@75078b] DriverManager.getConnection(jdbc:hsqldb:hsql://localhost:9002) trying driver[className=org.hsqldb.jdbcDriver,org.hsqldb.jdbcDriver@75078b] Sitemap location = sitemap.xmap Checking sitemap reload = true Reloading sitemap asynchron = true Sitemap check delay = 1 sec java.sql.SQLException: Connection is broken: Connection refused: connect at org.hsqldb.Trace.getError(Trace.java:180) at org.hsqldb.Trace.getError(Trace.java:144) at org.hsqldb.Trace.error(Trace.java:205) at org.hsqldb.jdbcConnection.reconnectHSQL(jdbcConnection.java:865) at org.hsqldb.jdbcConnection.openHSQL(jdbcConnection.java:838) at org.hsqldb.jdbcConnection.init(jdbcConnection.java:678) at org.hsqldb.jdbcDriver.connect(jdbcDriver.java:116) at java.sql.DriverManager.getConnection(DriverManager.java:517) at java.sql.DriverManager.getConnection(DriverManager.java:177) at org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInsta nce(JdbcConnectionFactory.java:139) at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPoo l.java:82) at org.apache.avalon.excalibur.pool.HardResourceLimitingPool.newPoolable (HardResourceLimitingPool.java:95) at org.apache.avalon.excalibur.datasource.JdbcConnectionPool.newPoolable (JdbcConnectionPool.java:74) at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPo ol.java:126) at org.apache.avalon.excalibur.pool.HardResourceLimitingPool.internalGro w(HardResourceLimitingPool.java:104) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftRe sourceLimitingPool.java:91) at org.apache.avalon.excalibur.datasource.JdbcConnectionPool.run(JdbcCon nectionPool.java:195) at java.lang.Thread.run(Thread.java:484) SQLException: SQLState(08003) getConnection failed: java.sql.SQLException: Connection is broken: Connection re fused: connect DriverManager.getConnection(jdbc:hsqldb:hsql://localhost:9002) trying driver[className=org.hsqldb.jdbcDriver,org.hsqldb.jdbcDriver@75078b] Starting service Tomcat-Apache Apache Tomcat/4.0.1 java.sql.SQLException: Connection is broken: Connection refused: connect at org.hsqldb.Trace.getError(Trace.java:180) at org.hsqldb.Trace.getError(Trace.java:144) at org.hsqldb.Trace.error(Trace.java:205) at org.hsqldb.jdbcConnection.reconnectHSQL(jdbcConnection.java:865) at org.hsqldb.jdbcConnection.openHSQL(jdbcConnection.java:833) at org.hsqldb.jdbcConnection.init(jdbcConnection.java:678) at org.hsqldb.jdbcDriver.connect(jdbcDriver.java:116) at java.sql.DriverManager.getConnection(DriverManager.java:517) at java.sql.DriverManager.getConnection(DriverManager.java:177) at org.apache.avalon.excalibur.datasource.JdbcConnectionFactory.newInsta nce(JdbcConnectionFactory.java:139) at org.apache.avalon.excalibur.pool.AbstractPool.newPoolable(AbstractPoo l.java:82) at org.apache.avalon.excalibur.pool.HardResourceLimitingPool.newPoolable (HardResourceLimitingPool.java:95) at org.apache.avalon.excalibur.datasource.JdbcConnectionPool.newPoolable (JdbcConnectionPool.java:74) at org.apache.avalon.excalibur.pool.AbstractPool.internalGrow(AbstractPo ol.java:126) at org.apache.avalon.excalibur.pool.HardResourceLimitingPool.internalGro w(HardResourceLimitingPool.java:104) at org.apache.avalon.excalibur.pool.SoftResourceLimitingPool.grow(SoftRe sourceLimitingPool.java:91) at org.apache.avalon.excalibur.datasource.JdbcConnectionPool.run(JdbcCon nectionPool.java:195) at java.lang.Thread.run(Thread.java:484) SQLException: SQLState(08003) getConnection failed: java.sql.SQLException: Connection is broken: Connection re fused: connect DriverManager.getConnection(jdbc:hsqldb:hsql://localhost:9002) trying driver[className=org.hsqldb.jdbcDriver,org.hsqldb.jdbcDriver@75078b] java.sql.SQLException: Connection is broken: Connection refused: connect at org.hsqldb.Trace.getError(Trace.java:180) at org.hsqldb.Trace.getError(Trace.java:144) at org.hsqldb.Trace.error(Trace.java:205) at org.hsqldb.jdbcConnection.reconnectHSQL(jdbcConnection.java:865) at
Re: odd problem with transformer
I found a workaround!!! I have to put the generation- code into an aggregate function! But if someone have another solution or even an explanation I will very thankful Ciao Johannes Schwarz - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSPGenerator encoding problem
From: yuryx [mailto:[EMAIL PROTECTED]] Thanx for ideas ,Vadim. But I can't undestand how declare JSP encoding. Try to read JSP specification. Vadim instead of %out.println(?xml version='1.0' encoding='koi8-r'?);% I try ?xml version='1.0' encoding='KOI8-R'? in sample.jsp but again it doesn't work :( Yury - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSPGenerator encoding problem
From: yuryx [mailto:[EMAIL PROTECTED]] Thanx for ideas ,Vadim. But I can't undestand how declare JSP encoding. Try to read JSP specification. The correct declaration is: %@ page language=java import=java.text.SimpleDateFormat,java.util.* pageEncoding=KOI8-R%?xml version='1.0' encoding=KOI8-R? Note, that your XML to be parsed you should put ?xml ...? declaration on the same line as %@ page ..., otherwise an empty line is added at the beginning of the page and this causes parsing error. Regards, Konstantin P.S. I've already sent the corrected file off-list. Vadim instead of %out.println(?xml version='1.0' encoding='koi8-r'?);% I try ?xml version='1.0' encoding='KOI8-R'? in sample.jsp but again it doesn't work :( Yury - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JSPGenerator encoding problem
From: yuryx [mailto:[EMAIL PROTECTED]] Hi all! My JSPGenerator or jasper-compiler don't supported KOI8-R charset encoding. What is me do? Use UTF-8 or Win-1251 which are (IIRC) supported. Vadim Instructions llike ?xml version=1.0 encoding=KOI8-R? in header jsp page or map:generator name=jsp src=org.apache.cocoon.generation.JspGenerator logger=sitemap.generator.jsp label=content,data encodingKOI8-R/encoding /map:generator in sitemap.xmap Don't solved my problem Instruction like %@ page language=java encoding=KOI8-R% in jsp page is not valid I have use jasper-compiler.jar from /CATALINA_HOME/jasper dir Cocoon don't compiled without this library in WEB-INF/lib dir my jsp page. Can anyone help me with this problem? Thanx Yury. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSPGenerator encoding problem
From: yuryx [mailto:[EMAIL PROTECTED]] Hi all! My JSPGenerator or jasper-compiler don't supported KOI8-R charset encoding. What is me do? Use UTF-8 or Win-1251 which are (IIRC) supported. KOI8-R is supported too. I've just checked. Vadim Instructions llike ?xml version=1.0 encoding=KOI8-R? in header jsp page or map:generator name=jsp src=org.apache.cocoon.generation.JspGenerator logger=sitemap.generator.jsp label=content,data encodingKOI8-R/encoding /map:generator in sitemap.xmap Don't solved my problem Instruction like %@ page language=java encoding=KOI8-R% in jsp page is not valid I have use jasper-compiler.jar from /CATALINA_HOME/jasper dir Cocoon don't compiled without this library in WEB-INF/lib dir my jsp page. Can anyone help me with this problem? Thanx Yury. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon 2rc2 - 2.0.1
Hi, I'm trying to migrate from Cocoon 2rc2 to 2.0.1, but after replacing all libraries I get the following error when trying to access the context: message Error in sitemap configuration : org.apache.cocoon.transformation.LDAPTransformer description org.apache.avalon.framework.configuration.ConfigurationException: Error in sitemap configuration : org.apache.cocoon.transformation.LDAPTransformer sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet LDAPTransformer isn't configured anywhere, and the standard cocoon.war works just fine. What's the problem with my webapp? Any changes in the sitemap syntax? Thanks, - Anders - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSPGenerator encoding problem
Shes live!!! :) Thanx for Piroumian, Konstantin and Vadim Gritsenko Also thanx for all I try %@ page language=java import=java.text.SimpleDateFormat,java.util.* _/*pageEncoding=KOI8-R*/_% in my jsp page and this solve problem. following line in sitemap map:serialize type=html encodingKOI8-R/encoding /map:serialize for encoding on generation part do nothig... Thanx all again! Yury - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Having Servlet call Cocoon and then capturing results...
Hey, All, Since I posted that response of having a serlvet talk to cocoon and capture the results, I've had several requests on how to do this. First off, let me give the reason why we chose this way: We have a state machine that is sending xml documents of activities across the net. The result can be renderer in either xml, wml, pager-format or even XUL for swing. The issue for is that we wanted just a fronting servlet to handle the request that we all talk to and then separate the transformations (using cocoon) into it's own separate process. That why, since the xml is dynamic, we can easily switch on parameters, etc. So, on to how I solved this: first off, I have a sub-sitemap and in it, I have the following pipeline segment. Notice that my servlet passes in several parameters, but for now, I'm only interested in the xml parameter and style parameter. (this assumes that you set up the request selector as shown in the cocoon sitemap.xmap section of selectors.) !-- original zodiac translator matcher... -- map:match pattern=translate map:generate type=stream map:parameter name=form-name value=xml/ /map:generate map:select type=request map:parameter name=parameter-name value=style/ map:when test=fancy map:transform src=stylesheets/fancy.xsl / /map:when map:otherwise map:transform src=stylesheets/generic.xsl / /map:otherwise /map:select map:serialize type=html/ /map:match So, what does this say? It states that take whatever is streamed in as the xml parameter and then select the transform based on the style parameter and serialize the results as html. In my servlet, I have the following (which calls cocoon - the results from cocoon are then sent to the httpResponse writer (note: I have a sub-site called zodiac - and no, I haven't mapped the root of cocoon yet in tomcat - we're still in development and that will come later when we go production)... StringBuffer uri = new StringBuffer(http://localhost:8080/cocoon/zodiac/request1;); BufferedReader br = null; try { // // setup my url connection stuff to be sent to cocoon... // URL miurl = new URL(uri.toString()); URLConnection con = miurl.openConnection(); con.setDoOutput(true); con.setDoInput(true); con.setUseCaches(false); con.setRequestProperty(Content- type,application/x-www-form-urlencoded ; charset=ISO-8859-1); String params = mode= + mode + style= + style + lang= + lang + action= + action; // // note: here, s is passed in as the string of //of xml data (properly formed). //Now, you need to figure the length of //of the data being sent since the stream //won't be able to figure out how to stop //reading for parameters! --- VERY //important!!! // String length = Integer.toString((URLEncoder.encode(s.toString())+ params).length()); // computed my length, now, set that request // property and start writing to the stream! con.setRequestProperty(Content-length, length); DataOutputStream dos = new DataOutputStream(con.getOutputStream()); dos.writeBytes(xml= + URLEncoder.encode(s.toString()) + params); dos.close(); sb = new StringBuffer(); // done. // read any results. // and handle them accordingly in your results. // I just capture it all in a stringBuffer // and then do any manipulation in other // methods... // InputStreamReader isr = new InputStreamReader(con.getInputStream()); br = new BufferedReader(isr); String aline; while ((aline=br.readLine()) != null) sb.append(aline); br.close(); } catch (MalformedURLException mfe) { System.out.println(mfe: + mfe.toString()); } catch (IOException ioe) { System.out.println(ioe: + ioe.toString()); } catch (Exception e) { System.out.println(e: + e.toString()); } return sb; The returned string buffer (sb) is then sent to the writer for output - it works great as a fronting servlet that I can change paremeters to and get dynamic xml html files back from. hope this helps... peace. JOe... - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New release 2.0.1 woes
Thanks, Vadim, for help it seems start to work. Just one intersting problem. It looks like I missed many new features lately. One of those: I found out that on each request context is changing to the directory where sitemap.xmap located. I do not use multiple sitemap application and I would like to freeze context to some specific lication for each request. Is there any way to do it? Thanks, Alex. - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 3:24 PM Subject: RE: New release 2.0.1 woes From: Alexander Smirnoff [mailto:[EMAIL PROTECTED]] Hi, I was trying to integrate new cocoon 2.0.1 version with my old sitemap and apparently It was not able to compile sitemap.xmap file because of the next errors (2.0rc1 works without errors): javax.xml.transform.TransformerException: Sitemap pipeline with map:generate|aggregate|transform must have map:serialize. as I understand sitemap is not able to compile because I have used something like this: map:match pattern=site/asset_mgmnt map:generate src=xsp/asset_mgmnt.xsp type=serverpages/ map:redirect-to resource=look-and-feel target=asset_mgmnt/ /map:match This construct has been deprecated in favor of map:call. Once you replace it with map:call everything should be ok. From the sample sitemap: map:call resource=dynamic-page map:parameter name=target value={../target}/state{../../../0}{../../0}/ /map:call Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
c2: scales badly compared to c1
I have a c1 application and migrated it to c2. I have both (c1 and c2) running in the same environment (tomcat 3.3) on the same machine. I did a first very basic performance test by just hiting the reload button of my browser several times very quickly and found: c1: single request processing time: 10 ms multiple requests: 15 ms, 20 ms, 16 ms,... c2: single request processing time: 10 ms multiple requests: 500 ms, 4000 ms, 6000 ms,... where does it get stuck? is something blocking? how to find out? anyone with similar experiences? -- Hans-Günter Stein Vorstand, SiteOS AG Weißenfelderstraße 3 85551 Kirchheim/Heimstetten (München) Tel. +49 - 89 - 90 77 66 00 mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
c2: broken pipe
Any help? In my c2 setup with tomcat 3.3, when several request are to be processed simultaniously, I get the following exception: ERROR (2002-02-08) 18:49.35:583 [access] (/standard.xml) Thread-39/CocoonServlet: Problem with servlet org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.io.IOException: Broken pipe at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:370) at org.apache.cocoon.www.sitemap_xmap.matchN101BA(sitemap_xmap.java:1484) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1248) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1182) at org.apache.cocoon.sitemap.Handler.process(Handler.java:180) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144) at org.apache.cocoon.Cocoon.process(Cocoon.java:582) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source) at org.apache.tomcat.core.Handler.invoke(Unknown Source) at org.apache.tomcat.core.Handler.service(Unknown Source) at org.apache.tomcat.facade.ServletHandler.service(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:498) java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java(Compiled Code)) at org.apache.tomcat.modules.server.Ajp13.send(Unknown Source) at org.apache.tomcat.modules.server.Ajp13.doWrite(Unknown Source) at org.apache.tomcat.modules.server.Ajp13Response.doWrite(Unknown Source) at org.apache.tomcat.core.OutputBuffer.realWriteBytes(Unknown Source) at org.apache.tomcat.util.buf.ByteChunk.append(Unknown Source) at org.apache.tomcat.core.OutputBuffer.writeBytes(Unknown Source) at org.apache.tomcat.core.OutputBuffer.write(Unknown Source) at org.apache.tomcat.facade.ServletOutputStreamFacade.write(Unknown Source) at org.apache.tomcat.facade.ServletOutputStreamFacade.write(Unknown Source) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:318) at org.apache.cocoon.www.sitemap_xmap.matchN101BA(sitemap_xmap.java:1484) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1248) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1182) at org.apache.cocoon.sitemap.Handler.process(Handler.java:180) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144) at org.apache.cocoon.Cocoon.process(Cocoon.java:582) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source) at org.apache.tomcat.core.Handler.invoke(Unknown Source) at org.apache.tomcat.core.Handler.service(Unknown Source) at org.apache.tomcat.facade.ServletHandler.service(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:498) java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java(Compiled Code)) at org.apache.tomcat.modules.server.Ajp13.send(Unknown Source) at org.apache.tomcat.modules.server.Ajp13.doWrite(Unknown Source) at org.apache.tomcat.modules.server.Ajp13Response.doWrite(Unknown Source) at org.apache.tomcat.core.OutputBuffer.realWriteBytes(Unknown Source) at org.apache.tomcat.util.buf.ByteChunk.append(Unknown Source) at org.apache.tomcat.core.OutputBuffer.writeBytes(Unknown Source) at org.apache.tomcat.core.OutputBuffer.write(Unknown Source) at
Re: c2: scales badly compared to c1
Hi, I am also migrating from C1 to C2. I have tried to migrate changing as lessc ode as possible. I have noticed that if I use a very basic generator, which doesn't use the avalon framework, the amount of memory used by cocoonk eep increasing at each request. Well that's quite normal I guess since myg enerator can't be recycled... The real bad thing that I can reproached to C2 is the amount of memory usedb y the sitemap. Even with a simple one, about 30MB of memory are used... Ist here a way to reduce this amount ? Thanks Alex At 18:34 08/02/2002 +0100, you wrote: I have a c1 application and migrated it to c2. I have both (c1 and c2) running in the same environment (tomcat 3.3) on the same machine. I did a first very basic performance test by just hiting the reload button of my browser several times very quickly and found: c1: single request processing time: 10 ms multiple requests: 15 ms, 20 ms, 16 ms,... c2: single request processing time: 10 ms multiple requests: 500 ms, 4000 ms, 6000 ms,... where does it get stuck? is something blocking? how to find out? anyone with similar experiences? -- Hans-Günter Stein Vorstand, SiteOS AG Weißenfelderstraße 3 85551 Kirchheim/Heimstetten (München) Tel. +49 - 89 - 90 77 66 00 mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- le présent message (ainsi que ses éventuelles pièces jointes) peut contenir des informations confidentielles. Etant établi à l'intention de ses destinataires, son utilisation ou diffusion non autorisée est interdite. Tout message électronique étant susceptible d'altération, Prisma Presse décline toute responsabilité au titre dudit message en cas de falsification. Ce message a été traité par un anti virus et aucun virus connu n'a été détecté. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
(?) xsp-request:get-attribute documentation
Hi, I've been playing around with setAttribute() in a java Action class in the container, to set attributes accessible with xsp- request:get-attribute.../ in an XSP. It works perfectly for String objects. But what I'm looking for is documentation that explains how to pass more exotic stuff using attributes; all I have found is the Request Logicsheet docs and the javadocs for XSPRequestHelper (quite terse). I'm trying to pass some array-like data (ie. a 2-dimensional String[][]) or, ideally, some tree-like data (an XML fragment?). So I tried putting XML markup in the Action class like this: request.setAttribute(blocofstuff, tabletrtda/tdtdb/td/trtrtd1/tdtd2/td/tr/table ); ...only to see it escaped, which I guess makes sense for most cases. I noticed that there is an 'as=xml|node' attribute to the get-attribute tag, but the docs don't say much about it and nothing came out when I used it; is this what I need to use? (if so, how?) I also tried passing a array of Strings like this: String aTable[][] = {{a,b},{c,d}}; request.setAttribute(mytable, aTable); and called it in a logic block: String table[][] = (String[][]) xsp-request:get-attribute name=mytable/; but Cocoon complains that I'm trying to cast a String to a String[][] (indeed in the generated code I can see something like String table[][] = (String[][]) (String.valueOf(XSPRequestHelper.getAttribute(...))); ). This probably a common newbie problem, but I haven't found any useful solutions in the archives. Any suggestions? (Feel free to hit me on the head with a URL :-)) Andre. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: c2: scales badly compared to c1
In cocoon 1, all xml files were passed to coocon and rendered properly. However, in cocoon 2, do we need to specify which individual xml files we want to pass to cocoon? Can't we just match all xml files? Thanks in advance, -- - Vishal Khatnani ESIT Group, x40727 Sun Microsystems Inc. Broomfield, Colorado - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: c2: scales badly compared to c1
Vishal, yes, you could match every XML file using the pattern **/*.xml, and, if you like, pass every XML file through the same stylesheet. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 7:50 PM To: [EMAIL PROTECTED] Subject: Re: c2: scales badly compared to c1 In cocoon 1, all xml files were passed to coocon and rendered properly. However, in cocoon 2, do we need to specify which individual xml files we want to pass to cocoon? Can't we just match all xml files? Thanks in advance, -- - Vishal Khatnani ESIT Group, x40727 Sun Microsystems Inc. Broomfield, Colorado - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon sitemap to match all xml files?
On Thu, 7 Feb 2002, Vishal Khatnani wrote: I would like to add a configuration on my sitemap that will match all xml files on my server and render using the appropriate stylesheet. I want it to look at the stylesheet specified in the xml file, and use that. i'm not aware of any way to do that in c2, unfortunately. i suppose it's possible that one could write a TraxTransformer variant that would queue its incoming sax events, scan for the xml-stylesheet PI and only get a Transformer instance after it found out what stylesheet to use... but it would be a chore, and the general feeling in the c2 crowd is that the job of associating xml resources with stylesheets is best handled in the central sitemap. Before rendering, cocoon should look at the xml file, and see which one to use by figuring out what type of request it is. As far as I know, you specify in the xml file which xsl stylesheet to use according to the request. In this way, I can use different stylesheet names, (e.g. style-wap, style-web,etc.) and use the one which is appropriate. see the browser selector example in the sample sitemap. Also, do you need ?cocoon-process type=xslt? in your xml file? I have migrated to cocoon 2 and you had to have this line in your xml files but do we need them in the latest version of cocoon? you don't need them, they're ignored. doesn't hurt anything, but it may be misleading for future developers on your team. - donald - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon-2.0/Tomcat with Postgres
On Fri, 8 Feb 2002, heli wrote: Alex Kachanov wrote: what seems to be a problem? I use jakarta 4.0.1 and cocoon 2.0.1 and want to use PostgreSQL. I have the following problem: my test page says the following: Hello This is my first Cocoon2 page filled with sql data! This method is not yet implemented. is it possible you're using an old version of the postgresql driver? - donald - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: external cgi
Hi all! i am still have problemm then calling cgi from cocoon2: then i try map:generate src=URL all works fine, but how can i supply parameter to cgi ? parameter is changing dynamically so i can't specify it in sitemap and then trying xinclude i get following: type internal-server-error message Exception in ServerPagesGenerator.generate() description org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.NullPointerException Original exception : java.lang.NullPointerException its a code : ?xml version=1.0 encoding=UTF-8? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xi=http://www.w3.org/2001/XInclude; page titleHello/title content paraThis is my first Cocoon2 page!/para xi:include href=http://www.crimea.pfu.gov/cgi-bin/day.cgi/ /content /page /xsp:page and in sitemap i have map:transform type=xinclude/ line for this pattern So, question is still open : how to get output of external cgi with specified parameter ? Thanx Igor Sazhnev - Original Message - From: Vadim Gritsenko [EMAIL PROTECTED] Subject: RE: external cgi See Cinclude and Xinclude transformers. Check out aggregation examples, including aggregate.xsp. Regular FileGenerator is good enough for you also, check out samples in the sub sitemap (http://localhost:8080/cocoon/sub/) Vadim -Original Message- From: Ratty [mailto:[EMAIL PROTECTED]] Hi! Can anyone answer me - how can i call from xsp page external cgi program ? I dont need redirect to that page - i only need output what it generate which would be processed in Cocoon Or may be i must write some generator which would read output of this cgi and create xml? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon 2.0.1 on win2000 weblogic 6.1 sp2
In a message dated 2/8/2002 11:16:43 AM Eastern Standard Time, [EMAIL PROTECTED] (JSun0607) writes: Hi All I just download the Cocoon 2.0.1 and followed the instruction to deploy on my windows 2000, weblogic 6.1 sp2 machine. It seems does not work. I changed the xsl section in cocoon.xconf. I also try on tomcat 4.01 and got the same result. Could someone give me a hand ? Following is the error message from weblogic when I deploy. Thanks ! Request Errors Error Distributed Management [1 exceptions] java.lang.reflect.InvocationTargetException: weblogic.management.DistributedManagementException: Distributed Management [1 exceptions] at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:543) at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:361) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209) at $Proxy13.addDeployment(Unknown Source) at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1516) at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:895) at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847) at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:295) at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356) at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331) at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204) at $Proxy72.setTargets(Unknown Source) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92) at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:135) at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171) at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)Distributed update exception- remote object: hbotest:Location=hbotestserver,Name=hbotestserver,Type=ServerConfig- remote server: weblogic.management.internal.RemoteMBeanServerImpl@443628- actionName: addDeployment- params: [Ljava.lang.Object;@53108d- signature: [Ljava.lang.String;@63d007Distributed update exception- remote object: hbotest:Location=hbotestserver,Name=hbotestserver,Type=ServerConfig- remote server: [EMAIL PROTECTED]: String index out of range: -1 at java.lang.String.substring(String.java:1525) at weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:166) at weblogic.utils.jars.Manifest.stream(Manifest.java:81) at weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java:398) at weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:234) at weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:3407) at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:3376) at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:862) at weblogic.servlet.internal.WebAppServletContext.(WebAppServletContext.java:815) at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428) at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74) at weblogic.j2ee.Application.addComponent(Application.java:163) at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144) at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636) at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621) at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
cocoon 2.0.1 on win2000 weblogic 6.1 sp2
Hi All I just download the Cocoon 2.0.1 and followed the instruction to deploy on my windows 2000, weblogic 6.1 sp2 machine. It seems does not work. I changed the xsl section in cocoon.xconf. I also try on tomcat 4.01 and got the same result. Could someone give me a hand ? Following is the error message from weblogic when I deploy. Thanks ! Request Errors Error Distributed Management [1 exceptions] java.lang.reflect.InvocationTargetException: weblogic.management.DistributedManagementException: Distributed Management [1 exceptions] at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:543) at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:361) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209) at $Proxy13.addDeployment(Unknown Source) at weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1516) at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:895) at weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847) at weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:295) at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356) at com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331) at weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322) at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204) at $Proxy72.setTargets(Unknown Source) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92) at weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:135) at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171) at weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)Distributed update exception- remote object: hbotest:Location=hbotestserver,Name=hbotestserver,Type=ServerConfig- remote server: weblogic.management.internal.RemoteMBeanServerImpl@443628- actionName: addDeployment- params: [Ljava.lang.Object;@53108d- signature: [Ljava.lang.String;@63d007Distributed update exception- remote object: hbotest:Location=hbotestserver,Name=hbotestserver,Type=ServerConfig- remote server: [EMAIL PROTECTED]: String index out of range: -1 at java.lang.String.substring(String.java:1525) at weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:166) at weblogic.utils.jars.Manifest.stream(Manifest.java:81) at weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java:398) at weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:234) at weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:3407) at weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:3376) at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:862) at weblogic.servlet.internal.WebAppServletContext.(WebAppServletContext.java:815) at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428) at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74) at weblogic.j2ee.Application.addComponent(Application.java:163) at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329) at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144) at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76) at java.lang.reflect.Method.invoke(Native Method) at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636) at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621) at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555) at
RE: sitemap
Vishal, well, you must have a transformation declaration in your pipeline... but you could choose it dynamically, based on the browser type. There are example on this in the Cocoon doc (though I never tried them :( ). Best regards, P.S. Since I think this matter may be helpful to others, I cc-ed this message to the list; please, do the same with your messages. - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:48 PM To: [EMAIL PROTECTED] Subject: Re: sitemap thank you very much! very helpful. In the case where I have declared in my xml file different stylesheets (e.g. if wap request then wap.xsl, if web request then web.xsl, etc.) ... then I don't need to declare this: map:transform src=stylesheets/{1}.xsl/ right? thanks, Luca Morandini wrote: Vishal, this one matches every XML (like foo.xml or bar.xml) and transform them using a stylesheet with the same name (foo.xsl, bar.xsl). map:match name=wildcard pattern=*.xml map:generate type=file src=documents/{1}.xml/ map:transform src=stylesheets/{1}.xsl/ map:serialize type=html/ /map:match Of course, XMLs should be in the documents directory and XSLs in the stylesheet one, both under the sub-sitemap root. Mind, it doesn't match directories, like in foo/bar.xml; this could be done using a different matcher... but you got the idea, I hope. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:28 PM To: [EMAIL PROTECTED] Subject: sitemap Hi, Could you send me an actual sitemap config example that matches all xml files? Thanks, -- - Vishal Khatnani ESIT Group, x40727 Sun Microsystems Inc. Broomfield, Colorado - -- - Vishal Khatnani ESIT Group, x40727 Sun Microsystems Inc. Broomfield, Colorado - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sitemap
I did the matching of all xml documents in the documents directory... map:match name=wildcard pattern=*.xml map:generate type=file src=documents/{1}.xml/ map:transform src=stylesheets/{1}.xsl/ map:serialize type=html/ /map:match but when I point my browser to: http://localhost:8080/documents/file.xml I get a blank page. Im using netscape 4.75. When I go to view source I can see the actual xml code but it's just not being passed to cocoon! Ive tried the samples, and they seem to work. What can I do? Please help, Thanks, Luca Morandini wrote: Vishal, well, you must have a transformation declaration in your pipeline... but you could choose it dynamically, based on the browser type. There are example on this in the Cocoon doc (though I never tried them :( ). Best regards, P.S. Since I think this matter may be helpful to others, I cc-ed this message to the list; please, do the same with your messages. - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:48 PM To: [EMAIL PROTECTED] Subject: Re: sitemap thank you very much! very helpful. In the case where I have declared in my xml file different stylesheets (e.g. if wap request then wap.xsl, if web request then web.xsl, etc.) ... then I don't need to declare this: map:transform src=stylesheets/{1}.xsl/ right? thanks, Luca Morandini wrote: Vishal, this one matches every XML (like foo.xml or bar.xml) and transform them using a stylesheet with the same name (foo.xsl, bar.xsl). map:match name=wildcard pattern=*.xml map:generate type=file src=documents/{1}.xml/ map:transform src=stylesheets/{1}.xsl/ map:serialize type=html/ /map:match Of course, XMLs should be in the documents directory and XSLs in the stylesheet one, both under the sub-sitemap root. Mind, it doesn't match directories, like in foo/bar.xml; this could be done using a different matcher... but you got the idea, I hope. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:28 PM To: [EMAIL PROTECTED] Subject: sitemap Hi, Could you send me an actual sitemap config example that matches all xml files? Thanks, -- - Vishal Khatnani ESIT Group, x40727 Sun Microsystems Inc. Broomfield, Colorado - -- - Vishal Khatnani ESIT Group, x40727 Sun Microsystems Inc. Broomfield, Colorado - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - Vishal Khatnani ESIT Group, x40727 Sun Microsystems Inc. Broomfield, Colorado - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sitemap
I have verified that the documents and stylesheets directory are in the ROOT directory under webapps. Still no success! Any ideas?? Thanks so much. Vishal Khatnani wrote: I did the matching of all xml documents in the documents directory... map:match name=wildcard pattern=*.xml map:generate type=file src=documents/{1}.xml/ map:transform src=stylesheets/{1}.xsl/ map:serialize type=html/ /map:match but when I point my browser to: http://localhost:8080/documents/file.xml I get a blank page. Im using netscape 4.75. When I go to view source I can see the actual xml code but it's just not being passed to cocoon! Ive tried the samples, and they seem to work. What can I do? Please help, Thanks, Luca Morandini wrote: Vishal, well, you must have a transformation declaration in your pipeline... but you could choose it dynamically, based on the browser type. There are example on this in the Cocoon doc (though I never tried them :( ). Best regards, P.S. Since I think this matter may be helpful to others, I cc-ed this message to the list; please, do the same with your messages. - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:48 PM To: [EMAIL PROTECTED] Subject: Re: sitemap thank you very much! very helpful. In the case where I have declared in my xml file different stylesheets (e.g. if wap request then wap.xsl, if web request then web.xsl, etc.) ... then I don't need to declare this: map:transform src=stylesheets/{1}.xsl/ right? thanks, Luca Morandini wrote: Vishal, this one matches every XML (like foo.xml or bar.xml) and transform them using a stylesheet with the same name (foo.xsl, bar.xsl). map:match name=wildcard pattern=*.xml map:generate type=file src=documents/{1}.xml/ map:transform src=stylesheets/{1}.xsl/ map:serialize type=html/ /map:match Of course, XMLs should be in the documents directory and XSLs in the stylesheet one, both under the sub-sitemap root. Mind, it doesn't match directories, like in foo/bar.xml; this could be done using a different matcher... but you got the idea, I hope. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:28 PM To: [EMAIL PROTECTED] Subject: sitemap Hi, Could you send me an actual sitemap config example that matches all xml files? Thanks, -- - Vishal Khatnani ESIT Group, x40727 Sun Microsystems Inc. Broomfield, Colorado - -- - Vishal Khatnani ESIT Group, x40727 Sun Microsystems Inc. Broomfield, Colorado - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - Vishal Khatnani ESIT Group, x40727 Sun Microsystems Inc. Broomfield, Colorado - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - Vishal Khatnani ESIT Group, x40727 Sun Microsystems Inc. Broomfield, Colorado - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: sitemap
Vishal, they should be under $TOMAT_HOME/webapps/cocoon. The path is relative to the cocoon servlet directory. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 10:20 PM To: [EMAIL PROTECTED] Subject: Re: sitemap I have verified that the documents and stylesheets directory are in the ROOT directory under webapps. Still no success! Any ideas?? Thanks so much. Vishal Khatnani wrote: I did the matching of all xml documents in the documents directory... map:match name=wildcard pattern=*.xml map:generate type=file src=documents/{1}.xml/ map:transform src=stylesheets/{1}.xsl/ map:serialize type=html/ /map:match but when I point my browser to: http://localhost:8080/documents/file.xml I get a blank page. Im using netscape 4.75. When I go to view source I can see the actual xml code but it's just not being passed to cocoon! Ive tried the samples, and they seem to work. What can I do? Please help, Thanks, Luca Morandini wrote: Vishal, well, you must have a transformation declaration in your pipeline... but you could choose it dynamically, based on the browser type. There are example on this in the Cocoon doc (though I never tried them :( ). Best regards, P.S. Since I think this matter may be helpful to others, I cc-ed this message to the list; please, do the same with your messages. - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:48 PM To: [EMAIL PROTECTED] Subject: Re: sitemap thank you very much! very helpful. In the case where I have declared in my xml file different stylesheets (e.g. if wap request then wap.xsl, if web request then web.xsl, etc.) ... then I don't need to declare this: map:transform src=stylesheets/{1}.xsl/ right? thanks, Luca Morandini wrote: Vishal, this one matches every XML (like foo.xml or bar.xml) and transform them using a stylesheet with the same name (foo.xsl, bar.xsl). map:match name=wildcard pattern=*.xml map:generate type=file src=documents/{1}.xml/ map:transform src=stylesheets/{1}.xsl/ map:serialize type=html/ /map:match Of course, XMLs should be in the documents directory and XSLs in the stylesheet one, both under the sub-sitemap root. Mind, it doesn't match directories, like in foo/bar.xml; this could be done using a different matcher... but you got the idea, I hope. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:28 PM To: [EMAIL PROTECTED] Subject: sitemap Hi, Could you send me an actual sitemap config example that matches all xml files? Thanks, -- - Vishal Khatnani ESIT Group, x40727 Sun Microsystems Inc. Broomfield, Colorado - -- - Vishal Khatnani ESIT Group, x40727 Sun Microsystems Inc. Broomfield, Colorado - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - Vishal Khatnani ESIT Group, x40727 Sun Microsystems Inc. Broomfield, Colorado - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - Vishal Khatnani ESIT Group, x40727 Sun Microsystems Inc.
Re: sitemap
makes sense now! Thank you very much! it works. Luca Morandini wrote: Vishal, they should be under $TOMAT_HOME/webapps/cocoon. The path is relative to the cocoon servlet directory. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 10:20 PM To: [EMAIL PROTECTED] Subject: Re: sitemap I have verified that the documents and stylesheets directory are in the ROOT directory under webapps. Still no success! Any ideas?? Thanks so much. Vishal Khatnani wrote: I did the matching of all xml documents in the documents directory... map:match name=wildcard pattern=*.xml map:generate type=file src=documents/{1}.xml/ map:transform src=stylesheets/{1}.xsl/ map:serialize type=html/ /map:match but when I point my browser to: http://localhost:8080/documents/file.xml I get a blank page. Im using netscape 4.75. When I go to view source I can see the actual xml code but it's just not being passed to cocoon! Ive tried the samples, and they seem to work. What can I do? Please help, Thanks, Luca Morandini wrote: Vishal, well, you must have a transformation declaration in your pipeline... but you could choose it dynamically, based on the browser type. There are example on this in the Cocoon doc (though I never tried them :( ). Best regards, P.S. Since I think this matter may be helpful to others, I cc-ed this message to the list; please, do the same with your messages. - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:48 PM To: [EMAIL PROTECTED] Subject: Re: sitemap thank you very much! very helpful. In the case where I have declared in my xml file different stylesheets (e.g. if wap request then wap.xsl, if web request then web.xsl, etc.) ... then I don't need to declare this: map:transform src=stylesheets/{1}.xsl/ right? thanks, Luca Morandini wrote: Vishal, this one matches every XML (like foo.xml or bar.xml) and transform them using a stylesheet with the same name (foo.xsl, bar.xsl). map:match name=wildcard pattern=*.xml map:generate type=file src=documents/{1}.xml/ map:transform src=stylesheets/{1}.xsl/ map:serialize type=html/ /map:match Of course, XMLs should be in the documents directory and XSLs in the stylesheet one, both under the sub-sitemap root. Mind, it doesn't match directories, like in foo/bar.xml; this could be done using a different matcher... but you got the idea, I hope. Best regards, - Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:28 PM To: [EMAIL PROTECTED] Subject: sitemap Hi, Could you send me an actual sitemap config example that matches all xml files? Thanks, -- - Vishal Khatnani ESIT Group, x40727 Sun Microsystems Inc. Broomfield, Colorado - -- - Vishal Khatnani ESIT Group, x40727 Sun Microsystems Inc. Broomfield, Colorado - - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- - Vishal Khatnani ESIT Group, x40727 Sun Microsystems Inc. Broomfield, Colorado - - Please check that your question has not already been answered in the
Re: Cocoon-2.0/Tomcat with Postgres
Donald Ball wrote: On Fri, 8 Feb 2002, heli wrote: Alex Kachanov wrote: what seems to be a problem? I use jakarta 4.0.1 and cocoon 2.0.1 and want to use PostgreSQL. I have the following problem: my test page says the following: Hello This is my first Cocoon2 page filled with sql data! This method is not yet implemented. is it possible you're using an old version of the postgresql driver? - donald - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] thank you, i installed the rpms for postgresql 7.1.3 and the corresponding jdbc rpm but it looks like they have jdbc7.0-1.2.jar instead of jdbc7.1-1.2.jar bye heli -- __ ____ ____ _____ / // /__ / /_ _ __ __/ /_ / // /__ (_)__/ /__ ___ / _ / -_) / ' \/ // / __/ / _ / -_) / _ / -_) _ `/ _ `/ -_) __/ /_//_/\__/_/_/_/_/\_,_/\__/ /_//_/\__/_/\_,_/\__/\_, /\_, /\__/_/ /___//___/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: (?) xsp-request:get-attribute documentation
Never mind -- I found where to look: in the request.xsl logicsheet in the cocoon.jar file. And btw, it works! (I needed to use as=object for the array case). Is there any documentation project going on? I'd like to consider helping out some. Things really aren't too hard to understand looking at the XSL but for the newcomer, it takes a while to find out where to start. A. On Friday, February 8, 2002, at 01:33 , Andre Thenot wrote: Hi, I've been playing around with setAttribute() in a java Action class in the container, to set attributes accessible with xsp- request:get-attribute.../ in an XSP. It works perfectly for String objects. But what I'm looking for is documentation that explains how to pass more exotic stuff using attributes; all I have found is the Request Logicsheet docs and the javadocs for XSPRequestHelper (quite terse). I'm trying to pass some array-like data (ie. a 2-dimensional String[][]) or, ideally, some tree-like data (an XML fragment?). So I tried putting XML markup in the Action class like this: request.setAttribute(blocofstuff, tabletrtda/tdtdb/td/trtrtd1/tdtd2/td/tr/table ); ...only to see it escaped, which I guess makes sense for most cases. I noticed that there is an 'as=xml|node' attribute to the get-attribute tag, but the docs don't say much about it and nothing came out when I used it; is this what I need to use? (if so, how?) I also tried passing a array of Strings like this: String aTable[][] = {{a,b},{c,d}}; request.setAttribute(mytable, aTable); and called it in a logic block: String table[][] = (String[][]) xsp-request:get-attribute name=mytable/; but Cocoon complains that I'm trying to cast a String to a String[][] (indeed in the generated code I can see something like String table[][] = (String[][]) (String.valueOf(XSPRequestHelper.getAttribute(...))); ). This probably a common newbie problem, but I haven't found any useful solutions in the archives. Any suggestions? (Feel free to hit me on the head with a URL :-)) Andre. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
confusion with C2!
cocoon users, Im confused. I don't understand why my xml files have to be in the cocoon directory e.g. ...webapps/cocoon/proj/file.xml That means I can't render xml files which are under ...webapps/ROOT/XML/ which really poses a problem for me (file layout considerations). Also, java servlets on my system are located under .../webapps/java/WEB-INF/classes ... so how do I configure cocoon to: - render any file under my root directory?? - get the xml output from my java servlet in the java/WEB-INF/classes directory to be passed to cocoon?? I'm sorry if i'm being repetitive, im just somewhat confused with how the virtual path seems to be: webapps/ROOT/cocoon instead of the real one which is webapps/cocoon/ and the configuration issues. I hope i've expressed myself well. I would appreciate any examples, source code, explanations, etc im a newbie in the world of cocoon. Please help! I am desperate! Thanks, - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Selector problem
Hi All without the seelctor everything works well, but with the parameterselector in my pipeline get the following error: java.lang.RuntimeException: Stylesheet directed termination at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3174) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH andlerImpl.java:433) at org.xml.sax.helpers.XMLFilterImpl.endDocument(XMLFilterImpl.java:518) at org.xml.sax.helpers.XMLFilterImpl.endDocument(XMLFilterImpl.java:518) at org.apache.xerces.parsers.SAXParser.endDocument(SAXParser.java:1230) at org.apache.xerces.validators.common.XMLValidator.callEndDocument(XMLValidato r.java:1146) at org.apache.xerces.framework.XMLDocumentScanner$EndOfInputDispatcher.dispatch (XMLDocumentScanner.java:1499) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner. java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) my pipline looks like: map:pipeline map:match pattern=*.view map:generate src={1}.xml/ map:transform type=XformTransformer src={1}/ map:serialize/ /map:match map:match pattern=**.cmd map:act type=XMLRequestObjectCreater/ map:select type=parameter parameter name=parameter-selector-test value={chiba_action}/ map:when test=save map:act type=SaveRequestProcessor src={1}/ /map:when /map:select map:transform type=XformTransformer src={1}/ map:serialize/ /map:match /map:pipeline What's my failure ? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: confusion with C2!
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] cocoon users, Im confused. I don't understand why my xml files have to be in the cocoon directory e.g. ...webapps/cocoon/proj/file.xml snip/ Please help! I am desperate! Dear Vishal, As Sun employee you should teach everybody how to deploy web applications, were to put all the class files, etc. Now I see that you do not have even slightest understanding of how web applications are working. Before you ask other questions, please read specifications published on Sun's website: http://java.sun.com/products/servlet/download.html Also, consider installing and learning one of the servlet engines available out there. Tomcat is among others available for free under: http://jakarta.apache.org/tomcat/ Regards, Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: (?) xsp-request:get-attribute documentation
From: Andre Thenot [mailto:[EMAIL PROTECTED]] Never mind -- I found where to look: in the request.xsl logicsheet in the cocoon.jar file. And btw, it works! (I needed to use as=object for the array case). Is there any documentation project going on? It's kind of going on continuously in the CVS :) I'd like to consider helping out some. This would be terrific! Just grab the CVS, or, if you don't have CVS client, just go to http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/documentation/xdocs/, modify any doc where you feel you can contribute, and send in the patches to the developer list! Preferred patches are generated by diff -u command between original file and modified one. Things really aren't too hard to understand looking at the XSL but for the newcomer, it takes a while to find out where to start. A. Vadim snip/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SVG to JPEG
Hi all, I am trying to generate a JPEG image from SVG. I can get this to work if I generate the source SVG, save it to disk and then put the source file through the svgtojpeg serializer. In other words, it appears that the svgtojpeg serialzer will work in this instance. The problem is that in real life, the source for the SVG is being dynamically generated, so reading the source from disk can't happen. The pipeline I use to do this looks something like this: ... map:pipeline map:match pattern=test/jpeg/*.svg map:act type=graphing map:parameter name=descriptor value=@deploy-path@/gfa/logic/descriptors/graphing_config.xml/ map:generate type=serverpages src=@deploy-path@/gfa/logic/xsp/graph3a.xsp/ map:transform src=@deploy-path@/gfa/stylesheets/com.thelevel.graph.xsl/ map:serialize type=svg2jpeg/ /map:act /map:match /map:pipeline ... In the above scenario, the graphing action gets the data from the database and puts it into an object. The information in that object is then translated into XML by an xsp. That XML is then converted into SVG by an XSL sheet which is fed through the svgtojpeg serializer. The error seems to occur during the streaming from generator to transformer to serializer. The snippet below is the result of my debugging to System.out from the XSP page and the Exception's output. openGraphSet1 /openGraphSet1 openGraphSet2 org.w3c.dom.DOMException: The current node (type: 9, name: #document) do not allow children of the given type (type: 3, name: #text) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3174) at java.lang.Thread.run(Thread.java:484) /openGraphSet2 openGraphSet3 /openGraphSet3 The interesting thing is that the Exception is nested in my debugging code. It seems like something is expecting a complete event stream and gagging as a result of not getting it...which would explain why the static SVG source works but not the dynamic. Any suggestions? Thanks in advance. --- Colin Hall The Level www.thelevel.com --- - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: cocoon 2.0.1 on win2000 weblogic 6.1 sp2
hi, i have changed sitemap.xmap commenting out parentcm, as it is not by default declared in cocoon.xconf hence the cocoon2 webapp is changed to: !-- = Parent Component Manager -- !--map:match pattern=parentcm map:generate type=parentcm src={1}/ map:transform src=stylesheets/parentcm/time.xsl/ map:serialize/ /map:match-- have you checked the WEB-INF/logs? i deployed cocoon in exploded mode, and not as war file. more over i copied the generated files from tomcat work to the _tmp-deployment directory of wls, hope it helps, bye bernhard - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: confusion with C2!
Vadim, Let me explain. I have worked with java servlets before, and used several servlet engines such as jakarta tomcat and iplanet in the past. The problem is not deploying these, but understanding specific configurations which aren't well documented IMHO. It's been very recent since I got into the XML technology (specifically with cocoon) so what im really asking for is better sharing of knowledge amongst us... Thanks for your help, Vishal Vadim Gritsenko wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] cocoon users, Im confused. I don't understand why my xml files have to be in the cocoon directory e.g. ...webapps/cocoon/proj/file.xml snip/ Please help! I am desperate! Dear Vishal, As Sun employee you should teach everybody how to deploy web applications, were to put all the class files, etc. Now I see that you do not have even slightest understanding of how web applications are working. Before you ask other questions, please read specifications published on Sun's website: http://java.sun.com/products/servlet/download.html Also, consider installing and learning one of the servlet engines available out there. Tomcat is among others available for free under: http://jakarta.apache.org/tomcat/ Regards, Vadim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Vishal Khatnani -- x74287 Applications Support/Sys Admin Infrastructure Support Group (ESIT) Sun Microsystems, Inc. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: confusion with C2!
Vadim- It's a pity that we can't help people today, isn't it? My understanding is that Sun is a big company, with many different jobs. Just my 2 cents ... Tim - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]