Warning: new namespace of XMLForms (xmlform block) in v2.1 CVS.
Hello, Cocooners. Old namespace http://xml.apache.org/cocoon/xmlform/2002; changed to http://apache.org/cocoon/xmlform/1.0; If you have problem with xmlforms under last month v2.1 cvs, revise your docs/stylesheets. WBR, Dmitry. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: All hope lost: Can FragmentExtractor serve SVG images to IE (socket write error) ?
On Wednesday 04 June 2003 22:57, Christian Kurz wrote: CK has anybody successfully served svg images (not svg rendered as JPG or CK PNG, this just works great!) to the IE using the FragmentGenerator? I CK would really appreciate any information or code snippets about sitemap CK setup and versions used (OS, JDK, Tomcat, Cocoon, Xalan). Yes, works great on konqueror, netscape (mozilla), ie 5.5 and ie 6. Didn't try others. CK -cocoon (2.0.3, 2.0.4), To my 2.0 times I also had the problem. The problem was gone since I use cocoon 2.1. I guess it has something to do with pipeline caching, but have never tested. Regards Torsten -- Domain in provider transition, hope for smoothness. Planed date is 1.7.2003. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using cookies
Dear All, I have a small application that I want to be able to set and read a cookie from the user's browser. The cookie must be persistent. In ASP, to set the cookie I would simply say: Response.cookies(name)=request(name) Then I can access it with: Request.cookies(name) I would imagine that this should be easy with Cocoon - a combination of an Action to set the cookie and an input module to read it. I'm quite prepared to use flow if that'll help. But I can't find anything to point me in the right direction. Any pointers anyone? Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TeX to PDF serializator
I think it's not in the the cocoon project's goals. A project also exist : http://tex2pdf.berlios.de/ Nicolas Le mercredi, 4 juin 2003, à 19:41 Europe/Paris, Vasil I. Yaroshevich a écrit : Whether exists subj? -- Best regards, Vasil mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Some study of implantation
Hello friends, I have to implant Cocoon in my enterprise and I need a bit of generic information about it. I need some study of implantation with contrasted data in a web site migration to Cocoon, and the economic advantages in maintenance of the site. Could you help me with some links? Really thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sitemap parsing error?
Title: Sitemap parsing error? Howdy Guys I'm using Cocoon 2.04 and attempting to run this on Solaris with the Sun One App Server 7. I've installed the WAR file and it runs fine... my final problem appears to be a cocoon problem. I am able to start up the application server fine... and no errors are logged. However, when i invoke the servlet... i get the following problems: Cocoon 2 - Internal server error type fatal message Illegal character at end of document, u. description org.xml.sax.SAXParseException: Illegal character at end of document, u. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.xml.sax.SAXParseException: Illegal character at end of document, u. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) request-uri /cocoon/ path-info --- Looking at the logs in WEB-INF/logs, I find the following curious statement in the access.log: ERROR (2003-06-05) 17:06.07:594 [access] (/cocoon/) service-j2ee/CocoonServl et: Problem with Cocoon servlet org.xml.sax.SAXParseException: Illegal character at end of document, #x75;. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator. generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g enerateCode(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. generateResource(ProgramGeneratorImpl.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. createResource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. load(ProgramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) In the sitemap.log i get: ERROR (2003-06-05) 17:06.07:591 [sitemap] (/cocoon/) service-j2ee/Handler: E rror compiling sitemap org.xml.sax.SAXParseException: Illegal character at end of document, #x75;. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator. generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g enerateCode(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. generateResource(ProgramGeneratorImpl.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. createResource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. load(ProgramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) The end of the sitemap is this: map:handle-errors map:transform src=""> map:serialize status-code=500/ /map:handle-errors /map:pipeline /map:pipelines /map:sitemap !-- end of
Re: recommed upgrading to Xalan 2.5 when using document() regularly
Antonio Gallardo wrote: Joerg Heinicke dijo: I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS, so they should be in the next Cocoon 2.0.x release - I guess the 5 comes after the 4 ;-) Cool! I think we can close the bug related to document() function! Hello Anotnio, to which one you refer? Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TeX to PDF serializator
I think it's not in the the cocoon project's goals. Why not? A good reason which I can see for such a component is that you could use the features of TeX to automatically create printable pages with high quality. Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using cookies
there is a cookie logikcheet in xsp but i dont know if they are online information (examples) somewhere --stavros On Thu, 5 Jun 2003, Upayavira wrote: Dear All, I have a small application that I want to be able to set and read a cookie from the user's browser. The cookie must be persistent. In ASP, to set the cookie I would simply say: Response.cookies(name)=request(name) Then I can access it with: Request.cookies(name) I would imagine that this should be easy with Cocoon - a combination of an Action to set the cookie and an input module to read it. I'm quite prepared to use flow if that'll help. But I can't find anything to point me in the right direction. Any pointers anyone? Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: commandline executes matching pipeline three times
thanks for the replies, it saves me a lot of frustration :) In the application, a transformer will be used to transfer the incoming XML to an FTP server. The resulting XML will contain info about the transfer, such as size, failure/success, ... So it is important that the transfer happens only once... If you have any other suggestions for doing this, it would be appreciated ! Can you explain more exactly what you're trying to achieve? What transformer will you use? If you're talking about writing your own transformer, I would recommend using the SourceWritingTransformer and creating an FTPSource that you can write to. Even better, write a VFS source (giving other protocols too). The source itself could probably be configured to record success/failure, and to only transfer once. (BTW, Cocoon2.1 is not an option at this point) It's a real shame that you're not able to use 2.1, as it now can write directly to modifiable sources. Therefore, if you had an FTP source, you could generate a page and have the CLI send it straight to your FTP server. Thanks again ! You're welcome! Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
internal pipeline
Hi all, I have a problem and don't know if it is a bug in Cocoon or if I'm doing something wrong. What I have is a pipeline which transforms an XML (source) file into an XSLT (target) stylesheet: map:match pattern=xms/test map:generate src=xms/resources/combined.xml/ map:transform src=xms/styles/Meta_output.xsl/ map:serialize type=xml/ /map:match now I'd like to use the output as the source of another pipeline: map:match pattern=view/* map:generate src=xms/resources/{1}.xml/ map:transform src=cocoon:/xms/test/ map:serialize type=html/ /map:match I don't get any errors but the HTML output of the view pipeline is not the expected (I have checked the output of the first pipeline and that is correct. I assume it has something to do with the way I use cocoon:/... as the source of the second transformer). Any ideas? Thanks, -- -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using cookies
there is a cookie logikcheet in xsp Thanks. I'll look into that. but i dont know if they are online information (examples) somewhere Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: internal pipeline
Hi Ali, Ali Mesbah wrote: Hi all, I have a problem and don't know if it is a bug in Cocoon or if I'm doing something wrong. What I have is a pipeline which transforms an XML (source) file into an XSLT (target) stylesheet: map:match pattern=xms/test map:generate src=xms/resources/combined.xml/ map:transform src=xms/styles/Meta_output.xsl/ map:serialize type=xml/ /map:match now I'd like to use the output as the source of another pipeline: map:match pattern=view/* map:generate src=xms/resources/{1}.xml/ map:transform src=cocoon:/xms/test/ map:serialize type=html/ /map:match I don't get any errors but the HTML output of the view pipeline is not the expected (I have checked the output of the first pipeline and that is correct. I assume it has something to do with the way I use cocoon:/... as the source of the second transformer). Any ideas? Your pipelines look OK (if I didn't miss anything). You're using the cocoon: protocol correctly. I also tried this kind of stylesheet generation (using XSP) and it worked very well. So I guess your problem is somewhere in the last transformation step. You can try to set the log level to DEBUG and look at the sitemap log to see if the correct steps are executed. The next debugging step could be to save the output of your first pipeline as an XSLT file and to use this directly without the cocoon: protocol. HTH, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
LDAP Help? Where is there any complete help/tutorial? Mail archive doesn't work
Hello. I'm trying to get LDAP working since 2days, but I can't get any helpfully help! I also tried the mail archives, but there are all dead links (eg. http://www.mail-archive.com/[EMAIL PROTECTED]/msg28095.html). Is there somewhere somebody who knows how LDAP works (more precisely with Active Directory) from A to Z? Thank you for any help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: recommed upgrading to Xalan 2.5 when using document() regularly
Do you think the bug is fixed in current Xalan? If it's not we have it in Cocoon 2.0 too ;-) Joerg Antonio Gallardo wrote: Joerg Heinicke dijo: Antonio Gallardo wrote: Joerg Heinicke dijo: I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS, so they should be in the next Cocoon 2.0.x release - I guess the 5 comes after the 4 ;-) Cool! I think we can close the bug related to document() function! Hello Anotnio, to which one you refer? This? http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20381 Antonio Joerg -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: LDAP Help? Where is there any complete help/tutorial? Mail archive doesn't work
Le Jeudi, 5 juin 2003, à 11:22 Europe/Zurich, [EMAIL PROTECTED] a écrit : ...I also tried the mail archives, but there are all dead links (eg. http://www.mail-archive.com/[EMAIL PROTECTED]/msg28095.html). don't know about mail-archive but most people here use the MARC archives, which work: http://marc.theaimsgroup.com/?l=xml-cocoon-devw=2r=1s=ldapq=b http://marc.theaimsgroup.com/?l=xml-cocoon-usersw=2r=1s=ldapq=b There are some docs at the wiki as well (search for LDAP at http://wiki.cocoondev.org/Wiki.jsp). ...Is there somewhere somebody who knows how LDAP works (more precisely with Active Directory) from A to Z? If there's no one you might have to investigate yourself (using the logs and possibly a debugger), or hire someone to do it for you. Just talked about this earlier today at http://codeconsult.ch/bertrand/archives/72.html -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems tracking session from page to page
Title: Message You have to create a session object first. Regards shoaib -Original Message-From: Mike Lenyon [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 9:38 AMTo: [EMAIL PROTECTED]Subject: Re: problems tracking session from page to page shoaib, thanks for your response. the context in which i'm trying to use the session object is xsp. unfortunately, merely starting my xsp with xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:xsp-session="http://apache.org/xsp/session/2.0" causes theerror message: java.lang.IllegalStateException: Cannot create a session after the response has been committed Mike Lenyon - Original Message - From: shoaib To: [EMAIL PROTECTED] Sent: Monday, May 26, 2003 9:16 PM Subject: RE: problems tracking session from page to page Why dont you use XSP and then use session object of XSP just as you use in normal case of JSP page. Regards Shoaib -Original Message-From: Mike Lenyon [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 4:53 AMTo: [EMAIL PROTECTED]Subject: problems tracking session from page to page hi all, i'm a cocoon newbie. i created a couple of pages that store values in the session. i've tried retrieving those values from the session with calls like request.getSession(), but i get an error each time i make such a call: "Cannot create a session after the response has been committed." so i think, ok, cocoon will track the session for me from page to page. all i need to do is use tags like this: xsp-request:set-attribute name="current-quote" xsp:exprcurrentQuote/xsp:expr/xsp-request:set-attribute and this: xsp-request:get-attribute name="current-quote"/ unfortunately, what i've found is that no state is maintained from page to page just using the above tags. in the past, using servlets and jsp,i was accustomed to getting the session (by callingrequest.getSession())whenever i was ready and storing objects in it and retrieving objects from it. but with cocoon, i get the afforementioned error each time i call request.getSession(). what am i doing wrong? what's a better way to track the session from one page to the next? there are multiple points of entry into my website and i would like to avoid redirecting users to a page where a session gets created. thanks in advance for your help. Mike Lenyon
problem saving sunshine profiles in database
Hi I'm using Cocoon 2.0.4 with Tomcat 4.0.4, Apache 1.3.26 and Java 1.3.1. After having modified the sunspotdemoportal to perform authentication with a database instead of with files, I'm trying now to solve the next problem i.e. how to store user profile and status on the database instead to create a lot of files on the system. I added to my user table in mysql 1.3.23.52 the two fields profile and status of type TEXT (till max 65536 characters each). After this I added following resource in the sitemap: map:match pattern=vipresource-saveuserprofile map:generate src=vip/resources/saveuserprofile-db.xml/ map:transform type=sunShine/ map:transform src=vip/styles/saveuserprofile-db.xsl/ map:transform type=sql/ map:transform src=vip/styles/saveuserprofile-sql.xsl/ map:serialize type=xml/ /map:match This is the file saveuserprofile-db.xml: ?xml version=1.0? !-- saveuserprofile-db.xml -- userdelta xmlns:sunshine=http://cocoon.apache.org/sunshine/1.0; namesunshine:getxml context=request path=/parameter/ID//name fragmentsunshine:getxml context=request path=/parameter/content//fragment /userdelta After the generator and the sunShine transformer I get the name and fragment elements filled with the current values and I'm trying to put them in a SQL statement with following stylesheet: ?xml version=1.0? !-- saveuserprofile-db.xsl -- xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=userdelta userdelta sql:execute-query xmlns:sql=http://apache.org/cocoon/SQL/2.0; sql:use-connectionvip_db/sql:use-connection sql:query update user_tb set profile = 'xsl:copy-of select=fragment/' where name = 'xsl:value-of select=name/' /sql:query /sql:execute-query /userdelta /xsl:template /xsl:stylesheet The file saveuserprofile-sql.xsl for postprocessing the results of the SQL query is not relevant and I have omitted it in this mail. Looking in the logfile I can see that there is an item with the sql update statement with substituted values for profile and name, where profile contains the xml tree in the desired form. The following item in the logfile shows the same statement where the profile content is no more the xml tree but only the text part of it with a lot of blank lines and without any element tags. If I look at the stored values in the database I see exactly this last content without element tags. Here a simplified test showing a similar extract from the logfile: 2003-06-04 16:51:44 DEBUG (2003-06-04) 16:51.44:156 [sitemap.] (/cocoon-min/test-saveuserprofile-db) HttpProcessor[8080][10]/AbstractSAXTransformer: END endRecording fragment=?xml version=1.0 encoding=ISO-8859-1? update user_tb set profile = 'fragment xmlns:sunshine=http://cocoon.apache.org/sunshine/1.0; mytest myelementThe value/myelement /mytest /fragment' where name = 'test' 2003-06-04 16:51:44 DEBUG (2003-06-04) 16:51.44:165 [sitemap.] (/cocoon-min/test-saveuserprofile-db) HttpProcessor[8080][10]/AbstractSAXTransformer: END endSerializedXMLRecording xml= update user_tb set profile = 'The value' where name = 'test' The other way would be to analyze which are the contents of status and profile and map them to database tables, what I think can be very complex and preferably to avoid. HERE ARE MY QUESTIONS: 1) How can I store an user profile and status on the database? 2) Is there an easier way to solve it and to avoid a large number of created files? 3) Beside this, there is the problem to escape characters like apostrophs or german umlauts. How can be done this? Thanks for your opinions and suggestions Enrico - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: recommed upgrading to Xalan 2.5 when using document() regularly
Joerg Heinicke dijo: Do you think the bug is fixed in current Xalan? If it's not we have it in Cocoon 2.0 too ;-) I am not sure about this, but people was waiting for the new Xalan that will solve this problem. BTW, there is also a discusion about change Xalan also in 2.0. I dont use 2.0 then I dont know is there is the same problem. Antonio. Joerg Antonio Gallardo wrote: Joerg Heinicke dijo: Antonio Gallardo wrote: Joerg Heinicke dijo: I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS, so they should be in the next Cocoon 2.0.x release - I guess the 5 comes after the 4 ;-) Cool! I think we can close the bug related to document() function! Hello Anotnio, to which one you refer? This? http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20381 Antonio Joerg -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't seem to load Firebird driver
Hi, I'm using cocoon 2.04 with Tomcat 4.1. I'm quite new to cocoon, so I hope this hasn't been discussed before - I've checked the mail archive and there was some discussion re. Firebird but it seems that mine is a different problem, as the driver isn't loaded in the first place. I have successfully set up and used an Oracle DB connection before, and now I'm trying to use a Firebird DB. I made the necessary additions to web.xml and cocoon.xconf, and I placed the Firebird Driver (org.firebirdsql.jdbc.FBDriver, in firebirdsql.jar) into the same Tomcat dir as the Oracle driver (tomcat/common/lib). When I now try to start cocoon, I get a Tomcat Status 500 Error page. (Servlet Exception, root cause: java.lang.NoClassDefFoundError: javax/resource/ResourceException). Putting the firebirdsql.jar into cocoon/web-inf/lib, and unpacking it into cocoon\web-inf\classes, didn't help. The access log stops after Trying to load class: org.firebirdsql.jdbc.FBDriver, while with the Firebird driver removed from the 'load-class' parameter in web.xml, cocoon starts running and the access log continues after loading the Oracle driver. Does anybody have a clue? Thanks Nik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: internal pipeline
Andreas, As quoted from Andreas Hartmann [EMAIL PROTECTED]: Hi Ali, Ali Mesbah wrote: Hi all, I have a problem and don't know if it is a bug in Cocoon or if I'm doing something wrong. What I have is a pipeline which transforms an XML (source) file into an XSLT (target) stylesheet: map:match pattern=xms/test map:generate src=xms/resources/combined.xml/ map:transform src=xms/styles/Meta_output.xsl/ map:serialize type=xml/ /map:match now I'd like to use the output as the source of another pipeline: map:match pattern=view/* map:generate src=xms/resources/{1}.xml/ map:transform src=cocoon:/xms/test/ map:serialize type=html/ /map:match I don't get any errors but the HTML output of the view pipeline is not the expected (I have checked the output of the first pipeline and that is correct. I assume it has something to do with the way I use cocoon:/... as the source of the second transformer). Any ideas? Your pipelines look OK (if I didn't miss anything). You're using the cocoon: protocol correctly. I also tried this kind of stylesheet generation (using XSP) and it worked very well. So I guess your problem is somewhere in the last transformation step. You can try to set the log level to DEBUG and look at the sitemap log to see if the correct steps are executed. No. There is a major difference between the log information when the xms/test pipeline is called directly and when it is called by the second pipeline through the Cocoon: protocol. I even added a LOG Transformer after the first pipeline; when using Cocoon: protocol, this log file remains empty: ([setup] [Thu Jun 05 11:59:01 CEST 2003] --) while when called directly it is filled by all the right steps. The next debugging step could be to save the output of your first pipeline as an XSLT file and to use this directly without the cocoon: protocol. Did that too. And indeed when I save the output of the first pipeline and use it as a normal source for the second (view) pipeline it goes as wished. So I think my assumption was correct that it has to do with the use of the Cocoon: protocol as the src of a transformer. Have you ever by the way used it in this way too (Cocoon: as the src of XSLT (not XSP) via pipelines)? HTH, Andreas -- -- Ali Mesbah, West Consulting B.V., www.west.nl, +31 15 2191600 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: internal pipeline
Ali Mesbah wrote: [...] You can try to set the log level to DEBUG and look at the sitemap log to see if the correct steps are executed. No. There is a major difference between the log information when the xms/test pipeline is called directly and when it is called by the second pipeline through the Cocoon: protocol. I even added a LOG Transformer after the first pipeline; when using Cocoon: protocol, this log file remains empty: ([setup] [Thu Jun 05 11:59:01 CEST 2003] --) while when called directly it is filled by all the right steps. This is strange ... The next debugging step could be to save the output of your first pipeline as an XSLT file and to use this directly without the cocoon: protocol. Did that too. And indeed when I save the output of the first pipeline and use it as a normal source for the second (view) pipeline it goes as wished. So I think my assumption was correct that it has to do with the use of the Cocoon: protocol as the src of a transformer. Have you ever by the way used it in this way too (Cocoon: as the src of XSLT (not XSP) via pipelines)? Yes, what I meant is that I used an XSP to generate XSLT that was used in a transformation step, e.g., somethink like: map:match pattern=my-xslt map:generate type=xsp src=xslt.xsp/ map:serialize type=xml/ /map:match map:match pattern=page map:generate src=page.xml/ map:transform src=cocoon:/my-xslt/ map:serialize/ /map:match This worked perfectly, at least with Cocoon 2.1 M1 (I used it to prototype a transformer). Sorry I can't help you, the only thing I could suggest is to try it with 2.1-M1 or later if you're using 2.0.?. Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: commandline executes matching pipeline three times
I've decided to use Cocoon as a webapp and run a batch job that calls the required URI, thus invoking Cocoon. The server needs to run anyway so this sounds like a fair solution. I'll take a look at the SourceWritingTransformer as it appears to do what I need. For now I wrote my own Transformer for the FTP transfer. Anyway thanks once again for all the help ! [EMAIL PROTECTED] 06/05/03 10:23am thanks for the replies, it saves me a lot of frustration :) In the application, a transformer will be used to transfer the incoming XML to an FTP server. The resulting XML will contain info about the transfer, such as size, failure/success, ... So it is important that the transfer happens only once... If you have any other suggestions for doing this, it would be appreciated ! Can you explain more exactly what you're trying to achieve? What transformer will you use? If you're talking about writing your own transformer, I would recommend using the SourceWritingTransformer and creating an FTPSource that you can write to. Even better, write a VFS source (giving other protocols too). The source itself could probably be configured to record success/failure, and to only transfer once. (BTW, Cocoon2.1 is not an option at this point) It's a real shame that you're not able to use 2.1, as it now can write directly to modifiable sources. Therefore, if you had an FTP source, you could generate a page and have the CLI send it straight to your FTP server. Thanks again ! You're welcome! Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Some study of implantation
Thanks Joerg, But I need something more specific with some statistics. Thanks - Original Message - From: Joerg Heinicke [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 05, 2003 10:24 AM Subject: Re: Some study of implantation What about the Cocoon website? http://cocoon.apache.org/2.1/userdocs/concepts/index.html Joerg Mmutuberria wrote: Hello friends, I have to implant Cocoon in my enterprise and I need a bit of generic information about it. I need some study of implantation with contrasted data in a web site migration to Cocoon, and the economic advantages in maintenance of the site. Could you help me with some links? Really thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Generate() method called two times.
I have created a generator and the generate is called two times. Which is amazing is that another generator is almost exactly the same and works fine. Any idea ? Lionel CRINE Société : 4DConcept 22 rue Etienne de Jouy 78353 JOUY EN JOSAS Tel : 01.34.58.70.70 Fax : 01.39.58.70.70 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't seem to load Firebird driver
Nier, Nikolai wrote: Hi, I'm using cocoon 2.04 with Tomcat 4.1. I'm quite new to cocoon, so I hope this hasn't been discussed before - I've checked the mail archive and there was some discussion re. Firebird but it seems that mine is a different problem, as the driver isn't loaded in the first place. I have successfully set up and used an Oracle DB connection before, and now I'm trying to use a Firebird DB. even if it might be off-topic. but if there is not a very good reason for using Firebird, I would not recommend it. We tried to use it in the last projects and had a lot of problems. Not with the database itself, but the development process seems to be chaotic and the documentation is extremly bad, support hardly available. I expected a lot of it, but now I am pretty dissapointed. So if there is not any other reason why to use it, take PostgreSQL or mySQL. Both are meanwhile also available as Windows versions, which might be intersting for development purposes, but the server will obviously be Linux, so I can recommend both of them. Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Sitemap parsing error?
And your sure you haven't typed any stray upsilon characters? ;) upsilon; = #965; = #x75; Assuming you haven't, my only slightly informed guess is that you've got an encoding mix up. Is it possible you've saved the sitemap in some file encoding where what appears to be whitespace is read as an upsilon when interpreted as UTF-8? HTH, Geoff At 04:03 AM 6/5/2003, you wrote: Howdy Guys I'm using Cocoon 2.04 and attempting to run this on Solaris with the Sun One App Server 7. I've installed the WAR file and it runs fine... my final problem appears to be a cocoon problem. I am able to start up the application server fine... and no errors are logged. However, when i invoke the servlet... i get the following problems: Cocoon 2 - Internal server error type fatal message Illegal character at end of document, u. description org.xml.sax.SAXParseException: Illegal character at end of document, u. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet stack-trace org.xml.sax.SAXParseException: Illegal character at end of document, u. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator.generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.generateCode(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.generateResource(ProgramGeneratorImpl.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.createResource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl.load(ProgramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) request-uri /cocoon/ path-info --- Looking at the logs in WEB-INF/logs, I find the following curious statement in the access.log: ERROR (2003-06-05) 17:06.07:594 [access] (/cocoon/) service-j2ee/CocoonServl et: Problem with Cocoon servlet org.xml.sax.SAXParseException: Illegal character at end of document, #x75;. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator. generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g enerateCode(AbstractMarkupLanguage.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. generateResource(ProgramGeneratorImpl.java:390) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. createResource(ProgramGeneratorImpl.java:353) at org.apache.cocoon.components.language.generator.ProgramGeneratorImpl. load(ProgramGeneratorImpl.java:312) at org.apache.cocoon.sitemap.Handler.run(Handler.java:267) at java.lang.Thread.run(Thread.java:536) In the sitemap.log i get: ERROR (2003-06-05) 17:06.07:591 [sitemap] (/cocoon/) service-j2ee/Handler: E rror compiling sitemap org.xml.sax.SAXParseException: Illegal character at end of document, #x75;. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:506) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371) at org.apache.cocoon.components.language.markup.LogicsheetCodeGenerator. generateCode(LogicsheetCodeGenerator.java:173) at org.apache.cocoon.components.language.markup.AbstractMarkupLanguage.g enerateCode(AbstractMarkupLanguage.java:390) at
Re: Using cookies
At 05:00 AM 6/5/2003, you wrote: there is a cookie logikcheet in xsp Thanks. I'll look into that. but i dont know if they are online information (examples) somewhere Regards, Upayavira More generally, the request object available from the ObjectModel should give set/get access on the cookies. And I am pretty sure the flow exposes this directly as well. Check out the javadoc for o.a.c.environment.request.* Geoff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problems tracking session from page to page
which you can do with the create-session=true attribute on xsp:page. see the docs. Geoff At 05:37 AM 6/5/2003, you wrote: You have to create a session object first. Regards shoaib -Original Message- From: Mike Lenyon [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 9:38 AM To: [EMAIL PROTECTED] Subject: Re: problems tracking session from page to page shoaib, thanks for your response. the context in which i'm trying to use the session object is xsp. unfortunately, merely starting my xsp with xsp:page language=java xmlns:xsp=http://apache.org/xsphttp://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0http://apache.org/xsp/request/2.0; xmlns:xsp-session=http://apache.org/xsp/session/2.0http://apache.org/xsp/session/2.0; causes the error message: java.lang.IllegalStateException: Cannot create a session after the response has been committed Mike Lenyon - Original Message - From: mailto:[EMAIL PROTECTED]shoaib To: mailto:[EMAIL PROTECTED][EMAIL PROTECTED] Sent: Monday, May 26, 2003 9:16 PM Subject: RE: problems tracking session from page to page Why dont you use XSP and then use session object of XSP just as you use in normal case of JSP page. Regards Shoaib -Original Message- From: Mike Lenyon [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 4:53 AM To: mailto:[EMAIL PROTECTED][EMAIL PROTECTED] Subject: problems tracking session from page to page hi all, i'm a cocoon newbie. i created a couple of pages that store values in the session. i've tried retrieving those values from the session with calls like request.getSession(), but i get an error each time i make such a call: Cannot create a session after the response has been committed. so i think, ok, cocoon will track the session for me from page to page. all i need to do is use tags like this: xsp-request:set-attribute name=current-quote xsp:exprcurrentQuote/xsp:expr /xsp-request:set-attribute and this: xsp-request:get-attribute name=current-quote/ unfortunately, what i've found is that no state is maintained from page to page just using the above tags. in the past, using servlets and jsp, i was accustomed to getting the session (by calling request.getSession()) whenever i was ready and storing objects in it and retrieving objects from it. but with cocoon, i get the afforementioned error each time i call request.getSession(). what am i doing wrong? what's a better way to track the session from one page to the next? there are multiple points of entry into my website and i would like to avoid redirecting users to a page where a session gets created. thanks in advance for your help. Mike Lenyon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
LDAP:Filter error
If I write eg ldap:filter((objectClass=group)(name=DG_IT-CLI_ADMIN_A_00))/ldap:fil ter I get an error because of the caracter that is not valid. How does ldap:filter work? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CVS update
See if you can figure out what cvs command WinCVS is executing. It's been a while, but I think WinCVS can be configured to show you what it's doing. Files should get cleaned up from your local drive if they have been deleted from the repository - which happens frequently in cocoon when things are moved around. HTH, Geoff At 02:53 AM 6/5/2003, you wrote: i bluild clean first every time i try to build cocoon i have notice that some time after CVS checkout some files are missing from my local DIR but because i dont have ever use CVS clients in the past i'm not sure if i do checkout the right way --- stavros On Wed, 4 Jun 2003, Geoff Howard wrote: when that happens, does build.bat clean fix it? Geoff ... hi people many time when i update my cocoon2.1 cvs snapshot i get build errors i think that maybe i do something wrong with update i use checkout option by revision/tag/head : HEAD is this correct? i use WinCVS thnx --- stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Can't seem to load Firebird driver
Nier, Nikolai wrote: Von: Alexander Schatten but if there is not a very good reason for using Firebird, I would not recommend it. Alex - thank you very much! Unfortunately I will have to access an existing Firebird database via Cocoon ... you are right, it seems that there are some severe problems with Firebird. And in the mailing list archives I found a couple of notes that do not sound encouraging either, e.g. problems with the SQL transformer. But it seems that others were able to connect Cocoon to the Firebird database and then ran into problems. What bugs me is, why can't I even load the driver class and have Cocoon run? As I said, I'm a cocoon newbie (and don't know much about tomcat, either). But I had no problem establishing and using the Oracle DB connection - so I wonder what I'm doing wrong with Firebird. I'm afraid it must be some silly beginner's mistake. did you verify, whether you can access firebird with any other JDBC application, e.g. DBVisualiser, because I could imagine, that it is a problem of the JDBC driver. Usually you had to install Interbase/Firebire , then the Interclient (Server) part of the JDBC driver, and then the client side JDBC driver, though there *should* be a JDBC 4 driver available meanwhile, but I am not sure. What was the usual problem in our setups was, that the versions of interclient and interbase/firebire had to fit together precisely. so verify first of all, whether JDBC connection works, check DBVisualizer for that purpose (as an example) (or maybe better, try to export the data from firebird and import it into PostgreSQL, eventually using ODBC) alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CVS update
when i delete entire local cocoon-2.1 folder and checkout a new copy i have no problem but im behind a ISDN connection so its take a long time to get me e fresh entire CVS copy On Thu, 5 Jun 2003, Richard In Public wrote: I've been having this problem today. Eventually I deleted my entire cocoon-2.1 folder and checked out a new copy from cvs. This built fine (using the war target). Perhaps build clean is missing something - I ran both build clean and build webapp. Regards, Richard Hoberman Geoff Howard wrote: See if you can figure out what cvs command WinCVS is executing. It's been a while, but I think WinCVS can be configured to show you what it's doing. Files should get cleaned up from your local drive if they have been deleted from the repository - which happens frequently in cocoon when things are moved around. HTH, Geoff At 02:53 AM 6/5/2003, you wrote: i bluild clean first every time i try to build cocoon i have notice that some time after CVS checkout some files are missing from my local DIR but because i dont have ever use CVS clients in the past i'm not sure if i do checkout the right way --- stavros On Wed, 4 Jun 2003, Geoff Howard wrote: when that happens, does build.bat clean fix it? Geoff ... hi people many time when i update my cocoon2.1 cvs snapshot i get build errors i think that maybe i do something wrong with update i use checkout option by revision/tag/head : HEAD is this correct? i use WinCVS thnx --- stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stavros S. Kounis Development Research Department Osmosis - networks consulting services web:http://www.osmosis.gr email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deleting files
on cocoon samples (2.1) they are some cache empty uri On Fri, 6 Jun 2003, Tuomo L wrote: Hi, How can I delete files on the server using Cocoon? Is there an action for this, or should I write one? -Tuomo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stavros S. Kounis Development Research Department Osmosis - networks consulting services web:http://www.osmosis.gr email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: recommed upgrading to Xalan 2.5 when using document() regularly
On Thu, 05 Jun 2003 19:31:01 +0200 Joerg Heinicke [EMAIL PROTECTED] wrote: Antonio Gallardo wrote: Do you think the bug is fixed in current Xalan? If it's not we have it in Cocoon 2.0 too ;-) I am not sure about this, but people was waiting for the new Xalan that will solve this problem. No, it's not fixed. I tested it. Moved the bug to the Xalan buglist. BTW, there is also a discusion about change Xalan also in 2.0. Isn't this exactly what I have done? :-) Probably I'm wrong, but with Xalan 2.5.1 XMLDBSource component does not work properly also. For example, with query like 'documents[not(@id = 1)]' I get the empty collection, but if I do not use the XSL functions, I get the collection of documents fine. And I had to roll back to the Xalan 2.3.1 :(( -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jfor encoding problem (POST encoding problem, indeed)
Bertrand, Thank you very much for your help!!! The html encoding was the problem!!! You are the man!!! I'm just so happy that it works. Charlene -Original Message- From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 3:25 AM To: [EMAIL PROTECTED] Subject: Fwd: jfor encoding problem (POST encoding problem, indeed) Hi Charlene, using the Orderpage example at http://localhost:8080/cocoon/samples/stream/order. If you add ?xml version=1.0 encoding=ISO-8859-1? at the top of the default xml and change Order Id to be Gérer, the next html page will display OrderIDGérer /OrderID as Order Id This has nothing to do with jfor - in your scenario, Cocoon's StreamGenerator is used to read your XML from an HTML form field. Your encoding problem is caused by the StreamGenerator using the wrong encoding when *reading data* from the form's POST request. To use a different encoding, you have to change the HTML code of the form, replacing meta http-equiv=Content-Type content=text/html; charset=UTF-8 with meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 for example. The encoding declaration that you used in the XML input field is probably handled correctly later on, but it's too late as the StreamGenerator has already read the data with the wrong encoding. Hope this helps, -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
commandline executes matching pipeline three times
Hi, I'm trying to run Cocoon from the command line, but it seems that the matching pipeline for the requested URI is executed three times instead of just one. Did anyone experience the same problem ? I'm running Cocoon2.0.4 using a very simple example which does work (meaning pipeline processed only once) when running Cocoon as a webapp. Following match is executed three times in stand alone mode : map:match pattern=test map:generate src=welcome/welcome.xhtml/ map:serialize/ /map:match I'm running following ant task to run the program : java classname=org.apache.cocoon.Main fork=true failonerror=true arg value=-c./src/webapps/cocoon / arg value=-C./src/webapps/cocoon/WEB-INF/cocoon.xconf / arg value=/test / classpath refid=batch.classpath / /java The log contains following output three times (with more log output inbetween): [java] REQUEST: /test [java] CONTEXT PATH: null [java] SERVLET PATH: /test [java] PATH INFO: null ... ... [java] METHOD: get [java] CONTENT LENGTH: -1 [java] PROTOCOL: cli [java] SCHEME: cli [java] AUTH TYPE: null [java] CURRENT ACTIVE REQUESTS: 1 [java] REQUEST PARAMETERS: [java] PARAM: 'accept' VALUES: '[text/html, */*]' [java] PARAM: 'user-agent' VALUES: '[Apache Cocoon 2.0.4]' [java] HEADER PARAMETERS: [java] SESSION ATTRIBUTES: Is there anything I miss here ? Any options I need to set ? Thanks, Geert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: commandline executes matching pipeline three times
Geert Van Damme wrote: Hi, I'm trying to run Cocoon from the command line, but it seems that the matching pipeline for the requested URI is executed three times instead of just one. Look at the Cocoon Wiki (http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine): snip In order to follow links and rewrite URLs, Cocoon must generate pages multiple times: * once to extract links from the page, using the links view * once to check the mime type for URL rewriting * once for getting page contents /snip Did anyone experience the same problem ? I'm running Cocoon2.0.4 using a very simple example which does work (meaning pipeline processed only once) when running Cocoon as a webapp. Following match is executed three times in stand alone mode : map:match pattern=test map:generate src=welcome/welcome.xhtml/ map:serialize/ /map:match I'm running following ant task to run the program : java classname=org.apache.cocoon.Main fork=true failonerror=true arg value=-c./src/webapps/cocoon / arg value=-C./src/webapps/cocoon/WEB-INF/cocoon.xconf / arg value=/test / classpath refid=batch.classpath / /java The log contains following output three times (with more log output inbetween): [java] REQUEST: /test [java] CONTEXT PATH: null [java] SERVLET PATH: /test [java] PATH INFO: null ... ... [java] METHOD: get [java] CONTENT LENGTH: -1 [java] PROTOCOL: cli [java] SCHEME: cli [java] AUTH TYPE: null [java] CURRENT ACTIVE REQUESTS: 1 [java] REQUEST PARAMETERS: [java] PARAM: 'accept' VALUES: '[text/html, */*]' [java] PARAM: 'user-agent' VALUES: '[Apache Cocoon 2.0.4]' [java] HEADER PARAMETERS: [java] SESSION ATTRIBUTES: Is there anything I miss here ? Any options I need to set ? Thanks, Geert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: commandline executes matching pipeline three times
On 4/06/2003 15:39 Geert Van Damme wrote: Hi, I'm trying to run Cocoon from the command line, but it seems that the matching pipeline for the requested URI is executed three times instead of just one. Did anyone experience the same problem ? bug == feature ;-) binnen Cocoon 2.1 wordt er momenteel flink getimmerd aan de CLI, als ik me goed herinner loopt men daar maar twéé keer over dezelfde pijplijn. Groetjes, /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center Read my weblog athttp://blogs.cocoondev.org/stevenn/ stevenn at outerthought.orgstevenn at apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: commandline executes matching pipeline three times
Look at the Cocoon Wiki (http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine): snip In order to follow links and rewrite URLs, Cocoon must generate pages multiple times: * once to extract links from the page, using the links view * once to check the mime type for URL rewriting * once for getting page contents /snip And check out the CLI in 2.1. Much improved, and can be configured to only generate pages once. Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: commandline executes matching pipeline three times
On 4/06/2003 15:48 Steven Noels wrote: bug == feature ;-) binnen Cocoon 2.1 wordt er momenteel flink getimmerd aan de CLI, als ik me goed herinner loopt men daar maar twéé keer over dezelfde pijplijn. bzt - wrong To: address Dutch-speaking people: stop laughing ;-) /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center Read my weblog athttp://blogs.cocoondev.org/stevenn/ stevenn at outerthought.orgstevenn at apache.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
error in XSP
where is the error in this page??? xsp:page language=java xmlns:xsp=http://apache.org/xsp; page content aaa /content /page /xsp:page I always get this error : type Rapport d''état message description :La ressource demandée () n'est pas disponible. why? everything is right! It worked for 5minutes, and now I can't see it no more! I know it's not an error in the sitemap, because all other pages work! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XSP LDAP - The tags aren't interpreted
Yes, that works. now, how can I use it? When I use it like : map:pipeline map:match pattern=testldap map:generate type=serverpages src=workflowmanager/documents/{1}.xsp/ map:transform type=ldap/ map:serialize/ /map:match /map:pipeline and in the xsp page I write this sample page (from the apache site). And then I just get text as result. The tags aren't interpreted. xsp:page language=java xmlns:ldap=http://www.apache.org/2000/LDAP; xmlns:xsp=http://apache.org/xsp; xmlns:session=http://apache.org/xsp/session/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; page ldap:execute-query ldap:server-urlldap://ldap.innosoft.com/ldap:server-url ldap:query(amp;(objectclass=pet)(cn=B*))/ldap:query ldap:search-baseou=Pets,dc=Innosoft,dc=com/ldap:search-base ldap:scopeone/ldap:scope ldap:deref-linktrue/ldap:deref-link ldap:count-limit10/ldap:count-limit ldap:attributesowner,givenname,description/ldap:attributes ldap:relative-dnfalse/ldap:relative-dn /ldap:execute-query /page /xsp:page -Original Message- From: Yury Mikhienko [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:39 PM To: [EMAIL PROTECTED] Subject: Re: XSP LDAP Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional Check the $COCOON_SRC_DIR/lib/jars.xml for following lines: file titlejndi LDAP API/title descriptionJava API for LDAP works/description used-byLDAP Transformer/used-by liboptional/jndi.jar/lib homepagehttp://java.sun.com/products/jndi/homepage /file and rebuild the cocoon. After rebuilding, in the $COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation you find the LDAPTransformer.class and LDAPTransformer$LDAPQuery.class there aren't in the cocoon.jar (org/apache/cocoon/transformation) Should I add them? Where can I find them? Check the : LDAPTransformer.class LDAPTransformer$LDAPQuery.class in the your cocoon.jar (org/apache/cocoon/transformation) I have them, into the cocoon/web-inf/lib I have these libs : jndi.jar jaas.jar ldap.jar ldapbp.jar ldapsec.jar providerutil.jar but I doesn't work. Still have the class not found error When I declare the transformer map:transformer name=ldap src=org.apache.cocoon.transformation.LDAPTransformer/ in the sitemap I get the error class not found. Do I need some special libs? You must have the jndi.jar or use the J2SDK 1.4.1 family I have tomcat 4.1.24 cocoon 2.0 Thanks -Original Message- From: Martin Holz [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 11:15 AM To: [EMAIL PROTECTED] Subject: Re: XSP LDAP [EMAIL PROTECTED] writes: Hello, I would like to get some information about how to use the LDAP transformer (first of all, in wich library the classes are), In cocoon-naming-block.jar. -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[SUMMARY] RE: error in XSP -- Tomcat4.1.24 has CATASTROPHIC cache system!!!!
I really have BIG problems with cache! I call a page login.xsp, with an error in it, then I receive the error. I correct the error and I can't, by anyway, update the page! I have to rename the file so that I can see the changes. Then I delete the file, and the page still dispays! I can't, by anyway, erase this page! How can I erase this cache! I don't want NO cache while I develop. I tried to erase the tomcat work directory, IE's cache, then with OPERA, then I restarded all my computers, but nothing works. And note that in the cocoon.xconf I have sitemap file=sitemap.xmap reload-method=synchron check-reload=yes/ Thank you very much for any help because I can't work this way! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 4:00 PM To: [EMAIL PROTECTED] Subject: error in XSP where is the error in this page??? xsp:page language=java xmlns:xsp=http://apache.org/xsp; page content aaa /content /page /xsp:page I always get this error : type Rapport d''état message description :La ressource demandée () n'est pas disponible. why? everything is right! It worked for 5minutes, and now I can't see it no more! I know it's not an error in the sitemap, because all other pages work! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP LDAP - The tags aren't interpreted
Try the following: ?xml version=1.0 encoding=KOI8-R? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:ldap=http://apache.org/cocoon/LDAP/1.0; instead of xsp:page language=java xmlns:ldap=http://www.apache.org/2000/LDAP; xmlns:xsp=http://apache.org/xsp; xmlns:session=http://apache.org/xsp/session/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; Yes, that works. now, how can I use it? When I use it like : map:pipeline map:match pattern=testldap map:generate type=serverpages src=workflowmanager/documents/{1}.xsp/ map:transform type=ldap/ map:serialize/ /map:match /map:pipeline and in the xsp page I write this sample page (from the apache site). And then I just get text as result. The tags aren't interpreted. xsp:page language=java xmlns:ldap=http://www.apache.org/2000/LDAP; xmlns:xsp=http://apache.org/xsp; xmlns:session=http://apache.org/xsp/session/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; page ldap:execute-query ldap:server-urlldap://ldap.innosoft.com/ldap:server-url ldap:query(amp;(objectclass=pet)(cn=B*))/ldap:query ldap:search-baseou=Pets,dc=Innosoft,dc=com/ldap:search-base ldap:scopeone/ldap:scope ldap:deref-linktrue/ldap:deref-link ldap:count-limit10/ldap:count-limit ldap:attributesowner,givenname,description/ldap:attributes ldap:relative-dnfalse/ldap:relative-dn /ldap:execute-query /page /xsp:page -Original Message- From: Yury Mikhienko [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:39 PM To: [EMAIL PROTECTED] Subject: Re: XSP LDAP Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional Check the $COCOON_SRC_DIR/lib/jars.xml for following lines: file titlejndi LDAP API/title descriptionJava API for LDAP works/description used-byLDAP Transformer/used-by liboptional/jndi.jar/lib homepagehttp://java.sun.com/products/jndi/homepage /file and rebuild the cocoon. After rebuilding, in the $COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation you find the LDAPTransformer.class and LDAPTransformer$LDAPQuery.class there aren't in the cocoon.jar (org/apache/cocoon/transformation) Should I add them? Where can I find them? Check the : LDAPTransformer.class LDAPTransformer$LDAPQuery.class in the your cocoon.jar (org/apache/cocoon/transformation) I have them, into the cocoon/web-inf/lib I have these libs : jndi.jar jaas.jar ldap.jar ldapbp.jar ldapsec.jar providerutil.jar but I doesn't work. Still have the class not found error When I declare the transformer map:transformer name=ldap src=org.apache.cocoon.transformation.LDAPTransformer/ in the sitemap I get the error class not found. Do I need some special libs? You must have the jndi.jar or use the J2SDK 1.4.1 family I have tomcat 4.1.24 cocoon 2.0 Thanks -Original Message- From: Martin Holz [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 11:15 AM To: [EMAIL PROTECTED] Subject: Re: XSP LDAP [EMAIL PROTECTED] writes: Hello, I would like to get some information about how to use the LDAP transformer (first of all, in wich library the classes are), In cocoon-naming-block.jar. -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [SUMMARY] RE: error in XSP -- Tomcat4.1.24 has CATASTROPHIC cache system!!!!
Le Mercredi, 4 juin 2003, à 16:17 Europe/Zurich, [EMAIL PROTECTED] a écrit : I really have BIG problems with cache! I... I don't know about your particular problem, but have you tried to use the cocoon logs to analyze what's happening? The logs usually help a lot if you take some time to learn to interpret them. The best way is to use LogFactor5 to watch the logs in real time, see http://wiki.cocoondev.org/Wiki.jsp?page=LogFactorFiveHowto -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XSP LDAP - The tags aren't interpreted
doesn't work. Is there anything to add in the cocoon.xconf maybe? -Original Message- From: Yury Mikhienko [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 4:23 PM To: [EMAIL PROTECTED] Subject: Re: XSP LDAP - The tags aren't interpreted Try the following: ?xml version=1.0 encoding=KOI8-R? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:ldap=http://apache.org/cocoon/LDAP/1.0; instead of xsp:page language=java xmlns:ldap=http://www.apache.org/2000/LDAP; xmlns:xsp=http://apache.org/xsp; xmlns:session=http://apache.org/xsp/session/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; Yes, that works. now, how can I use it? When I use it like : map:pipeline map:match pattern=testldap map:generate type=serverpages src=workflowmanager/documents/{1}.xsp/ map:transform type=ldap/ map:serialize/ /map:match /map:pipeline and in the xsp page I write this sample page (from the apache site). And then I just get text as result. The tags aren't interpreted. xsp:page language=java xmlns:ldap=http://www.apache.org/2000/LDAP; xmlns:xsp=http://apache.org/xsp; xmlns:session=http://apache.org/xsp/session/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; page ldap:execute-query ldap:server-urlldap://ldap.innosoft.com/ldap:server-url ldap:query(amp;(objectclass=pet)(cn=B*))/ldap:query ldap:search-baseou=Pets,dc=Innosoft,dc=com/ldap:search-base ldap:scopeone/ldap:scope ldap:deref-linktrue/ldap:deref-link ldap:count-limit10/ldap:count-limit ldap:attributesowner,givenname,description/ldap:attributes ldap:relative-dnfalse/ldap:relative-dn /ldap:execute-query /page /xsp:page -Original Message- From: Yury Mikhienko [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:39 PM To: [EMAIL PROTECTED] Subject: Re: XSP LDAP Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional Check the $COCOON_SRC_DIR/lib/jars.xml for following lines: file titlejndi LDAP API/title descriptionJava API for LDAP works/description used-byLDAP Transformer/used-by liboptional/jndi.jar/lib homepagehttp://java.sun.com/products/jndi/homepage /file and rebuild the cocoon. After rebuilding, in the $COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation you find the LDAPTransformer.class and LDAPTransformer$LDAPQuery.class there aren't in the cocoon.jar (org/apache/cocoon/transformation) Should I add them? Where can I find them? Check the : LDAPTransformer.class LDAPTransformer$LDAPQuery.class in the your cocoon.jar (org/apache/cocoon/transformation) I have them, into the cocoon/web-inf/lib I have these libs : jndi.jar jaas.jar ldap.jar ldapbp.jar ldapsec.jar providerutil.jar but I doesn't work. Still have the class not found error When I declare the transformer map:transformer name=ldap src=org.apache.cocoon.transformation.LDAPTransformer/ in the sitemap I get the error class not found. Do I need some special libs? You must have the jndi.jar or use the J2SDK 1.4.1 family I have tomcat 4.1.24 cocoon 2.0 Thanks -Original Message- From: Martin Holz [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 11:15 AM To: [EMAIL PROTECTED] Subject: Re: XSP LDAP [EMAIL PROTECTED] writes: Hello, I would like to get some information about how to use the LDAP transformer (first of all, in wich library the classes are), In cocoon-naming-block.jar. -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,
Re: XSP LDAP - The tags aren't interpreted
No. Can you send me the output of work? And what the version of cocoon you use? doesn't work. Is there anything to add in the cocoon.xconf maybe? Try the following: ?xml version=1.0 encoding=KOI8-R? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:ldap=http://apache.org/cocoon/LDAP/1.0; instead of xsp:page language=java xmlns:ldap=http://www.apache.org/2000/LDAP; xmlns:xsp=http://apache.org/xsp; xmlns:session=http://apache.org/xsp/session/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; Yes, that works. now, how can I use it? When I use it like : map:pipeline map:match pattern=testldap map:generate type=serverpages src=workflowmanager/documents/{1}.xsp/ map:transform type=ldap/ map:serialize/ /map:match /map:pipeline and in the xsp page I write this sample page (from the apache site). And then I just get text as result. The tags aren't interpreted. xsp:page language=java xmlns:ldap=http://www.apache.org/2000/LDAP; xmlns:xsp=http://apache.org/xsp; xmlns:session=http://apache.org/xsp/session/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; page ldap:execute-query ldap:server-urlldap://ldap.innosoft.com/ldap:server-url ldap:query(amp;(objectclass=pet)(cn=B*))/ldap:query ldap:search-baseou=Pets,dc=Innosoft,dc=com/ldap:search-base ldap:scopeone/ldap:scope ldap:deref-linktrue/ldap:deref-link ldap:count-limit10/ldap:count-limit ldap:attributesowner,givenname,description/ldap:attributes ldap:relative-dnfalse/ldap:relative-dn /ldap:execute-query /page /xsp:page -Original Message- From: Yury Mikhienko [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:39 PM To: [EMAIL PROTECTED] Subject: Re: XSP LDAP Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional Check the $COCOON_SRC_DIR/lib/jars.xml for following lines: file titlejndi LDAP API/title descriptionJava API for LDAP works/description used-byLDAP Transformer/used-by liboptional/jndi.jar/lib homepagehttp://java.sun.com/products/jndi/homepage /file and rebuild the cocoon. After rebuilding, in the $COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation you find the LDAPTransformer.class and LDAPTransformer$LDAPQuery.class there aren't in the cocoon.jar (org/apache/cocoon/transformation) Should I add them? Where can I find them? Check the : LDAPTransformer.class LDAPTransformer$LDAPQuery.class in the your cocoon.jar (org/apache/cocoon/transformation) I have them, into the cocoon/web-inf/lib I have these libs : jndi.jar jaas.jar ldap.jar ldapbp.jar ldapsec.jar providerutil.jar but I doesn't work. Still have the class not found error When I declare the transformer map:transformer name=ldap src=org.apache.cocoon.transformation.LDAPTransformer/ in the sitemap I get the error class not found. Do I need some special libs? -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: No buffer space available
ok, it works now ! I must think about a good way to join the two SQL request in only one now ! thanks a lot. Nicolas Le mercredi, 4 juin 2003, à 13:29 Europe/Paris, Geoff Howard a écrit : You can (and should) use one esql:connection for your entire page. Geoff At 04:48 AM 6/4/2003, you wrote: I don't know esql, but is it useful to open a connection for each row ? What's happening if you do not open a connection for your second request ? At 19:28 03/06/2003 +0200, you wrote: Yeah, buffer is full ! I open one connection for every rows, and another connection in each one : ?xml version=1.0? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; Root xsp:commentExtraction catalogue (c)2003 MediaXtend/xsp:comment esql:connectionesql:dburljdbc:mysql://localhost/my_db/ esql:dburlesql:usernamelog/esql:usernameesql:passwordpass/ esql:password esql:execute-query esql:querySELECT a.cle,a.refcomplete,a.titreindex,a.soustitre,a.resume,a.nsupports,s.s upp ort,a.cab,lcase(a.ref) AS image,l.label,c.publicTTC,a.motscles FROM article AS a LEFT JOIN label AS l ON l.cle=a.label LEFT JOIN codeprix AS c ON c.cle=a.codeprix LEFT JOIN support AS s ON s.cle=a.support WHERE a.catalogue=7 AND a.dispo=1 AND a.supprime=0 AND a.parution lt; '2003-05-31' AND genre=2 AND catalogue=7 ORDER BY a.titreindex, a.motscles, a.soustitre/esql:query esql:results esql:row-results disque refesql:get-string column=refcomplete//ref titreesql:get-string column=titreindex//titre soustitreesql:get-string column=soustitre//soustitre resumeesql:get-string column=resume//resume labelesql:get-string column=label//label prixesql:get-string column=publicTTC//prix supportesql:get-string column=nsupports/ esql:get-string column=support//support xsp:logic String lbl = esql:get-string column=label/; lbl = lbl.toLowerCase(); lbl = lbl.replace( ' ' ,'_' ); lbl = lbl.replace( '\'' ,'_' ); /xsp:logic xsp:element name=codebarrexsp:attribute name=hreffile:///Scrat/abeille/images/codes-barres/ xsp:exprlbl/ xsp:expr/esql:get-string column=cab/.eps/xsp\ :attribute/xsp:element xsp:element name=imagexsp:attribute name=hreffile:///Scrat/abeille/images/references/esql:get-string column=image/.tiff/xsp:attribute/xsp:element recompensesesql:connectionesql:dburljdbc:mysql://localhost/ my_db/esql:dburlesql:usernamelog/ esql:usernameesql:passwordpass/esql:passwordesql:execute- queryesql:querySELECT ra.article,r.code FROM recompensearticle AS ra LEFT JOIN recompense AS r ON r.cle = ra.recompense WHERE ra.article = esql:get-string column=cle/ LIMIT 0,8/esql:queryesql:resultsesql:row-results xsp:element name=recompensexsp:attribute name=hreffile:///Scrat/abeille/images/recompenses/couleurs/ esql:get-string column=code/.eps/xsp:attribute/xsp:element/esql:row- results/ esql:results/esql:execute-query/esql:connection /recompenses /disque /esql:row-results /esql:results /esql:execute-query /esql:connection /Root /xsp:page Le mardi, 3 juin 2003, à 16:53 Europe/Paris, Lionel Crine a écrit : It seems that the buffer is full. Do you open a connection for every rows ? At 15:28 03/06/2003 +0200, you wrote: Hi, I'm trying to extract rows from my MySQL database and convert it to an XML file, using Tomcat/Cocoon. I'm running : FreeBSD 5.0R Sun JRE 1.3.1 (patchset 8) Tomcat 4.1.18 Cocoon 2.0.4 MySQL 3.23.54 MySQL J/Connector 3.0.6 When I start loading my page (a simple XSP/ESQL), I get the normal XML datas but after a moment download stops and a HTML page is added at end of file. All of my other pages work but this one that extract a lot of rows (more than 4,000) doesn't work. In the html part, I got an error page with this message : [...] org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Error opening connection to dburl: jdbc:mysql://localhost/my_db: Unable to connect to any hosts due to exception: java.net.SocketException: No buffer space available [...] Any ideas ? Thanks Nicolas SANDRI --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
RE: XSP LDAP - The tags aren't interpreted
I use cocoon 2.0 the output on the explorer is : ldap://ldap.innosoft.com((objectclass=pet)(cn=B*))ou=Pets,dc=Innosoft,d c=comonetrue10owner,givenname,descriptionfalse The JAVA output is attached -Original Message- From: Yury Mikhienko [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 4:36 PM To: [EMAIL PROTECTED] Subject: Re: XSP LDAP - The tags aren't interpreted No. Can you send me the output of work? And what the version of cocoon you use? doesn't work. Is there anything to add in the cocoon.xconf maybe? Try the following: ?xml version=1.0 encoding=KOI8-R? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:ldap=http://apache.org/cocoon/LDAP/1.0; instead of xsp:page language=java xmlns:ldap=http://www.apache.org/2000/LDAP; xmlns:xsp=http://apache.org/xsp; xmlns:session=http://apache.org/xsp/session/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; Yes, that works. now, how can I use it? When I use it like : map:pipeline map:match pattern=testldap map:generate type=serverpages src=workflowmanager/documents/{1}.xsp/ map:transform type=ldap/ map:serialize/ /map:match /map:pipeline and in the xsp page I write this sample page (from the apache site). And then I just get text as result. The tags aren't interpreted. xsp:page language=java xmlns:ldap=http://www.apache.org/2000/LDAP; xmlns:xsp=http://apache.org/xsp; xmlns:session=http://apache.org/xsp/session/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; page ldap:execute-query ldap:server-urlldap://ldap.innosoft.com/ldap:server-url ldap:query(amp;(objectclass=pet)(cn=B*))/ldap:query ldap:search-baseou=Pets,dc=Innosoft,dc=com/ldap:search-base ldap:scopeone/ldap:scope ldap:deref-linktrue/ldap:deref-link ldap:count-limit10/ldap:count-limit ldap:attributesowner,givenname,description/ldap:attributes ldap:relative-dnfalse/ldap:relative-dn /ldap:execute-query /page /xsp:page -Original Message- From: Yury Mikhienko [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:39 PM To: [EMAIL PROTECTED] Subject: Re: XSP LDAP Put the jndi.jar into the $COCOON_SRC_DIR/lib/optional Check the $COCOON_SRC_DIR/lib/jars.xml for following lines: file titlejndi LDAP API/title descriptionJava API for LDAP works/description used-byLDAP Transformer/used-by liboptional/jndi.jar/lib homepagehttp://java.sun.com/products/jndi/homepage /file and rebuild the cocoon. After rebuilding, in the $COCOON_SRC_DIR/build/cocoon/classes/org/apache/cocoon/transformation you find the LDAPTransformer.class and LDAPTransformer$LDAPQuery.class there aren't in the cocoon.jar (org/apache/cocoon/transformation) Should I add them? Where can I find them? Check the : LDAPTransformer.class LDAPTransformer$LDAPQuery.class in the your cocoon.jar (org/apache/cocoon/transformation) I have them, into the cocoon/web-inf/lib I have these libs : jndi.jar jaas.jar ldap.jar ldapbp.jar ldapsec.jar providerutil.jar but I doesn't work. Still have the class not found error When I declare the transformer map:transformer name=ldap src=org.apache.cocoon.transformation.LDAPTransformer/ in the sitemap I get the error class not found. Do I need some special libs? -- Best regards, Yury Mikhienko. IT engineer, ZAO Mobicom-Kavkaz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] login7_xsp.zip Description: login7_xsp.zip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error in XSP
I don't know any French, but with my English, Latin and German knowledge I guess it means something like requested resource is not available, doesn't it? Hmm, I would suggest to look into the log files for a more exhaustive error message. Joerg [EMAIL PROTECTED] wrote: where is the error in this page??? xsp:page language=java xmlns:xsp=http://apache.org/xsp; page content aaa /content /page /xsp:page I always get this error : type Rapport d''état message description :La ressource demandée () n'est pas disponible. why? everything is right! It worked for 5minutes, and now I can't see it no more! I know it's not an error in the sitemap, because all other pages work! -- System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 [EMAIL PROTECTED] www.virbus.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP LDAP
[EMAIL PROTECTED] writes: When I declare the transformer map:transformer name=ldap src=org.apache.cocoon.transformation.LDAPTransformer/ in the sitemap I get the error class not found. Do I need some special libs? I have tomcat 4.1.24 cocoon 2.0 ... Martin Holz wrote: In cocoon-naming-block.jar. Forget cocoon-naming-block.jar in cocoon 2.0. Blocks exist only in the 2.1 branch. If I remember correctly, the LDAPTransformer was not included in the binary distribution and only compiled by ant, when the javax.naming classes where in the classpath at compile time. -- Martin Holz [EMAIL PROTECTED] Softwareentwicklung / Vernetztes Studium - Chemie FIZ CHEMIE Berlin Franklinstrasse 11 D-10587 Berlin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unable to get transformer handler for stylesheets/blah.xsl
I'm posting the test-case now. I've discovered (in only the simple case that you'll see), that the simple case of the stylesheet from the sitemap including one other that doesn't have its own includes is fine. When the included stylesheet includes yet one or more stylesheets of its own, that's when this error shows up. /S Joerg Heinicke [EMAIL PROTECTED] wrote: Sorry, I didn't scroll below the start of the exception trace :) If you don't have a real error in your stylesheets, it will work with Xalan. xsl:include is probably the reason, it had problems with resolving relative paths. But we thought the problem is already solved with the dev version of Xalan/XSLTC used with Cocoon 2.1m2.dev. Can you provide a minimum test case reproducing the error and add it here: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20308? Regards, Joerg Steven Cummings wrote: Joerg, Yes, in the original message I had attached the stylesheet, which xsl:include'd another, which xsl:include'd a third stylesheet (I attached all three of them). They are viewable here: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=105467465417098w=2 if your mail client didn't show them. Anyway, I'll give the xalan transformer a shot and see what happens, thanks for the tip! /S Joerg Heinicke [EMAIL PROTECTED] wrote: Hello Steven, it's XSLTC who does give so exhaustive messages. Try to use Xalan for this particular transformation, maybe you get a real error message. Are you refering external resources from the stylesheet (xsl:import, xsl:include, document())? Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Steven Cummings Columbia, MO Email: [EMAIL PROTECTED] AIM: cummingscs ICQ: 3330114 MSN: [EMAIL PROTECTED] __ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your free trial today! http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 Get AOL Instant Messenger 5.1 free of charge. Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to debug COCOON with ECLIPSE and TOMCAT?
Perfect! It works! Thank you! Galia ANgelova Lionel Crine [EMAIL PROTECTED] wrote: With the tomcat plugin : 2.1I think you have setup the windows-preference-tomcat.I repeat it :1/choose the version you have. 4.1.x is good.2/choose the tomcat root directory3/choose the server.xml file4/i had my tomcat project to my classpath (i'm not sure it's necessary).5/ If you want to debug Tomcat (check the "execute in debug mode)the parameter for the JVM :The JRE by default is not working (or something like that)!!!So you have to change it the another.6/ Go in window-preferences-java-installed JREs7/add a new standard VM (the one with your sdk). (for example mine is : d:\software\java\sdk1.4)8/notch it.9/Come back to windows-preference-tomcat-JVM parameter10/select the new JVMSome optionnal things :In window-preferences-java-Classpath Variablescreate a TOMCAT_HOME identical as CATALINA_HOME - it seems that the plugin uses TOMCAT_HOMEIn the properties of the project :11/java Build Path-source : be sure WEB-INF/classes of your project is here12/java Build Path-librairies : add the cocoon libraries (.jar) and yours.Do pay attention of the message : Build Path entry is missing : TOMCAT_HOME13/Tomcat : I notched "is a tomcat project" (check if this is your context) "update automatically server.xml" and "reloadable = true".Hope that help a little.I may have forgotten some things so tell me.PS: With my computer the classpath is not build with eclipse So I had to add all the jars into the libraries (see 12/)LionelAt 04:11 04/06/2003 -0700, you wrote:Yes, please! I'll be grateful!GaliaLionel Crine <[EMAIL PROTECTED]>wrote:Sorry I'm lost :Whould you like me to send the configuration for eclipse to work withcocoon and tomcat and sdk 1.4 ?If yes, tell me.At 10:43 04/06/2003 +0400, you wrote: But who can send the solution about the using the eclipse in this configuration?I use tomcat cocoon and the sdk 1.4 All is working fine. Do you have an error message ? At 07:27 03/06/2003 -0700, you wrote: Hi, I would like to debug cocoon with eclipse and tomcat. I have the blueskytime plugins for eclipse and tomcat but could not make them debug cocoon. May be there's something i'm not doing right? Galia-- Best regards, Yury Mikhienko. IT engineer, ZAO "Mobicom-Kavkaz" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]Do you Yahoo!?Free online calendar with sync to Outlook(TM).-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED] Do you Yahoo!? Free online calendar with sync to Outlook(TM).
Re: XSP LDAP - The tags aren't interpreted
I use cocoon 2.0 the output on the explorer is : ldap://ldap.innosoft.com((objectclass=pet)(cn=B*))ou=Pets,dc=Innosoft,d c=comonetrue10owner,givenname,descriptionfalse In all versions of cocoon (2.0,2.0.3,4 ) in LDAPTransformer the following DTD is used. snip * The following DTD is valid:br * lt;!ELEMENT execute-query (attribute+ | show-attribute? | scope? | initializer? | authentication? | error-element? | sax-error? doc-element? | row-element? | version? | serverurl? | rootdn? | password? | deref-link? | count-limit? | searchbase, filter)gt;br * lt;!ELEMENT execute-increment (attribute | show-attribute? | scope? | initializer? | authentication? | error-element? | sax-error? | doc-element? | row-element? | version? | serverurl? | rootdn? | password? | deref-link? | count-limit? | searchbase, filter)gt;br * increments (+1) an integer attribute on a directory-server (ldap)br * br * lt;!ELEMENT initializer (#PCDATA)gt;+ (default: com.sun.jndi.ldap.LdapCtxFactory)br * lt;!ELEMENT authentication (#PCDATA)gt;+ (default: simple)br * lt;!ELEMENT version (#PCDATA)gt;+ (default: 2)br * lt;!ELEMENT serverurl (#PCDATA)gt;+br * lt;!ELEMENT port (#PCDATA)gt;+ (default: 389)br * lt;!ELEMENT rootdn (#PCDATA)gt;+br * lt;!ELEMENT password (#PCDATA)gt;+br * lt;!ELEMENT scope (ONELEVEL_SCOPE | SUBTREE_SCOPE | OBJECT_SCOPE)gt;+ (default: ONELEVEL_SCOPE)br * lt;!ELEMENT searchbase (#PCDATA)gt;+br * lt;!ELEMENT doc-element (#PCDATA)gt;+ (default: doc-element)br * lt;!ELEMENT row-element (#PCDATA)gt;+ (default: row-element)br * lt;!ELEMENT error-element (#PCDATA)gt;+ (default: ldap-error) (in case of error returned error tag)br * lt;!ELEMENT sax_error (TRUE | FALSE)gt+; (default: FALSE) (throws SAX-Exception instead of error tag)br * lt;!ELEMENT attribute (#PCDATA)gt;br * lt;!ELEMENT show-attribute (TRUE | FALSE)gt; (default: TRUE)br * lt;!ELEMENT filter (#PCDATA | execute-query)gt;br * lt;!ELEMENT deref-link (TRUE | FALSE)gt; (default: FALSE)br * lt;!ELEMENT count-limit (#PCDATA)gt; (integer default: 0 -gt; no limit)br * lt;!ELEMENT time-limit (#PCDATA)gt; (integer default: 0 -gt; infinite)br * lt;!ELEMENT debug (TRUE | FALSE)gt+; (default: FALSE)br * br * + can also be defined as parameter in the sitemap. * br * br * * @author Felix Knecht * @version CVS $Id: LDAPTransformer.java,v 1.6 2002/02/22 07:03:56 cziegeler Exp $ */ /snip and the following namespace: http://apache.org/cocoon/LDAP/1.0 But what are you using? simple real example: ldap:execute-query ldap:initializercom.sun.jndi.ldap.LdapCtxFactory/ldap:initializer ldap:serverurlldap://ldap.my.host/ldap:serverurl ldap:port389/ldap:port ldap:scopeOBJECTS_SCOPE/ldap:scope ldap:rootdncn=DN/ldap:rootdn ldap:passwordpassword/ldap:password ldap:searchbaseou=people,o=company/ldap:searchbase ldap:attributeurls/ldap:attribute ldap:attributetitle/ldap:attribute ldap:attributemobile/ldap:attribute ldap:attributecn/ldap:attribute ldap:attributesn/ldap:attribute ldap:attributezone/ldap:attribute ldap:attributesleep/ldap:attribute ldap:attributetrace/ldap:attribute ldap:attributeadmin/ldap:attribute ldap:show-attributetrue/ldap:show-attribute ldap:filter(amp;(uid=testuser))/ldap:filter /ldap:execute-query No. Can you send me the output of work? And what the version of cocoon you use? doesn't work. Is there anything to add in the cocoon.xconf maybe? Try the following: ?xml version=1.0 encoding=KOI8-R? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:ldap=http://apache.org/cocoon/LDAP/1.0; instead of xsp:page language=java xmlns:ldap=http://www.apache.org/2000/LDAP; xmlns:xsp=http://apache.org/xsp; xmlns:session=http://apache.org/xsp/session/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; Yes, that works. now, how can I use it? When I use it like : map:pipeline map:match pattern=testldap map:generate type=serverpages src=workflowmanager/documents/{1}.xsp/ map:transform type=ldap/ map:serialize/ /map:match /map:pipeline and in the xsp page I write this sample page (from the apache site). And then I just get text as result. The tags aren't interpreted. xsp:page language=java xmlns:ldap=http://www.apache.org/2000/LDAP; xmlns:xsp=http://apache.org/xsp; xmlns:session=http://apache.org/xsp/session/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; page ldap:execute-query ldap:server-urlldap://ldap.innosoft.com/ldap:server-url ldap:query(amp;(objectclass=pet)(cn=B*))/ldap:query ldap:search-baseou=Pets,dc=Innosoft,dc=com/ldap:search-base ldap:scopeone/ldap:scope
RE: XSP LDAP - The tags aren't interpreted
And where must I write this DTD, and what is his name and extension? I have never used any DTD And then, in the sitemap must I write : ... map:transform type=ldap/ ... -Original Message- From: Yury Mikhienko [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 5:03 PM To: [EMAIL PROTECTED] Subject: Re: XSP LDAP - The tags aren't interpreted I use cocoon 2.0 the output on the explorer is : ldap://ldap.innosoft.com((objectclass=pet)(cn=B*))ou=Pets,dc=Innosoft,d c=comonetrue10owner,givenname,descriptionfalse In all versions of cocoon (2.0,2.0.3,4 ) in LDAPTransformer the following DTD is used. snip * The following DTD is valid:br * lt;!ELEMENT execute-query (attribute+ | show-attribute? | scope? | initializer? | authentication? | error-element? | sax-error? doc-element? | row-element? | version? | serverurl? | rootdn? | password? | deref-link? | count-limit? | searchbase, filter)gt;br * lt;!ELEMENT execute-increment (attribute | show-attribute? | scope? | initializer? | authentication? | error-element? | sax-error? | doc-element? | row-element? | version? | serverurl? | rootdn? | password? | deref-link? | count-limit? | searchbase, filter)gt;br * increments (+1) an integer attribute on a directory-server (ldap)br * br * lt;!ELEMENT initializer (#PCDATA)gt;+ (default: com.sun.jndi.ldap.LdapCtxFactory)br * lt;!ELEMENT authentication (#PCDATA)gt;+ (default: simple)br * lt;!ELEMENT version (#PCDATA)gt;+ (default: 2)br * lt;!ELEMENT serverurl (#PCDATA)gt;+br * lt;!ELEMENT port (#PCDATA)gt;+ (default: 389)br * lt;!ELEMENT rootdn (#PCDATA)gt;+br * lt;!ELEMENT password (#PCDATA)gt;+br * lt;!ELEMENT scope (ONELEVEL_SCOPE | SUBTREE_SCOPE | OBJECT_SCOPE)gt;+ (default: ONELEVEL_SCOPE)br * lt;!ELEMENT searchbase (#PCDATA)gt;+br * lt;!ELEMENT doc-element (#PCDATA)gt;+ (default: doc-element)br * lt;!ELEMENT row-element (#PCDATA)gt;+ (default: row-element)br * lt;!ELEMENT error-element (#PCDATA)gt;+ (default: ldap-error) (in case of error returned error tag)br * lt;!ELEMENT sax_error (TRUE | FALSE)gt+; (default: FALSE) (throws SAX-Exception instead of error tag)br * lt;!ELEMENT attribute (#PCDATA)gt;br * lt;!ELEMENT show-attribute (TRUE | FALSE)gt; (default: TRUE)br * lt;!ELEMENT filter (#PCDATA | execute-query)gt;br * lt;!ELEMENT deref-link (TRUE | FALSE)gt; (default: FALSE)br * lt;!ELEMENT count-limit (#PCDATA)gt; (integer default: 0 -gt; no limit)br * lt;!ELEMENT time-limit (#PCDATA)gt; (integer default: 0 -gt; infinite)br * lt;!ELEMENT debug (TRUE | FALSE)gt+; (default: FALSE)br * br * + can also be defined as parameter in the sitemap. * br * br * * @author Felix Knecht * @version CVS $Id: LDAPTransformer.java,v 1.6 2002/02/22 07:03:56 cziegeler Exp $ */ /snip and the following namespace: http://apache.org/cocoon/LDAP/1.0 But what are you using? simple real example: ldap:execute-query ldap:initializercom.sun.jndi.ldap.LdapCtxFactory/ldap:initializer ldap:serverurlldap://ldap.my.host/ldap:serverurl ldap:port389/ldap:port ldap:scopeOBJECTS_SCOPE/ldap:scope ldap:rootdncn=DN/ldap:rootdn ldap:passwordpassword/ldap:password ldap:searchbaseou=people,o=company/ldap:searchbase ldap:attributeurls/ldap:attribute ldap:attributetitle/ldap:attribute ldap:attributemobile/ldap:attribute ldap:attributecn/ldap:attribute ldap:attributesn/ldap:attribute ldap:attributezone/ldap:attribute ldap:attributesleep/ldap:attribute ldap:attributetrace/ldap:attribute ldap:attributeadmin/ldap:attribute ldap:show-attributetrue/ldap:show-attribute ldap:filter(amp;(uid=testuser))/ldap:filter /ldap:execute-query No. Can you send me the output of work? And what the version of cocoon you use? doesn't work. Is there anything to add in the cocoon.xconf maybe? Try the following: ?xml version=1.0 encoding=KOI8-R? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:ldap=http://apache.org/cocoon/LDAP/1.0; instead of xsp:page language=java xmlns:ldap=http://www.apache.org/2000/LDAP; xmlns:xsp=http://apache.org/xsp; xmlns:session=http://apache.org/xsp/session/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; Yes, that works. now, how can I use it? When I use it like : map:pipeline map:match pattern=testldap map:generate type=serverpages src=workflowmanager/documents/{1}.xsp/ map:transform type=ldap/ map:serialize/ /map:match /map:pipeline and in the xsp page I write this sample page (from the apache site). And then I just get text as result. The tags aren't interpreted. xsp:page language=java xmlns:ldap=http://www.apache.org/2000/LDAP; xmlns:xsp=http://apache.org/xsp; xmlns:session=http://apache.org/xsp/session/2.0;
RE: XSP LDAP - The tags aren't interpreted
Here is my problem more clearly : We are two developpers, we both develop an application with cocoon. I use XSP and the other use XML-Forms. He builded a portal. I created an application that has to be integrated into this portal. To help him in his work, I have to change his authentification source (actually he use an XML file to authentificate) to our Active Directory server. So I have to add it into the portal and into my XSP pages (because I need to get the user name/role/group). I don't know anything about how XML forms work, but I know XSP. Now, is there an easy way, to change the authentification source from an XML file to Active Directory, and is there an easy way to get the username in a XSP page. At this time I have the LDAPTransformer well configured in my sitemap, but nothing more. Thank you for you help! -Original Message- From: Yury Mikhienko [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 5:03 PM To: [EMAIL PROTECTED] Subject: Re: XSP LDAP - The tags aren't interpreted I use cocoon 2.0 the output on the explorer is : ldap://ldap.innosoft.com((objectclass=pet)(cn=B*))ou=Pets,dc=Innosoft,d c=comonetrue10owner,givenname,descriptionfalse In all versions of cocoon (2.0,2.0.3,4 ) in LDAPTransformer the following DTD is used. snip * The following DTD is valid:br * lt;!ELEMENT execute-query (attribute+ | show-attribute? | scope? | initializer? | authentication? | error-element? | sax-error? doc-element? | row-element? | version? | serverurl? | rootdn? | password? | deref-link? | count-limit? | searchbase, filter)gt;br * lt;!ELEMENT execute-increment (attribute | show-attribute? | scope? | initializer? | authentication? | error-element? | sax-error? | doc-element? | row-element? | version? | serverurl? | rootdn? | password? | deref-link? | count-limit? | searchbase, filter)gt;br * increments (+1) an integer attribute on a directory-server (ldap)br * br * lt;!ELEMENT initializer (#PCDATA)gt;+ (default: com.sun.jndi.ldap.LdapCtxFactory)br * lt;!ELEMENT authentication (#PCDATA)gt;+ (default: simple)br * lt;!ELEMENT version (#PCDATA)gt;+ (default: 2)br * lt;!ELEMENT serverurl (#PCDATA)gt;+br * lt;!ELEMENT port (#PCDATA)gt;+ (default: 389)br * lt;!ELEMENT rootdn (#PCDATA)gt;+br * lt;!ELEMENT password (#PCDATA)gt;+br * lt;!ELEMENT scope (ONELEVEL_SCOPE | SUBTREE_SCOPE | OBJECT_SCOPE)gt;+ (default: ONELEVEL_SCOPE)br * lt;!ELEMENT searchbase (#PCDATA)gt;+br * lt;!ELEMENT doc-element (#PCDATA)gt;+ (default: doc-element)br * lt;!ELEMENT row-element (#PCDATA)gt;+ (default: row-element)br * lt;!ELEMENT error-element (#PCDATA)gt;+ (default: ldap-error) (in case of error returned error tag)br * lt;!ELEMENT sax_error (TRUE | FALSE)gt+; (default: FALSE) (throws SAX-Exception instead of error tag)br * lt;!ELEMENT attribute (#PCDATA)gt;br * lt;!ELEMENT show-attribute (TRUE | FALSE)gt; (default: TRUE)br * lt;!ELEMENT filter (#PCDATA | execute-query)gt;br * lt;!ELEMENT deref-link (TRUE | FALSE)gt; (default: FALSE)br * lt;!ELEMENT count-limit (#PCDATA)gt; (integer default: 0 -gt; no limit)br * lt;!ELEMENT time-limit (#PCDATA)gt; (integer default: 0 -gt; infinite)br * lt;!ELEMENT debug (TRUE | FALSE)gt+; (default: FALSE)br * br * + can also be defined as parameter in the sitemap. * br * br * * @author Felix Knecht * @version CVS $Id: LDAPTransformer.java,v 1.6 2002/02/22 07:03:56 cziegeler Exp $ */ /snip and the following namespace: http://apache.org/cocoon/LDAP/1.0 But what are you using? simple real example: ldap:execute-query ldap:initializercom.sun.jndi.ldap.LdapCtxFactory/ldap:initializer ldap:serverurlldap://ldap.my.host/ldap:serverurl ldap:port389/ldap:port ldap:scopeOBJECTS_SCOPE/ldap:scope ldap:rootdncn=DN/ldap:rootdn ldap:passwordpassword/ldap:password ldap:searchbaseou=people,o=company/ldap:searchbase ldap:attributeurls/ldap:attribute ldap:attributetitle/ldap:attribute ldap:attributemobile/ldap:attribute ldap:attributecn/ldap:attribute ldap:attributesn/ldap:attribute ldap:attributezone/ldap:attribute ldap:attributesleep/ldap:attribute ldap:attributetrace/ldap:attribute ldap:attributeadmin/ldap:attribute ldap:show-attributetrue/ldap:show-attribute ldap:filter(amp;(uid=testuser))/ldap:filter /ldap:execute-query No. Can you send me the output of work? And what the version of cocoon you use? doesn't work. Is there anything to add in the cocoon.xconf maybe? Try the following: ?xml version=1.0 encoding=KOI8-R? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:ldap=http://apache.org/cocoon/LDAP/1.0; instead of xsp:page language=java xmlns:ldap=http://www.apache.org/2000/LDAP; xmlns:xsp=http://apache.org/xsp; xmlns:session=http://apache.org/xsp/session/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0;
esql exception
Hello! For this xsp: xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:util=http://apache.org/xsp/util/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; rootutil:time format=EE/ esql:connection esql:pooltivoli/esql:pool esql:execute-queryselect id from articles/esql:execute- query esql:resultsresults//esql:results esql:no-resultno-results//esql:no-result esql:error-results errormessageesql:get-message//message/error /esql:error-results /esql:connection /root /xsp:page I get follows exception org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling test_xsp: Line 364, column 58: method valueOf() not found in class java.lang.String What's wrong? -- Best regards, Vasil mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Translet transformer
Title: Translet transformer Hi, Does anyone know of a transformer component that takes translets as input? There was some discussion on this topic recently - did anything come of it? I am working with a program that outputs translets, and we would like to be able to plug these directly into a Cocoon pipeline. Thanks, Alison Meynert -- [EMAIL PROTECTED] Developer Schema Software, Inc. http://www.schemasoft.com
TeX to PDF serializator
Whether exists subj? -- Best regards, Vasil mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
redirect at the end of a pipeline/match
I'm looking for a clean way to 'redirect' a user back to a page, at the end of a pipeline. map:match pattern='comment' map:generate src=xml/insert_comment.xml/ map:transform type=sql map:parameter name=use-connection value=myconnection/ map:transform map:serialize type=xml/ REDIRECT or something here/ /map:match map:redirect doesn't work because it skips the generate and transform. Browsing through the mail archive someone suggest's using a meta redirect tag in generated html. (http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=105464887116737w=2) This would work but it seems clunky.. There must be a cleaner way to accomplish this.? -Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: esql exception
Vasil I. Yaroshevich wrote: Hello! For this xsp: xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:util=http://apache.org/xsp/util/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; rootutil:time format=EE/ esql:connection esql:pooltivoli/esql:pool esql:execute-query esql:queryselect id from articles/esql:query esql:resultsresults//esql:results esql:no-resultno-results//esql:no-result esql:error-results errormessageesql:get-message//message/error /esql:error-results /esql:execute-query /esql:connection /root /xsp:page I get follows exception org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling test_xsp: Line 364, column 58: method valueOf() not found in class java.lang.String What's wrong? See above. Christian -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: redirect at the end of a pipeline/match
What would the purpose be of sending xml back as a result and then redirecting the client? This need keeps coming up when using the transformers with side effects, of which the sql transformer is one. Again, why do you need to redirect? Why not serve them the content you want them to have right away? Geoff At 01:46 PM 6/4/2003, you wrote: I'm looking for a clean way to 'redirect' a user back to a page, at the end of a pipeline. map:match pattern='comment' map:generate src=xml/insert_comment.xml/ map:transform type=sql map:parameter name=use-connection value=myconnection/ map:transform map:serialize type=xml/ REDIRECT or something here/ /map:match map:redirect doesn't work because it skips the generate and transform. Browsing through the mail archive someone suggest's using a meta redirect tag in generated html. (http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=105464887116737w=2) This would work but it seems clunky.. There must be a cleaner way to accomplish this.? -Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: redirect at the end of a pipeline/match
Looks like flowmap would be the cleanest way of handling this, but it's still in development and not that well documented. --- Daniel McOrmond [EMAIL PROTECTED] wrote: I'm looking for a clean way to 'redirect' a user back to a page, at the end of a pipeline. map:match pattern='comment' map:generate src=xml/insert_comment.xml/ map:transform type=sql map:parameter name=use-connection value=myconnection/ map:transform map:serialize type=xml/ REDIRECT or something here/ /map:match map:redirect doesn't work because it skips the generate and transform. Browsing through the mail archive someone suggest's using a meta redirect tag in generated html. (http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=105464887116737w=2) This would work but it seems clunky.. There must be a cleaner way to accomplish this.? -Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: esql exception
I get follows exception org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling test_xsp: Line 364, column 58: method valueOf() not found in class java.lang.String What's wrong? CH See above. Many thanks. All right now. -- Best regards, Vasilmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: redirect at the end of a pipeline/match
Drop the xml serialization. I don't want to send that back as a result. What I do want to do is display a page that now includes the new information which came from this database insert. Does this make sense? map:match pattern='comment' map:generate src=xml/insert_comment.xml/ map:transform type=sql map:parameter name=use-connection value=myconnection/ map:transform REDIRECT or something here/ /map:match -Daniel Geoff Howard wrote: What would the purpose be of sending xml back as a result and then redirecting the client? This need keeps coming up when using the transformers with side effects, of which the sql transformer is one. Again, why do you need to redirect? Why not serve them the content you want them to have right away? Geoff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: redirect at the end of a pipeline/match
I'm looking to do the same thing - I'm using Cocoon purely for it's XML generation/transformation capabilities, while my actual application is using JBoss/Jetty Struts. Basically I have an admin app that allows you to marshall a business object via Castor, perform various transformations on it and then serialize the result to an XML file. This XML file will then get pushed out to production for use on the front end customer facing app. However, I'd love to be able to redirect back to the admin home page after the xml serializaton. I'm not actually using Cocoon for any content presentation. I've only been using Cocoon (2.0.4) for a couple of months, so if there's a better way of doing this, I'm all ears. While the redirect after the serialization isn't critical, it'd certainly be nice. cheers, neil. -Original Message- From: Geoff Howard [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:05 PM To: [EMAIL PROTECTED] Subject: Re: redirect at the end of a pipeline/match What would the purpose be of sending xml back as a result and then redirecting the client? This need keeps coming up when using the transformers with side effects, of which the sql transformer is one. Again, why do you need to redirect? Why not serve them the content you want them to have right away? Geoff At 01:46 PM 6/4/2003, you wrote: I'm looking for a clean way to 'redirect' a user back to a page, at the end of a pipeline. map:match pattern='comment' map:generate src=xml/insert_comment.xml/ map:transform type=sql map:parameter name=use-connection value=myconnection/ map:transform map:serialize type=xml/ REDIRECT or something here/ /map:match map:redirect doesn't work because it skips the generate and transform. Browsing through the mail archive someone suggest's using a meta redirect tag in generated html. (http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=105464887116737w=2 ) This would work but it seems clunky.. There must be a cleaner way to accomplish this.? -Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: redirect at the end of a pipeline/match
Maybe I am off base here.. But wouldn't his solution be to take his xsp or whatever that does the database insert and make it into an action? map:match pattern='comment' map:act type=insert_comment/ map:generate src=result.xml/ map:transform src=result.xsl map:parameter name=some_identifier value=who_knows/ /map:transform map:serialze/ /map:act map:generate src=failed.xml/ map:serialze/ /map:match If you dont want to view the serialization.. why serialize it? - Original Message - From: Daniel McOrmond [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 10:11 AM Subject: Re: redirect at the end of a pipeline/match Drop the xml serialization. I don't want to send that back as a result. What I do want to do is display a page that now includes the new information which came from this database insert. Does this make sense? map:match pattern='comment' map:generate src=xml/insert_comment.xml/ map:transform type=sql map:parameter name=use-connection value=myconnection/ map:transform REDIRECT or something here/ /map:match -Daniel Geoff Howard wrote: What would the purpose be of sending xml back as a result and then redirecting the client? This need keeps coming up when using the transformers with side effects, of which the sql transformer is one. Again, why do you need to redirect? Why not serve them the content you want them to have right away? Geoff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WG: WG: Problems with umlaut in cocoon2.04
Nice to hear, that it works. But ... Przybilla, Frank wrote: Hello Joerg, that's it! When I remove the encoding specification, so that it defaults to UTF-8, then it works. Maybe in former versions of coocoon the jsp generator was aware of the specified encoding, but now it is confused. ... I don't think that this correct. Maybe in the old version the result of the JSP was ISO-8859-1 encoded by default and this has now changed to UTF-8. But you can't tell the parser that the content encoding is ISO-8859-1, if that's not true. With writing the xml declaration by hand, you don't influence the content encoding, but you possibly give the parser a wrong hint on the encoding. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[HELP]Exception in ServerPagesGenerator.generate() - Oracle+Cocoon
Hi, Can you help me? I don't know what's wrong here. I'm using: Coccon 2.0.4. Tomcat 4.0.1 Win2K Oracle 9.2.0.1 JDK 1.3.1_08 I want to connect to an Oracle Database from Cocoon 2.0.4, using oracle drivers for JDBC. I followed the tutorial at http://wiki.cocoondev.org/Wiki.jsp?page=Oracle , but al the end I obtained the following error: Description:org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid JdbcConnection class available An error occurred The org.apache.cocoon.www.sitemap_xmap notifies that org.apache.cocoon.ProcessingException says: Exception in ServerPagesGenerator.generate() More precisely: org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid JdbcConnection class available extra info full exception chain stacktrace show Original exception : java.lang.RuntimeException: Could not get the datasource org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid JdbcConnection class available at org.apache.cocoon.www.pruebas.sql_page_xml.generate(D:\jakarta-tomcat-4.0.1\ work\localhost\cocoon\cocoon-files\org/apache/cocoon/www/pruebas\sql_page_xm l.java:353) at org.apache.cocoon.generation.ServerPagesGenerator.generate(ServerPagesGenera tor.java:258) at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv entPipeline.java:250) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:395) at org.apache.cocoon.www.sitemap_xmap.matchN107C6(D:\jakarta-tomcat-4.0.1\work\ localhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:9660) at org.apache.cocoon.www.sitemap_xmap.process(D:\jakarta-tomcat-4.0.1\work\loca lhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3673) at org.apache.cocoon.www.sitemap_xmap.process(D:\jakarta-tomcat-4.0.1\work\loca lhost\cocoon\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:3097) at org.apache.cocoon.sitemap.Handler.process(Handler.java:227) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152) at org.apache.cocoon.Cocoon.process(Cocoon.java:579) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) 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.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) 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.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) 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.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106 ) at java.lang.Thread.run(Thread.java:479)
Re: redirect at the end of a pipeline/match
If you are dead set against using actions or flow, then I'd recommend continuing your pipeline with the select data you want. Probably the best way to do this is 1) after the first sql transform, insert an xsl transform that replaces the results of the insert with a cinclude of a pipeline that handles your select statement. or 2) have your pipeline aggregate two pipelines. One pipeline would be your insert, the other your select. In the final result, your xsl would ignore the output of the insert pipeline. The first has the advantage that you can react to the result of the sql transform and display different content. I tend to dislike the sql transformer for this kind of problem and prefer actions - the modular database actions are very powerful. Perhaps someone that uses the sql transformer for inserts could provide a more elegant solution. HTH, Geoff At 02:11 PM 6/4/2003, you wrote: Drop the xml serialization. I don't want to send that back as a result. What I do want to do is display a page that now includes the new information which came from this database insert. Does this make sense? map:match pattern='comment' map:generate src=xml/insert_comment.xml/ map:transform type=sql map:parameter name=use-connection value=myconnection/ map:transform REDIRECT or something here/ /map:match -Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: redirect at the end of a pipeline/match
I am not dead set against anything.. although I think flow is ruled out because this project is running on 2.0.4. I will probably implement some actions, they seem to be the cleanest way to accomplish this. Thanks very much for your help! -Daniel Geoff Howard wrote: If you are dead set against using actions or flow, then I'd recommend continuing your pipeline with the select data you want. Probably the best way to do this is 1) after the first sql transform, insert an xsl transform that replaces the results of the insert with a cinclude of a pipeline that handles your select statement. or 2) have your pipeline aggregate two pipelines. One pipeline would be your insert, the other your select. In the final result, your xsl would ignore the output of the insert pipeline. The first has the advantage that you can react to the result of the sql transform and display different content. I tend to dislike the sql transformer for this kind of problem and prefer actions - the modular database actions are very powerful. Perhaps someone that uses the sql transformer for inserts could provide a more elegant solution. HTH, Geoff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: clear cache problems
Bertrand Delacretaz wrote: snip/ The best thing if you're not sure about the browser's cache is to test without a browser - use wget or telnet to make requests and check the results. I use NetTool for this. It's an HTTP client with a GUI, but it's not a browser :-) You have control over HTTP headers, too. Originally developed for debugging SOAP, but it's great for debugging any HTTP server. http://nettool.sourceforge.net/ Cheers Con - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
All hope lost: Can FragmentExtractor serve SVG images to IE (socket write error) ?
Hi, has anybody successfully served svg images (not svg rendered as JPG or PNG, this just works great!) to the IE using the FragmentGenerator? I would really appreciate any information or code snippets about sitemap setup and versions used (OS, JDK, Tomcat, Cocoon, Xalan). After trying to fix what I though was a simple problem for 1.5 weeks I have got no ideas on how to investigate anymore: I am trying to serve a generated svg image as an svg file. The two pipelines are basically: FileGenerator XSLT-Transformer to turn xml data into a xml document containing Custom-Transformer for calling GraphViz to create SVG elements in xml document XSLT-Transformer FragmentExtractor XSLT-Tranformer HTML-Serializer FragmentGenerator SVGXML-Serializer All of this works fine when requesting the page using Netscape Navigator (valid page and images, no errors in log file). As soon as I use the Microsoft Internet Explorer to request the same page, the HTML page is returned, but the svg image has not been served properly. According to the log file there was a java.net.SocketException: Software caused connection abort: socket write error (details included below), in certain configurations I am receiving a NPE in DOMStreamer.stream instead (details included below). As discussed in other threads (http://marc.theaimsgroup.com/?l=xml-cocoon-devm=101994024218728w=2, http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=103907382827236w=2), this looks like IE requesting the svg twice and aborting the first request causing the trouble. Is the FragmentExtractor able to handle this, if the serializer is not JPG or PNG? I am using WinXP and have tried various configurations: -cocoon (2.0.3, 2.0.4), -Tomcat (4.1.24, 4.1.18) -JDK (1.4.0_02, 1.4.1_02) -XALAN (2.3.1, 2.4.1, 2.5.1) and SAXON (6.5), -incremental processing turned on and off. Any hints, ideas on further research very much appreciated. Thanks in advance, Christian - SOCKET WRITE ERROR - FATAL_E (2003-05-28) 00:04.34:399 [core.xslt-processor] (/eti/etimdb/imsds-graph/e920f-f56ba6b144--8000.svg) Thread-10/TraxErrorHandler: java.net.SocketException: Software caused connection abort: socket write error javax.xml.transform.TransformerException: java.net.SocketException: Software caused connection abort: socket write error at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j ava:690) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(Ele mApplyTemplates.java:423) at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates .java:226) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Trans formerImpl.java:2182) at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transfo rmerImpl.java:2008) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerIm pl.java:1171) at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:31 35) at java.lang.Thread.run(Thread.java:536) Caused by: java.net.SocketException: Software caused connection abort: socket write error at org.apache.xalan.serialize.SerializerToXML.outputLineSep(SerializerToXML .java:199) at org.apache.xalan.serialize.SerializerToXML.indent(SerializerToXML.java:2 308) at org.apache.xalan.serialize.SerializerToHTML.startElement(SerializerToHTM L.java:630) at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Transf ormerIdentityImpl.java:1017) at org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java: 130) at org.apache.cocoon.serialization.AbstractTextSerializer$NamespaceAsAttrib utes.startElement(AbstractTextSerializer.java:486) at org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java: 130) at org.apache.xalan.transformer.ResultTreeHandler.flushElem(ResultTreeHandl er.java:856) at org.apache.xalan.transformer.ResultTreeHandler.flushPending(ResultTreeHa ndler.java:931) at org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHand ler.java:306) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.j ava:684) ... 7 more - java.net.SocketException: Software caused connection abort: socket write error at org.apache.xalan.serialize.SerializerToXML.outputLineSep(SerializerToXML .java:199) at org.apache.xalan.serialize.SerializerToXML.indent(SerializerToXML.java:2 308) at org.apache.xalan.serialize.SerializerToHTML.startElement(SerializerToHTM L.java:630) at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Transf ormerIdentityImpl.java:1017) at org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java: 130) at
CVS update
hi people many time when i update my cocoon2.1 cvs snapshot i get build errors i think that maybe i do something wrong with update i use checkout option by revision/tag/head : HEAD is this correct? i use WinCVS thnx --- stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: recommed upgrading to Xalan 2.5 when using document() regularly
Hello Bruce, I upgraded Xalan to 2.5.1 and Xerces to 2.4.0 in the Cocoon 2.0 CVS, so they should be in the next Cocoon 2.0.x release - I guess the 5 comes after the 4 ;-) Joerg Bruce Robertson wrote: I've found that under JDK 1.4 my Cocoon 2.0.4 based project (http://heml.mta.ca) tended to spawn a huge number of open files and after a couple of days of service would: a) crash with a 'too many open files' jvm error b) start throwing 'unknown xpath error's in unlikely places. By checking with the unix 'lsof' utility, I found that the problem was with files accessed through xsl's document() function. (This isn't a function you should get into the habit of using with Cocoon, but at one point I wanted my xslts to work outside Cocoon, too. I'll probably change things when I rewrite that section.) Those files never seemed to get properly closed, except with garbage collection. The lastest version of Xalan has a fix for this bug http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4858 which directly relates to point b) above. So I replaced the stock Xalan in Cocoon 2.0.4 with Xalan 2.5 and the necessary Xerces. And the result was ... some of my xslt threw new errors :-( In particular, it looks like the xpath parsing is more strict, which is probably a good thing. I fixed those, and, hey, it works. I tried hammering the server with requests, and no failure so far. A happy outcome of this is that the part of my code using document() calls, which had been unreasonably slow, now runs much faster. This is not a measured result, but I'm certain it's true. The upshot is that people who, against advice, use document() in their Cocoon-processed xslt should look into swapping in the Xalan 2.5 jar. Yrs, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TeX to PDF serializator
Vasil I. Yaroshevich wrote: Whether exists subj? what should this be good for? tex is not XML and hence can not take part in the Cocoon pipeline. To publish tex, you can use pdflatex and publish the PDF directly. what would definitly be useful is a tex generator, that generatex XML out of tex alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CVS update
when that happens, does build.bat clean fix it? Geoff -Original Message- From: Stavros Kounis [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 5:02 PM To: [EMAIL PROTECTED] Subject: CVS update hi people many time when i update my cocoon2.1 cvs snapshot i get build errors i think that maybe i do something wrong with update i use checkout option by revision/tag/head : HEAD is this correct? i use WinCVS thnx --- stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [HELP]Exception in ServerPagesGenerator.generate() - Oracle+Cocoon
- Look in the cocoon logs in WEB-INF\logs for messages regarding your datasource during startup. Also check the tomcat logs. - Send the snippets of web.xml and cocoon.xconf that you edited here. - Where did you put the oracle driver jar? What is it called? - How did you get your version of Cocoon? If it was binary download, go in WEB-INF\lib and do a dir listing and send that here. Geoff -Original Message- From: Himar Carmona Delgado [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 3:39 PM To: [EMAIL PROTECTED] Subject: [HELP]Exception in ServerPagesGenerator.generate() - Oracle+Cocoon Hi, Can you help me? I don't know what's wrong here. I'm using: Coccon 2.0.4. Tomcat 4.0.1 Win2K Oracle 9.2.0.1 JDK 1.3.1_08 I want to connect to an Oracle Database from Cocoon 2.0.4, using oracle drivers for JDBC. I followed the tutorial at http://wiki.cocoondev.org/Wiki.jsp?page=Oracle , but al the end I obtained the following error: Description:org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeException: Could not get the datasource org.apache.avalon.excalibur.datasource.NoValidConnectionException: No valid JdbcConnection class available - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CVS update
Geoff, The CVS download appeared to be broken very early this morning. It would not build, and had at least one undefined symbol error. However, a fresh checkout at about 2:30 PM Pacific Time seems to build properly. /mde/ just my two cents . . . . __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CVS update
ah, the message sounded like it was a recurring problem but I bet you're right. Geoff -Original Message- From: Mark Eggers [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:11 PM To: [EMAIL PROTECTED] Subject: RE: CVS update Geoff, The CVS download appeared to be broken very early this morning. It would not build, and had at least one undefined symbol error. However, a fresh checkout at about 2:30 PM Pacific Time seems to build properly. /mde/ just my two cents . . . . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: commandline executes matching pipeline three times
Hey all, thanks for the replies, it saves me a lot of frustration :) In the application, a transformer will be used to transfer the incoming XML to an FTP server. The resulting XML will contain info about the transfer, such as size, failure/success, ... So it is important that the transfer happens only once... If you have any other suggestions for doing this, it would be appreciated ! (BTW, Cocoon2.1 is not an option at this point) Thanks again ! [EMAIL PROTECTED] 06/04/03 03:43pm Geert Van Damme wrote: Hi, I'm trying to run Cocoon from the command line, but it seems that the matching pipeline for the requested URI is executed three times instead of just one. Look at the Cocoon Wiki (http://wiki.cocoondev.org/Wiki.jsp?page=CommandLine): snip In order to follow links and rewrite URLs, Cocoon must generate pages multiple times: * once to extract links from the page, using the links view * once to check the mime type for URL rewriting * once for getting page contents /snip Did anyone experience the same problem ? I'm running Cocoon2.0.4 using a very simple example which does work (meaning pipeline processed only once) when running Cocoon as a webapp. Following match is executed three times in stand alone mode : map:match pattern=test map:generate src=welcome/welcome.xhtml/ map:serialize/ /map:match I'm running following ant task to run the program : java classname=org.apache.cocoon.Main fork=true failonerror=true arg value=-c./src/webapps/cocoon / arg value=-C./src/webapps/cocoon/WEB-INF/cocoon.xconf / arg value=/test / classpath refid=batch.classpath / /java The log contains following output three times (with more log output inbetween): [java] REQUEST: /test [java] CONTEXT PATH: null [java] SERVLET PATH: /test [java] PATH INFO: null ... ... [java] METHOD: get [java] CONTENT LENGTH: -1 [java] PROTOCOL: cli [java] SCHEME: cli [java] AUTH TYPE: null [java] CURRENT ACTIVE REQUESTS: 1 [java] REQUEST PARAMETERS: [java] PARAM: 'accept' VALUES: '[text/html, */*]' [java] PARAM: 'user-agent' VALUES: '[Apache Cocoon 2.0.4]' [java] HEADER PARAMETERS: [java] SESSION ATTRIBUTES: Is there anything I miss here ? Any options I need to set ? Thanks, Geert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CVS update
i bluild clean first every time i try to build cocoon i have notice that some time after CVS checkout some files are missing from my local DIR but because i dont have ever use CVS clients in the past i'm not sure if i do checkout the right way --- stavros On Wed, 4 Jun 2003, Geoff Howard wrote: when that happens, does build.bat clean fix it? Geoff -Original Message- From: Stavros Kounis [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 5:02 PM To: [EMAIL PROTECTED] Subject: CVS update hi people many time when i update my cocoon2.1 cvs snapshot i get build errors i think that maybe i do something wrong with update i use checkout option by revision/tag/head : HEAD is this correct? i use WinCVS thnx --- stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: 2.1 dont work with ODBC?
no i have not btw .. what is torsten? On Thu, 5 Jun 2003, Geoff Howard wrote: Did you contact Torsten as the error message said? Geoff -Original Message- From: Stavros Kounis [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 3:58 PM To: [EMAIL PROTECTED] Subject: 2.1 dont work with ODBC? i have the latest (today 06/05/2003) CVS snapshot) i have add sun.jdbc.odbc.JdbcOdbcDriver entry in web xml (just like i have do in 2.0.4) but when i try to make a query (calling a .xsp) in a ODBC database runing in the same machine i get no results in error.log i have found this message: ERROR (2003-06-05) 22:47.59:001 [sitemap.generator.serverpages] (/osOthello-s/encoding/comments.xsp) PoolThread-3/comments_xsp: java.sql.SQLException: The database detection method has changed. If your database is not being recognized (anymore) you can either fix it in the Cocoon2EsqlConnection class, file it to bugzilla, report it to cocoon-dev or to me (tcurdt.at.apache.org) directly. Only be sure to include the database string access in your post. at org.apache.cocoon.components.language.markup.xsp.AbstractEsqlConne ction.createQuery(AbstractEsqlConnection.java:197) . . . how can this database was recognized in 2.0.4 version and not in 2.1? is this in any todo list (so we have to wait for the final 2.1 version or not ?) -- stavros - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Stavros S. Kounis Development Research Department Osmosis - networks consulting services web:http://www.osmosis.gr email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]