RE: Woody and eXist in servlet mode ?
Hi Yes I use eXist with cocoon 2.1.4-dev, but ... I run eXist in Servlet mode but not in the same servlet engine than cocoon. Useful if you want to put the database on another computer. And I upgrade to eXist 1.0. It's solving me request cache problem. Laurent Trillaud -Message d'origine- De : Katharina Weimer [mailto:[EMAIL PROTECTED] Envoyé : mercredi 28 janvier 2004 13:13 À : [EMAIL PROTECTED] Objet : Woody and eXist in servlet mode ? Hi, has anybody experiences in working with Woody in the Cocoon version shipped with the .war file from eXist 0.9.2 ? E.g. the carselector sample in Cocoon 2.1.2 runs fine on Tomcat 4.1.27. Now I tried to migrate it to the eXist servlet, which just has a small implementation of Cocoon (but which version) I tried to copy everything, that I think Woody requires, to the eXist Servlet, changed directory paths and so on But I must have missed something as the example is not :( working I get the following error message in the browser Message: null Description: No details available. Sender: org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet Request URI: car/carselector cause: Unable to locate resource: OtherMessages (key [OtherMessages]) request-uri: /car/carselector So my questions are: What did I miss and what does this error message mean? What do I exactly have to do to integrate Woody into this eXist Servlet ? Which Cocoon version is shipped with the eXist Servlet ? Why isnt the earth a disk ? Suggestions of any kind are very welcome, Katharina -- HAKUNA MATATA !!! +++ GMX - die erste Adresse für Mail, Message, More +++ Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail - 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: [module] how to get cookie?
OK, I got it. It's just JXPath syntax. {request:cookieMap/MyCookie/value} return the string. Thanks to Sylvain Wallez for his help. Laurent Trillaud My dream is becoming reality The {request:cookieMap/name} return me just an object instead of the full map with {request:cookieMap} (hope it's the good one) The only thing I need now is to cast object into String. Laurent Huummm. I'am already in an action. The real deal is to give parameter to the auth-login action map:act type=auth-login map:parameter name=handler value=portalhandler / map:parameter name=application value=portal / map:parameter name=parameter_name value=guest / map:parameter name=parameter_password value=guest / /map:act I'am looking for something like map:parameter name=parameter_name value={request:cookies/name} / with of course name a regular cookie Laurent using a custom action tha will read the cookie value and return it in sitemap - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [module] how to get cookie?
what cocoon version R U using ? i can not find a cookie input module or its part of request module ? On Thu, 29 Jan 2004, Laurent Trillaud wrote: OK, I got it. It's just JXPath syntax. {request:cookieMap/MyCookie/value} return the string. Thanks to Sylvain Wallez for his help. Laurent Trillaud My dream is becoming reality The {request:cookieMap/name} return me just an object instead of the full map with {request:cookieMap} (hope it's the good one) The only thing I need now is to cast object into String. Laurent Huummm. I'am already in an action. The real deal is to give parameter to the auth-login action map:act type=auth-login map:parameter name=handler value=portalhandler / map:parameter name=application value=portal / map:parameter name=parameter_name value=guest / map:parameter name=parameter_password value=guest / /map:act I'am looking for something like map:parameter name=parameter_name value={request:cookies/name} / with of course name a regular cookie Laurent using a custom action tha will read the cookie value and return it in sitemap - 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: [module] how to get cookie?
what cocoon version R U using ? Cocoon 2.1.4-dev i can not find a cookie input module or its part of request module ? Yes it is. Laurent Trillaud OK, I got it. It's just JXPath syntax. {request:cookieMap/MyCookie/value} return the string. Thanks to Sylvain Wallez for his help. Laurent Trillaud - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DOCTYPE for the xml serializer
Hi, In the main sitemap of cocoon 2.1 I can set the DOCTYPE-PUBLIC, etc ... map:serializer logger=sitemap.serializer.xml mime-type=text/xml name=xml src=org.apache.cocoon.serialization.XMLSerializer DOCTYPE-PUBLICblabla/DOCTYPE-PUBLIC /map:serializer But some time, I don't want to put a DOCTYPE. So how can I configure my sitemaps. Is the map:serialize/map:serialize cant take parameters ? THanks. Lionel CRINE Ingénieur Systèmes documentaires 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]
[SOLVED] DOCTYPE for the xml serializer
I declared a second serializer. At 11:12 29/01/2004 +0100, you wrote: Hi, In the main sitemap of cocoon 2.1 I can set the DOCTYPE-PUBLIC, etc ... map:serializer logger=sitemap.serializer.xml mime-type=text/xml name=xml src=org.apache.cocoon.serialization.XMLSerializer DOCTYPE-PUBLICblabla/DOCTYPE-PUBLIC /map:serializer But some time, I don't want to put a DOCTYPE. So how can I configure my sitemaps. Is the map:serialize/map:serialize cant take parameters ? THanks. Lionel CRINE Ingénieur Systèmes documentaires 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] Lionel CRINE Ingénieur Systèmes documentaires 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]
ArrayIndexOutOfBoundsException!! Bug in Xalan 2.5.1 ?
Hi all, I get a RunTimeException due to an ArrayIndexOutOfBoundsException at org.apache.xml.utils.FastStringBuffer.sendNormalizedSAXcharacters(FastStringBuffer.java:1165) when I apply the following xsl-Template on an XML-Attribute which is empty. xsl:template match=page xsl:value-of select=normalize-space(@empty-att)/xsl:value-of /xsl:template The corresponing XMl Fragment would be: page empty-att=/ When I remove the function normalize-space, everything works fine. When I use an input field, instead of a plain xsl:value-of/ the resultinh html page is displayed correctly, without any errors. The XSL-Template looks then like this: xsl:template match=page input type=text value={normalize-space(@empty-att)}/input /xsl:template This is a bug, right? And as far as I can see, the bug is in org.apache.xml.utils.FastStringBuffer.sendNormalizedSAXcharacters(). However at Apache.org or Bugzilla I found no hint that this bug exists. This is strange, because what I do here is very common, in my opinion. Has anyone caught the same Exception and does anyone know if threre are already bug fixes available? Thanks, Stephanie P.S.: I use Cocoon 2.1.2 and 2.1.3, the error occurs in both releases -- +++ GMX - die erste Adresse für Mail, Message, More +++ Bis 31.1.: TopMail + Digicam für nur 29 EUR http://www.gmx.net/topmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best Practice Woody + Database ?
Philippe Guillard wrote: Is anybody can tell me more about best practices in associating Woody and Database create/updates ? Seems that the choice is between : 1. ModDB actions + Woody without flowscript but actions 2. XSP/ESQL + Woody with flowscript 3. Woody with flowscript calling into a persistence layer (made up of Java classes encapsulating JDBC access or possibly an object-relational mapping layer like Hibernate, OJB, Castor, etc.). Ugo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
org.apache.jk.server.JkCoyoteHandler action
I am getting the following error: Jan 27, 2004 3:48:20 PM org.apache.jk.server.JkCoyoteHandler action INFO: RESET which is breaking a hibernate process which immediately proceeds the above mentioned line: - Hibernate 2.1.1 - hibernate.properties not found - using CGLIB reflection optimizer - configuring from resource: /hibernate.cfg.xml - Configuration resource: /hibernate.cfg.xml - Mapping resource: test/User_tbl_map.hbm.xml - Mapping class: test.User -> usertbl - Mapping resource: test/User_artistchoice_map.hbm.xml - Mapping class: test.ArtistChoice -> choicetbl - Configured SessionFactory: null - processing one-to-many association mappings - Mapping collection: test.User.child -> choicetbl - processing one-to-one association property references - processing foreign key constraints - Using dialect: net.sf.hibernate.dialect.PostgreSQLDialect - Use outer join fetching: true - C3P0 using driver: org.postgresql.Driver at URL: jdbc:postgresql://localhost:5432/beyarecords - Connection properties: {user=x, password=x} - No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended) - Use scrollable result sets: true - JDBC 2 max batch size: 15 - echoing all SQL to stdout - Query language substitutions: {} - cache provider: net.sf.ehcache.hibernate.Provider - instantiating and configuring caches - building session factory Jan 27, 2004 3:48:20 PM org.apache.jk.server.JkCoyoteHandler action INFO: RESET Can anybody tell me what is going on here? Thanks in advance Andrew
Reusing objects, queries, ect for piping through multiple XSLT tr ansformations
Hi, i'm troubled with following problem. At the moment, i write .xsp's which generate an XML-tree using java-objects or SQL for retreiving the correct data to put between the tags. This is then transformed to HTML and most of the time, i generate tables holding the data retreived. I also write .xsp's that generate XML-trees which are used as input to be transformed to SVG. The problem is that when i want to present the same data in HTML-table format and SVG-piechart format, i have to write 2 xsp's for generating the same data in another XML-structure In the first XSP, i write an embed tag form:svg width=520 height=300 form:url xen:page-urlapp/cfm/svg/pendingontarget.svg/xen:page-url /form:url /form:svg which is ultimately transformed to : embed type=image/svg-xml name=SVGEmbed src=http://networkportal:81/vodafone/app/cfm/svg/pendingontarget.svg; width=650 height=400/embed Is it possible to generate 2 XML-structures in one XSP and both structures to 2 different stylesheets (xsl) ??? And even better that i reference the generated SVG in my XML-tree that will be transformed to HTML. Regards, Robby Pelssers + 31 654670255 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question about my Transformer
Hello I just implemented a simple transformer with the start method below: public void startElement(String namespaceURI, String localName, String qualifiedName, Attributes attributes) throws SAXException { String newLocalName = localName; String newQualifiedName = qualifiedName; //System.out.println(localName); if (localName.equals(ELEMENT_ADDRESS)) { newLocalName = nickname; String[] parts = qualifiedName.split(:); if (parts.length == 2) { newQualifiedName = parts[0] + : + newLocalName; } else { newQualifiedName = newLocalName; } } super.startElement(namespaceURI, newLocalName, newQualifiedName, attributes); } The transformer changes the local name firstname into nickname. I would like to extend this transformer: it should be able to rename all xml tags. do i have to program a loop? do i have to implement multiple startElement()-methodes ? Thx for you help Han J. Theus-Student - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: problem with authentication
Hi Morley, thanks for your replay, i got it. i was misteking many things in the XSP code. now it works and i can authenticate the user against the DB table as i hoped. making more tests, i tried to point directly a page in the protected area without authenticate myself, where i thought i'd be redirected to the login page ; instead i get an exception java.lang.ArrayIndexOutOfBoundsException. have you any suggestion ? below are the stack trace and the new sitemap. thanks a lot Flavio java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.mortbay.util.ByteBufferOutputStream.prewrite(ByteBufferOutputStream.java:219) at org.mortbay.http.BufferedOutputStream.flush(BufferedOutputStream.java:187) at org.mortbay.http.ChunkingOutputStream.flush(ChunkingOutputStream.java:69) at org.mortbay.http.HttpOutputStream.flush(HttpOutputStream.java:482) at org.mortbay.http.HttpResponse.commit(HttpResponse.java:501) at org.mortbay.http.HttpResponse.sendRedirect(HttpResponse.java:463) at org.mortbay.jetty.servlet.ServletHttpResponse.sendRedirect(ServletHttpResponse.java:432) at org.apache.cocoon.environment.http.HttpResponse.sendRedirect(HttpResponse.java:132) at org.apache.cocoon.environment.http.HttpEnvironment.doRedirect(HttpEnvironment.java:192) at org.apache.cocoon.environment.http.HttpEnvironment.redirect(HttpEnvironment.java:131) at org.apache.cocoon.environment.ForwardRedirector.globalRedirect(ForwardRedirector.java:131) at org.apache.cocoon.webapps.authentication.components.DefaultAuthenticationManager.checkAuthentication(DefaultAuthenticationManager.java:373) at org.apache.cocoon.webapps.authentication.acting.AuthAction.act(AuthAction.java:102) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTypeNode.java:152) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:354) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:133) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:152) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:354) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:307) at org.apache.cocoon.Cocoon.process(Cocoon.java:656) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1112) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558) at org.mortbay.http.HttpContext.handle(HttpContext.java:1714) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507) at org.mortbay.http.HttpContext.handle(HttpContext.java:1664) at org.mortbay.http.HttpServer.service(HttpServer.java:863) at org.mortbay.http.HttpConnection.service(HttpConnection.java:775) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:792) at
Re: Question about my Transformer
Is there any particular reason why you want to implement this as a transformer? A stylesheet seems to be easier in this case IMHO. If you extend abstractdomtransformer you have access to the Document instance, but i don't know if that makes your problem any easier. Jorg Han Jon Theus wrote: Hello I just implemented a simple transformer with the start method below: public void startElement(String namespaceURI, String localName, String qualifiedName, Attributes attributes) throws SAXException { String newLocalName = localName; String newQualifiedName = qualifiedName; //System.out.println(localName); if (localName.equals(ELEMENT_ADDRESS)) { newLocalName = nickname; String[] parts = qualifiedName.split(:); if (parts.length == 2) { newQualifiedName = parts[0] + : + newLocalName; } else { newQualifiedName = newLocalName; } } super.startElement(namespaceURI, newLocalName, newQualifiedName, attributes); } The transformer changes the local name firstname into nickname. I would like to extend this transformer: it should be able to rename all xml tags. do i have to program a loop? do i have to implement multiple startElement()-methodes ? Thx for you help Han J. Theus-Student - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
exists Selector brocken?
Dear Cocoon users, I need help in understanding the following xmap snippet -- ... map:selectors default=browser map:selector logger=sitemap.selector.config name=config src=org.apache.cocoon.selection.SimpleSelector / map:selector logger=sitemap.selector.exists name=exists src=org.apache.cocoon.selection.ResourceExistsSelector / /map:selectors ... map:pipeline map:match pattern=**book-* map:select type=exists !-- map:when test=content/xdocs/{1}book.xml -- *** map:when test={1}book.xml !-- If a hand-created book.xml exists, use it -- map:parameter name=url value={1}book.xml / !--map:generate src=content/xdocs/{1}book.xml / -- map:generate src={1}book.xml / map:serialize type=xml/ /map:when map:otherwise !-- If no book.xml, generate it from the linkmap. -- !--map:generate src=cocoon:/{1}menulinks-{2} / --!-- The above generates the subset of the linkmap relevant to our directory. -- !-- map:transform src=resources/stylesheets/site2book.xsl / -- map:parameter name=url value={1}book.xml / *** map:generate src={1}book.xml / map:serialize type=xml/ /map:otherwise /map:select /map:match ... map:pipeline --- the xmap is copied from the forrest app (menu.xmap) and modified for my path structure. I also did set the otherwise case to read the book.xml by default. Here is my question. I can't figure out, why the first line marked with *** does fail to recognize the existence of the file {1}book.xml (it always executes the otherwise case), if the second line marked with *** does read it with no complaint. Any ideas? Is the class that defines the exists type for the selector known to be brocken? Could I illigally/falsly have overwritten the exists type? Thanks for the help Ko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
When do I have to restart the servlet engine
Hi everyone When do I have to restart tomcat ? - changes on sitemap.xmap ? - recompiled java source (new class file) ? - ... Thx for your help Greetings from Switzerland Han J. Theus - Student - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: When do I have to restart the servlet engine
Han Jon Theus wrote: Hi everyone When do I have to restart tomcat ? - changes on sitemap.xmap ? no - recompiled java source (new class file) ? yes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question about my Transformer
StartElement is called each time there is a new start Element so there is already a loop. Do not forget to do the same with the endElement method. Lionel At 14:11 29/01/2004 +0100, you wrote: Hello I just implemented a simple transformer with the start method below: public void startElement(String namespaceURI, String localName, String qualifiedName, Attributes attributes) throws SAXException { String newLocalName = localName; String newQualifiedName = qualifiedName; //System.out.println(localName); if (localName.equals(ELEMENT_ADDRESS)) { newLocalName = nickname; String[] parts = qualifiedName.split(:); if (parts.length == 2) { newQualifiedName = parts[0] + : + newLocalName; } else { newQualifiedName = newLocalName; } } super.startElement(namespaceURI, newLocalName, newQualifiedName, attributes); } The transformer changes the local name firstname into nickname. I would like to extend this transformer: it should be able to rename all xml tags. do i have to program a loop? do i have to implement multiple startElement()-methodes ? Thx for you help Han J. Theus-Student - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Lionel CRINE Ingénieur Systèmes documentaires 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]
AW: When do I have to restart the servlet engine
Hi sitemap.xmap is reloaded after changes. In case of cocoon.xconf: it is necessary to restart cocoon, but not the servlet AFAIK. no idea about java source... Ciao Dominik -Ursprüngliche Nachricht- Von: Han Jon Theus [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 29. Januar 2004 11:38 An: [EMAIL PROTECTED] Betreff: When do I have to restart the servlet engine Hi everyone When do I have to restart tomcat ? - changes on sitemap.xmap ? - recompiled java source (new class file) ? - ... Thx for your help Greetings from Switzerland Han J. Theus - Student - 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: AW: When do I have to restart the servlet engine
New class file: it depends what you do: add a jar, update a jar,... You have in web.xml an allow reload parameters which needs to be true to allox Cocoon to reload itself Le Jeudi 29 Janvier 2004 14:52, Ulrich, Dominik a écrit : Hi sitemap.xmap is reloaded after changes. In case of cocoon.xconf: it is necessary to restart cocoon, but not the servlet AFAIK. no idea about java source... Ciao Dominik -Ursprüngliche Nachricht- Von: Han Jon Theus [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 29. Januar 2004 11:38 An: [EMAIL PROTECTED] Betreff: When do I have to restart the servlet engine Hi everyone When do I have to restart tomcat ? - changes on sitemap.xmap ? - recompiled java source (new class file) ? - ... Thx for your help Greetings from Switzerland Han J. Theus - Student - 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: When do I have to restart the servlet engine
Han Jon Theus wrote: When do I have to restart tomcat ? - changes on sitemap.xmap ? No. - recompiled java source (new class file) ? Depends on your container's configuration. Tomcat is able to reload classes when they are changed, if you tell him to. Ugo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Antw: Re: When do I have to restart the servlet engine
In Cocoon 2.0.3 I have to restart on changes on i18n catalogs Martin [EMAIL PROTECTED] Donnerstag, 29. Januar 2004 15:32:17 Han Jon Theus wrote: When do I have to restart tomcat ? - changes on sitemap.xmap ? No. - recompiled java source (new class file) ? Depends on your container's configuration. Tomcat is able to reload classes when they are changed, if you tell him to. Ugo - 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]
Problem with using File/ImageReader to make zip-entries
Hi Cocooners, i have a pipeline that produces zip-archives. An archive contains a vrml entry and an image. Both entrys are produced by cocoon pipelines (The image is delivered by an file-reader from another url) After getting the zip-File I can read the following message on my console: 15:12:53.373 WARN!! Invalid length: Content-Length=259389 written=425234 for http://localhost:/samples/itgis-3d-10753778127228-10753778137229-39650.wrz I cannot unzip the downloaded zip file, because it is corrupt, but if I try to make the zip without the image, the zip is ok and if I use the original image url instead of the internal reader pipeline the zip file is also valid. Any Ideas? Thank you Björn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
multiple match in the sitemap
Hi all, I'm trying to write this : map:when test= a | b /map:when but it's not working. Is it possible ? Lionel CRINE Ingénieur Systèmes documentaires 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: multiple match in the sitemap
Ive tried it but never manager to make it working... Le Jeudi 29 Janvier 2004 16:14, Lionel Crine a écrit : Hi all, I'm trying to write this : map:when test= a | b /map:when but it's not working. Is it possible ? Lionel CRINE Ingénieur Systèmes documentaires 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Features of cocoon
Hi, I was asked to look for portal servers in the industry . I found cocoon has a interesting mix of XML and the portal features. Can someone please confirm if the following features are available with cocoon. single sign on Search feature( I guess it has lucene integerated) XML data tranformable into different formats(like HTML,WML,PDF) etc security(role base management and authentication) Ablility to easily add new pages to the portlet Personalization depending on users requirement for look and feel Ability to quickly plug in new features. Any help is very appreciated for me to decide if cocoon is the right one for us. Thanks, Anna. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Features of cocoon
Le Jeudi 29 Janvier 2004 16:32, Anna Bikkina a écrit : Hi, I was asked to look for portal servers in the industry . I found cocoon has a interesting mix of XML and the portal features. Can someone please confirm if the following features are available with cocoon. single sign on Depends what you need exactly. Search feature( I guess it has lucene integerated) Yes XML data tranformable into different formats(like HTML,WML,PDF) etc security(role base management and authentication) Of course Ablility to easily add new pages to the portlet Yes Personalization depending on users requirement for look and feel Depends what you need exactly. Ability to quickly plug in new features. Depends what you need exactly. Any help is very appreciated for me to decide if cocoon is the right one for us. Thanks, Anna. - 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: multiple match in the sitemap
using regexp as matching method? --stavros On Thu, 29 Jan 2004, Nicolas Toper wrote: Ive tried it but never manager to make it working... Le Jeudi 29 Janvier 2004 16:14, Lionel Crine a crit : Hi all, I'm trying to write this : map:when test= a | b /map:when but it's not working. Is it possible ? Lionel CRINE Ingnieur Systmes documentaires Socit : 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] - 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: Features of cocoon
Thank you for the reply. Please address my concerns mentioned below. I have multiple applications which require logon. I want to make sure if the user logs on one application he does not have to log on again till he logsout. I want to port all the applications to cocoon. Just want to make sure that cocoon has this feature of single sign on available. Also for personalization I want to have differnt porlets for different users. And change the look and the feel of pages just like we do in my.yahoo.com. Regarding adding new pages if I have to add a new page to cocoon does it apply lot of development. Our idea of moving to a portal server is to be able to add new functionality to our portal easily(in less time). Thanks, Anna. On Thursday 29 January 2004 10:40 am, Nicolas Toper wrote: Le Jeudi 29 Janvier 2004 16:32, Anna Bikkina a écrit : Hi, I was asked to look for portal servers in the industry . I found cocoon has a interesting mix of XML and the portal features. Can someone please confirm if the following features are available with cocoon. single sign on Depends what you need exactly. Search feature( I guess it has lucene integerated) Yes XML data tranformable into different formats(like HTML,WML,PDF) etc security(role base management and authentication) Of course Ablility to easily add new pages to the portlet Yes Personalization depending on users requirement for look and feel Depends what you need exactly. Ability to quickly plug in new features. Depends what you need exactly. Any help is very appreciated for me to decide if cocoon is the right one for us. Thanks, Anna. - 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: Features of cocoon
Anna Bikkina wrote: I have multiple applications which require logon. I want to make sure if the user logs on one application he does not have to log on again till he logsout. I want to port all the applications to cocoon. Just want to make sure that cocoon has this feature of single sign on available. Yes, this is possible. Obviously you have to do a little bit to get it running as you have to pass the login information from one application (or from the single login point) to the other applications. Also for personalization I want to have differnt porlets for different users. This is supported. And change the look and the feel of pages just like we do in my.yahoo.com. Yes, this is easy by just using different stylesheets for the look and feel. Regarding adding new pages if I have to add a new page to cocoon does it apply lot of development. No, I think this doesn't require more effort than it would in other portal servers. Our idea of moving to a portal server is to be able to add new functionality to our portal easily(in less time). This is of course difficult to answer :) I personally think that the cocoon portal is very flexible and allows you to change every detail if the need arises. In addition it's very easy to plugin new functionality. And once you know how things work, it's easy to develop such extensions. HTH Carsten Carsten Ziegeler Open Source Group, SN AG http://www.osoco.net/weblogs/rael/Carsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: multiple match in the sitemap
But this is inside a selector. I have found namedPatternsSelector but it's not exactly what I want. At 17:41 29/01/2004 +0200, you wrote: using regexp as matching method? --stavros On Thu, 29 Jan 2004, Nicolas Toper wrote: Ive tried it but never manager to make it working... Le Jeudi 29 Janvier 2004 16:14, Lionel Crine a écrit : Hi all, I'm trying to write this : map:when test= a | b /map:when but it's not working. Is it possible ? Lionel CRINE Ingénieur Systèmes documentaires 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] - 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] Lionel CRINE Ingénieur Systèmes documentaires 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: problem with authentication
Flavio, I've no idea what would cause the exception. It looks like you're using Jetty. I've used the auth fw with cocoon 2.1.3 under tomcat 4.1.27 and the redirects worked fine. Maybe there's some issue with redirects under Jetty? Maybe you could try running under tomcat and see what happens? Morley -Original Message- From: Flavio Palumbo [mailto:[EMAIL PROTECTED] Sent: Thursday January 29, 2004 8:05 AM To: [EMAIL PROTECTED] Subject: RE: problem with authentication Hi Morley, thanks for your replay, i got it. i was misteking many things in the XSP code. now it works and i can authenticate the user against the DB table as i hoped. making more tests, i tried to point directly a page in the protected area without authenticate myself, where i thought i'd be redirected to the login page ; instead i get an exception java.lang.ArrayIndexOutOfBoundsException. have you any suggestion ? below are the stack trace and the new sitemap. thanks a lot Flavio java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native Method) at org.mortbay.util.ByteBufferOutputStream.prewrite(ByteBufferOutputS tream.java:219) at org.mortbay.http.BufferedOutputStream.flush(BufferedOutputStream.java:187) at org.mortbay.http.ChunkingOutputStream.flush(ChunkingOutputStream.java:69) at org.mortbay.http.HttpOutputStream.flush(HttpOutputStream.java:482) at org.mortbay.http.HttpResponse.commit(HttpResponse.java:501) at org.mortbay.http.HttpResponse.sendRedirect(HttpResponse.java:463) at org.mortbay.jetty.servlet.ServletHttpResponse.sendRedirect(Servlet HttpResponse.java:432) at org.apache.cocoon.environment.http.HttpResponse.sendRedirect(HttpR esponse.java:132) at org.apache.cocoon.environment.http.HttpEnvironment.doRedirect(Http Environment.java:192) at org.apache.cocoon.environment.http.HttpEnvironment.redirect(HttpEn vironment.java:131) at org.apache.cocoon.environment.ForwardRedirector.globalRedirect(For wardRedirector.java:131) at org.apache.cocoon.webapps.authentication.components.DefaultAuthent icationManager.checkAuthentication(DefaultAuthenticationManager.java:373) at org.apache.cocoon.webapps.authentication.acting.AuthAction.act(Aut hAction.java:102) at org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.inv oke(ActTypeNode.java:152) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatch Node.invoke(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.in voke(PipelineNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.i nvoke(PipelinesNode.java:152) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T reeProcessor.java:354) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T reeProcessor.java:307) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invok e(MountNode.java:133) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatch Node.invoke(PreparableMatchNode.java:164) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.in voke(PipelineNode.java:163) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessin gNode.invokeNodes(AbstractParentProcessingNode.java:108) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.i nvoke(PipelinesNode.java:152) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T reeProcessor.java:354) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(T reeProcessor.java:307) at org.apache.cocoon.Cocoon.process(Cocoon.java:656) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1112) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplic ationHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558) at org.mortbay.http.HttpContext.handle(HttpContext.java:1714) at
Re: Features of cocoon
Thank you very much for the answers. One other quick question. The support of CMS in cocoon. Has anyone tried it ? I was reading about the Lenya project by apache built on cocoon. Can Lenya and cocoon portal server be integrated to use the WYSIWYG editor? Thanks, Anna On Thursday 29 January 2004 11:06 am, Carsten Ziegeler wrote: Anna Bikkina wrote: I have multiple applications which require logon. I want to make sure if the user logs on one application he does not have to log on again till he logsout. I want to port all the applications to cocoon. Just want to make sure that cocoon has this feature of single sign on available. Yes, this is possible. Obviously you have to do a little bit to get it running as you have to pass the login information from one application (or from the single login point) to the other applications. Also for personalization I want to have differnt porlets for different users. This is supported. And change the look and the feel of pages just like we do in my.yahoo.com. Yes, this is easy by just using different stylesheets for the look and feel. Regarding adding new pages if I have to add a new page to cocoon does it apply lot of development. No, I think this doesn't require more effort than it would in other portal servers. Our idea of moving to a portal server is to be able to add new functionality to our portal easily(in less time). This is of course difficult to answer :) I personally think that the cocoon portal is very flexible and allows you to change every detail if the need arises. In addition it's very easy to plugin new functionality. And once you know how things work, it's easy to develop such extensions. HTH Carsten Carsten Ziegeler Open Source Group, SN AG http://www.osoco.net/weblogs/rael/Carsten - 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]
Authentication-fw: mutliple authentications
Hi! I've set up a web application with the authentication framework (thank you Jens Maukisch for your help!). I've still one little problem that I cannot solve: When I do a correct login I enter the Home page where there is some personalized data. The problem occurs in two cases: 1) the user goes back to the login page (for example with the back button of the browser) and redoes the login (even with another username). Even if the username/password are correct he gets an error. 2) the user tries to reload the Home page (Reload button of the browser). The browser asks for re-sending the information to the server, and if you choose OK, you get an error. In both cases the error is the same: User is already authenticated using handler: myHandler. I know this is correct: the session is already assigned to a user, but this behaviour maybe is not good for the user. How can I prevent this behaviour? Thanks in advance, best regards, Nesto This is a piece of my sitemap: authentication-manager handlers handler name=myHandler redirect-to uri=cocoon:/auth/not-authorized.htm/ authentication uri=cocoon:raw:/my-sunrise-authuser/ /handler /handlers /authentication-manager /map:component-configurations map:pipeline internal-only=true map:match pattern=my-sunrise-authuser map:generate type=serverpages src=XSP/auth/users.xsp/ map:transform src=transforms/auth/sunrise-user.xsl map:parameter name=use-request-parameters value=true/ /map:transform map:serialize type=xml/ /map:match /map:pipeline map:pipeline !-- a matcher for a login page exists (a static page in which there is a form that sends the data to the my-auth pipeline below) -- map:match pattern=my-auth map:act type=auth-login map:parameter name=handler value=myHandler/ map:parameter name=parameter_name value={request-param:user}/ map:parameter name=parameter_password value={request-param:password}/ map:redirect-to uri=cocoon:/home.htm/ /map:act map:read src=static/auth/login-incorrect.htm/ /map:match map:match pattern=home.htm map:act type=auth-protect map:parameter name=handler value=myHandler/ map:generate type=serverpages src=XSP/userInfo.xsp/ map:transform src=transforms/home.xsl/ map:serialize type=xhtml/ /map:act /map:match - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[HELP]Unable to get transformer handler for factium/.xsl
Description:org.apache.cocoon.ProcessingException: Unable to get transformer handler for factium/.xsl: org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform Handler Ik kan mijn pdf niet openen. Kunt u mij hierbij helpen?! Uw klantnummer: 00444808 Geachte heer N.I. COUVREUR, Alvast bedankt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Woody] repeater add-after
Hi, I'm wondering how I can easily copy a row in a repeater. If I have a certain row with a row-action that does an add-after, I want to have a new row which has initially the same values. For example: My template is showing this: (let the | define simple text inputs shown by your browser) |fruit|apple|granny-smith|row action button/ Then when I push that row action button I want to see: |fruit|apple|granny-smith| |fruit|apple|granny-smith| So that I only have to change the last input to obtain what I really want: |fruit|apple|granny-smith| |fruit|apple|golden| (this is a simple example of course, picture this with repeaters in repeaters and so on) I thought to do this in the on-activate, but it seems that I have to copy each widget value explicitly using their name. Isn't there an iterator over a repeaterrow(well, I did not find one..) so I can just copy the values? Or another way to do the same? If I have a row which contains another repeater, then I'll have to create new rows in the newly created repeater and then retreive each value by getWidget().getValue()? repeater repeater - I'll have to copy this to the new row, so creating new rows and each time explicitly get each widget's value and set it in the new repeater /repeater Greetings, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Features of cocoon
Can I port an existing jsp application into cocoon and then add new pages to it using the cocoon portal features. Thanks, Anna. On Thursday 29 January 2004 11:22 am, Anna Bikkina wrote: Thank you very much for the answers. One other quick question. The support of CMS in cocoon. Has anyone tried it ? I was reading about the Lenya project by apache built on cocoon. Can Lenya and cocoon portal server be integrated to use the WYSIWYG editor? Thanks, Anna On Thursday 29 January 2004 11:06 am, Carsten Ziegeler wrote: Anna Bikkina wrote: I have multiple applications which require logon. I want to make sure if the user logs on one application he does not have to log on again till he logsout. I want to port all the applications to cocoon. Just want to make sure that cocoon has this feature of single sign on available. Yes, this is possible. Obviously you have to do a little bit to get it running as you have to pass the login information from one application (or from the single login point) to the other applications. Also for personalization I want to have differnt porlets for different users. This is supported. And change the look and the feel of pages just like we do in my.yahoo.com. Yes, this is easy by just using different stylesheets for the look and feel. Regarding adding new pages if I have to add a new page to cocoon does it apply lot of development. No, I think this doesn't require more effort than it would in other portal servers. Our idea of moving to a portal server is to be able to add new functionality to our portal easily(in less time). This is of course difficult to answer :) I personally think that the cocoon portal is very flexible and allows you to change every detail if the need arises. In addition it's very easy to plugin new functionality. And once you know how things work, it's easy to develop such extensions. HTH Carsten Carsten Ziegeler Open Source Group, SN AG http://www.osoco.net/weblogs/rael/Carsten - 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]
[SOLVED] multiple match in the sitemap
I have created a selector. At 17:09 29/01/2004 +0100, you wrote: But this is inside a selector. I have found namedPatternsSelector but it's not exactly what I want. At 17:41 29/01/2004 +0200, you wrote: using regexp as matching method? --stavros On Thu, 29 Jan 2004, Nicolas Toper wrote: Ive tried it but never manager to make it working... Le Jeudi 29 Janvier 2004 16:14, Lionel Crine a écrit : Hi all, I'm trying to write this : map:when test= a | b /map:when but it's not working. Is it possible ? Lionel CRINE Ingénieur Systèmes documentaires 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] - 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] Lionel CRINE Ingénieur Systèmes documentaires 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] Lionel CRINE Ingénieur Systèmes documentaires 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: Action execution in sitemap
As you have discovered, actions are always executed first in a pipeline. You could insert a transformer where you have the action. Ralph -Original Message- From: Jan Hoskens [mailto:[EMAIL PROTECTED] Sent: Thursday, January 29, 2004 2:47 AM To: [EMAIL PROTECTED] Subject: Action execution in sitemap Hi, I was trying to do the following: map:match... map:generate type=serverpages src=do-evaluation.xsp some parameters /map:generate map:transform type=write-source/ map:transform type=cinclude/ map:act type=serverpages src=actions/copy-clear.xsp some parameters map:serialize type=xml/ /map:act map:redirect-to uri=Fault/ /map:match The do-evaluation.xsp contains 1) tags to insert a piece of xml in a document 2) an include to a pipeline that constructs a pdf from that xml document The action copy-clear.xsp does: 1) copy the two documents: xml document that was changed by write-source and the generated pdf 2) delete the directory structure that contained the two documents in their first stage I always get redirected to my Fault page. It seems that the action is executed first and tries to find the pdf. It can of course not find it(it wasn't created yet), throws a ResourceNotFound exception, exits the action and goes directly to the Fault pipeline. I thought that pipelines were executed top-to-bottom. Am I completely wrong in my interpretation of pipelines? I can do a workaround/solve this issue by using an action to copy the xml and clear, and then inserting and generating the pdf. But I'd rather not delete the directory in an early stage and loose the information in that directory that was used to create the xml before everything was executed correctly. Greetings, Jan - 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: Question about my Transformer
Jorg Heymans wrote: Is there any particular reason why you want to implement this as a transformer? A stylesheet seems to be easier in this case IMHO. I talked to Han some days ago, this transformer is just an example to get started. If you extend abstractdomtransformer you have access to the Document instance, but i don't know if that makes your problem any easier. This is a good idea. It would make it easier, but slower (depending on the processing - I don't know if this is important for your application). If you want to use SAX, you could do the following: (1) A method for each element: if (localName.equals(ELEMENT_ADDRESS)) { startElementAddress(...) } else if (localName.equals(ELEMENT_NAME)) { startElementName(...) } else if ... (2) You could implement a set of handlers (ContentHandler or a simplier interface) and register them for the element names: public void startElement(String namespaceURI, String localName, String qualifiedName, Attributes attributes) { handlers(localName).startElement(...); } public void endElement(String namespaceURI, String localName, String qualifiedName) { handlers(localName).endElement(...); } HTH, -- Andreas Jorg Han Jon Theus wrote: Hello I just implemented a simple transformer with the start method below: public void startElement(String namespaceURI, String localName, String qualifiedName, Attributes attributes) throws SAXException { String newLocalName = localName; String newQualifiedName = qualifiedName; //System.out.println(localName); if (localName.equals(ELEMENT_ADDRESS)) { newLocalName = nickname; String[] parts = qualifiedName.split(:); if (parts.length == 2) { newQualifiedName = parts[0] + : + newLocalName; } else { newQualifiedName = newLocalName; } } super.startElement(namespaceURI, newLocalName, newQualifiedName, attributes); } The transformer changes the local name firstname into nickname. I would like to extend this transformer: it should be able to rename all xml tags. do i have to program a loop? do i have to implement multiple startElement()-methodes ? Thx for you help Han J. Theus-Student - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How do I set session variables from xslt or jxtransforms?
Hello list, I have a XSP file that generates XML by decrypting a string sent in a url parameter. This works, and the XSP generates a XML representation of the decrypted string. Now I would like to pass this generated XML to a transform of some kind, that will extract data and put it in session variables. Whats the best way to do this? The only way I can think of is using a XSLT transform that gets at the data I want with XPath, and then uses xalan java extensions to set the session variables somehow, but this seems so awkward. Any ideas? Here is an example: an XSP generates this XML: root var1foo/var1 var2foo2/var2 /root I want to do something like: setSessionVariable(var1, xpathExpression(/root/var1)) Cheers, /Joakim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Big problem with cocoon, wap and authentication fw
Hi all; i'm developing the wap part of my own project, but now i'm in a big mess I use Cocoon2.1, Tomcat 5.016 and Openwave 6.2.2 This is the important part of my sitemap: map:match pattern=login map:generate src=content/login.xml/ map:select map:when test=wap map:transform src=style/login_wap.xsl/ map:serialize type=wml/ /map:when ... /map:select /map:match map:match pattern=begin map:act type=auth-protect map:parameter name=handler value=navigation/ map:generate type=serverpages src=xsp/begin.xsp/ map:select map:when test=wap map:transform src=style/begin_wap.xsl/ map:serialize type=wml/ /map:when ... /map:select /map:act /map:match map:match pattern=mcnavigator map:act type=auth-protect map:parameter name=handler value=navigation/ map:parameter name=use-request-parameters value=true/ map:generate type=serverpages src=xsp/mcnavigator.xsp/ map:select map:when test=wap map:transform src=style/mcnavigator_wap.xsl/ map:serialize type=wml/ /map:when ... /map:select /map:act /map:match So, my first page is login; after the authentication i'm sent to begin; In begin i have to fill a text area..then i should go to the mcnavigator pipelin (using normal html it works) but... i'm redirected to login;I noticed that if i delete the map:act type=authoprotect and all other authentication related elements in the mcnavigator pipeline it works, but it's not possible for me. It seems i loose the session... but i don't know... Can anyone out there help me?? Best Regards, Davide - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: How do I set session variables from xslt or jxtransforms?
In a first transformation you can create the xml syntax for the second transformer, the session transformer using xslt/xpath functions. look at http://cocoon.apache.org/2.1/developing/webapps/contexts.html you can do something like this: map:match pattern=test map:generate type=file src=test.xsp/ map:transform type=xalan src=xsl-file-that-produces-the-session-syntax.xsl/ map:transform type=session/ map:serialize type=xml/ /map:match Greetings, Markus -Ursprüngliche Nachricht- Von: Joakim Verona Gesendet: Donnerstag, 29. Januar 2004 13:44 An: [EMAIL PROTECTED] Betreff: How do I set session variables from xslt or jxtransforms? Hello list, I have a XSP file that generates XML by decrypting a string sent in a url parameter. This works, and the XSP generates a XML representation of the decrypted string. Now I would like to pass this generated XML to a transform of some kind, that will extract data and put it in session variables. Whats the best way to do this? The only way I can think of is using a XSLT transform that gets at the data I want with XPath, and then uses xalan java extensions to set the session variables somehow, but this seems so awkward. Any ideas? Here is an example: an XSP generates this XML: root var1foo/var1 var2foo2/var2 /root I want to do something like: setSessionVariable(var1, xpathExpression(/root/var1)) Cheers, /Joakim - 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: Large XML File as Generator
You did refer to XSP below, so, is it an XSP or an XML file (are you using file or serverpages in the generator)? An XSP file will be compiled into a Java class which cannot be larger than 64 kb. May be your are including your large XML file into your XSP file. Hugo Burm -Original Message- From: Brent L Johnson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 9:32 PM To: [EMAIL PROTECTED] Subject: Large XML File as Generator Does anyone know why I get the following when I attempt to use a large XML file as a generator? (a blank page in my browser that looks like this...) !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN HTMLHEAD META http-equiv=Content-Type content=text/html; charset=utf-8/HEAD BODY/BODY/HTML I get no errors or anything else.. this only happens with large files. If I cut the file down it works just fine. I've seen this behavior on different machines for different projects (the last time was trying to use XSP/esql to process about 10K database rows). I'm using Cocoon to process XMLTV results to view a television grid. I have DirecTV with quite a few channels, and 7 days of TV data in XML format turns out to be a 5.8MB file. I think I'll probably just write something that just parses this file and dumps the data into a database and go from there.. but this is the second time I've noticed this behavior. Thanks, - Brent - 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]
Woody: Obtaining selection list label in flow
All, Does anybody know how to get access to the labels of a selection list when using Woody in combination with flow? When my 'country' selection list returns BE I would like to get the original label Belgium. The class Form has a method generateLabel() but it is used to generate SAX events. I just want a simple string. Any ideas ?? -- Litrik De Roy www.litrik.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem including HTML output of JSP page in XSL
On 28.01.2004 17:16, Campeau, Bradford wrote: I am trying to include the HTML output of a JSP page in my XSL using the following statement: xsl:copy-of select=document('http://ahtest.forbes.com/department_home.jsp?namerefer ence=business') / What happens when you access this URL via browser? If I actually cut and paste the HTML output of that JSP page into the XSL instead of the above copy-of statement, it works fine. Otherwise, I get the following error: Could not read resource file:/D:/test/www/cocoon/ahxml/xml/dept_home/department_home_business.xm l Is it HTML or XML? Though the HTML might be well-formed I have whitespaces before the XML declaration or the first element in mind. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: error serving up docbook with cocoon 2.1.3.
In general the DocBook transformation works with Cocoon as any other transformation. I had it working on different Cocoon systems. The only problem is, that it takes a bit time to parse the stylesheets (around 30 seconds). But now to your problem: The error message does not point on an error with the transformation but with the XML file itself. Try to open the file in IE, it should give a similar error message. Joerg On 28.01.2004 22:13, Jeff Born wrote: Hi, I am attempting to serve up docbook pages from cocoon 2.1.3. I have tried many different setups, with each failing in a different way. Each time I learned a little from my mistakes and tried again. My current setup is: Windows 2000 Tomcat 5.0.16 cocoon 2.1.3 Java 1.4.2_03 docbook-xml-4.2 docbook-xsl-1.64.1 also tried docbook-xsl-1.62.4 My current error is: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence. Most of the information I've found is all relevant to cocoon 2.0, or says that xalan can't transform docbook files. I have been able to transform the docbook in question from the command line. Thanks, jeff born - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: R: newbie has problems installing cocoon
On 29.01.2004 05:28, Guy Worthington wrote: Ok, I get cocoon working, but I don't understand why the apps we had working with cocoon 1 do not work when I drop them in /webapps ... Tomcat gives me a resource not available... Between Cocoon 1 and 2.1 really to much has changed to expect it simply working. Of course this depends on the complexity of your application. The most obvious change even for simple applications is the sitemap. I share your frustration, I was able to publish with Cocoon 1.0 after a weekend's light reading of McLaughlin's book Java and XML. I just had to write XML documents and stylesheets and then slot them into the right directories. However between versions 1.0 and 2.0 Cocoon went ENTERPRISE in a big way. And instead of a weekend's light reading there's now a shit-load of documentation. (For example, after around 15 hours of reading, I've reached the dizzying heights of being able to publish a static XML file to HTML.) I never heard that we had to much documentation. :) So I'd like to re-ask your question: has someone written a help file on the sitemap configuration file, which is current, covers the theory so that I'll be able to understand the architecture of Cocoon, and has done so in less than ten thousand words? Did you get the thing with the sitemap, the generator, transformer and serializer step? Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Question about my Transformer
On Thu, 2004-01-29 at 18:04, Andreas Hartmann wrote: Jorg Heymans wrote: Is there any particular reason why you want to implement this as a transformer? A stylesheet seems to be easier in this case IMHO. I talked to Han some days ago, this transformer is just an example to get started. If you extend abstractdomtransformer you have access to the Document instance, but i don't know if that makes your problem any easier. This is a good idea. It would make it easier, Actually, I think it would make it a lot harder. but slower (depending on the processing - I don't know if this is important for your application). snip/ -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Installing cocoon
Hi, I am new to cocoon. Trying to install it . It gives compilation error saying ant is not found and javax.jdo.PersistenceManager is not found. can anyone help me to come over this. I tried to add ant to the classpath and place it in the lib directory in cocoon. It still doesnt work. Infact I see a ant jar in tools/lib directory. I am using cocoon2.1.3. Thanks, Anna. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ArrayIndexOutOfBoundsException!! Bug in Xalan 2.5.1 ?
Never had this exception though I often use normalize-space(). Furthermore 2.1.2 and 2.1.3 use different Xalan versions 2.5.1 and 2.5.2. This error is not related to Cocoon, but to Xalan, so you can first ask there for the problem. But I would make first sure that you have the expected Xalan in use: http://xml.apache.org/xalan-j/faq.html#environmentcheck. Joerg On 29.01.2004 11:22, Stephanie Zohner wrote: Hi all, I get a RunTimeException due to an ArrayIndexOutOfBoundsException at org.apache.xml.utils.FastStringBuffer.sendNormalizedSAXcharacters(FastStringBuffer.java:1165) when I apply the following xsl-Template on an XML-Attribute which is empty. xsl:template match=page xsl:value-of select=normalize-space(@empty-att)/xsl:value-of /xsl:template The corresponing XMl Fragment would be: page empty-att=/ When I remove the function normalize-space, everything works fine. When I use an input field, instead of a plain xsl:value-of/ the resultinh html page is displayed correctly, without any errors. The XSL-Template looks then like this: xsl:template match=page input type=text value={normalize-space(@empty-att)}/input /xsl:template This is a bug, right? And as far as I can see, the bug is in org.apache.xml.utils.FastStringBuffer.sendNormalizedSAXcharacters(). However at Apache.org or Bugzilla I found no hint that this bug exists. This is strange, because what I do here is very common, in my opinion. Has anyone caught the same Exception and does anyone know if threre are already bug fixes available? Thanks, Stephanie P.S.: I use Cocoon 2.1.2 and 2.1.3, the error occurs in both releases - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Woody: Obtaining selection list label in flow
On Thu, 2004-01-29 at 19:45, Litrik De Roy wrote: All, Does anybody know how to get access to the labels of a selection list when using Woody in combination with flow? When my 'country' selection list returns BE I would like to get the original label Belgium. The class Form has a method generateLabel() but it is used to generate SAX events. And that will generate the label of the form, not of the selected item in the selection list. My suggestion to do this would be to manage the selection list data in your own data structure (in the flow), set that on the selectionlist using the FlowJXPathSelectionList (there are samples on that), and afterwards you can then lookup the BE key in your original data structure to map it to its label. With the current Woody API I don't think there are any other options. -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with using File/ImageReader to make zip-entries
I guess you have to buffer this ZIP file and get and set the content-length afterwards. Have a look into the FOPSerializer, it must set the content-length too: http://cvs.apache.org/viewcvs.cgi/*checkout*/cocoon-2.1/src/blocks/fop/java/org/apache/cocoon/serialization/FOPSerializer.java?content-type=text%2Fplainrev=1.6 Joerg On 29.01.2004 15:27, Björn Voigt wrote: Hi Cocooners, i have a pipeline that produces zip-archives. An archive contains a vrml entry and an image. Both entrys are produced by cocoon pipelines (The image is delivered by an file-reader from another url) After getting the zip-File I can read the following message on my console: 15:12:53.373 WARN!! Invalid length: Content-Length=259389 written=425234 for http://localhost:/samples/itgis-3d-10753778127228-10753778137229-39650.wrz I cannot unzip the downloaded zip file, because it is corrupt, but if I try to make the zip without the image, the zip is ok and if I use the original image url instead of the internal reader pipeline the zip file is also valid. Any Ideas? Thank you Björn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [HELP]Unable to get transformer handler for factium/.xsl
Hmm, I don't know to what software this question is related, but it seems to be Cocoon based. The default language on this list is English, but at least German (and of course the Dutch) speaking people can understand the below easily: I can't open my PDF. Can you help me? Now I don't know if you about the internals of Cocoon (Sitemap in this case). I guess there is somewhere a map:transform src=factium/{1}.xsl/. The question with what the {1} should be replaced and this is of course not obvious from here. Maybe you can provide some more information or ask the developer of your product. Joerg On 29.01.2004 14:59, Niels Couvreur at Ithaka wrote: Description:org.apache.cocoon.ProcessingException: Unable to get transformer handler for factium/.xsl: org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform Handler Ik kan mijn pdf niet openen. Kunt u mij hierbij helpen?! Uw klantnummer: 00444808 Geachte heer N.I. COUVREUR, Alvast bedankt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Woody] repeater add-after
Hello Jan, I can't help you much on your particular problem. But you seem to have nested repeaters working. Maybe you could help Mike with his problem he asked yesterday: http://thread.gmane.org/gmane.text.xml.cocoon.user/31386. Joerg On 29.01.2004 16:57, Jan Hoskens wrote: Hi, I'm wondering how I can easily copy a row in a repeater. If I have a certain row with a row-action that does an add-after, I want to have a new row which has initially the same values. For example: My template is showing this: (let the | define simple text inputs shown by your browser) |fruit|apple|granny-smith|row action button/ Then when I push that row action button I want to see: |fruit|apple|granny-smith| |fruit|apple|granny-smith| So that I only have to change the last input to obtain what I really want: |fruit|apple|granny-smith| |fruit|apple|golden| (this is a simple example of course, picture this with repeaters in repeaters and so on) I thought to do this in the on-activate, but it seems that I have to copy each widget value explicitly using their name. Isn't there an iterator over a repeaterrow(well, I did not find one..) so I can just copy the values? Or another way to do the same? If I have a row which contains another repeater, then I'll have to create new rows in the newly created repeater and then retreive each value by getWidget().getValue()? repeater repeater - I'll have to copy this to the new row, so creating new rows and each time explicitly get each widget's value and set it in the new repeater /repeater Greetings, Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing cocoon
How do you build it? Just build in the root directory of your Cocoon sources and everything should work. Is it possible that you do not use Cocoon's build script? Joerg On 29.01.2004 21:55, Anna Bikkina wrote: Hi, I am new to cocoon. Trying to install it . It gives compilation error saying ant is not found and javax.jdo.PersistenceManager is not found. can anyone help me to come over this. I tried to add ant to the classpath and place it in the lib directory in cocoon. It still doesnt work. Infact I see a ant jar in tools/lib directory. I am using cocoon2.1.3. Thanks, Anna. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing cocoon
I did ./build.sh in the cocoon main directory. It does not find ant jar and jdo jar but then build turned out successful inspite of the errors. When I deployed the war to tomcat and restarted tomcat I got the following errors in the tomcat logs. The examples and other can be accessed though using localhost:8080/cocoon link. java.io.FileNotFoundException java.io.FileNotFoundException at org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:344) at java.net.URL.openStream(URL.java:960) at com.hp.hpl.deli.Workspace.getResource(Workspace.java:474) at com.hp.hpl.deli.VocabularyConfig.init(VocabularyConfig.java:104) at com.hp.hpl.deli.Vocabulary.init(Vocabulary.java:37) at com.hp.hpl.deli.Workspace$1$CreateWorkspace.init(Workspace.java:191) at com.hp.hpl.deli.Workspace.configure(Workspace.java:367) at org.apache.cocoon.components.deli.DeliImpl.initialize(DeliImpl.java:148) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:310) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:556) at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:2 no protocol: com.hp.hpl.jena.rdf.arp.ParseException: {E201} Syntax error when processing EOF. Input to RDF parser ended prematurely. This is often related to an XML parser abort. Encountered EOF Was expecting one of: XML ELEMENT CONTENT start element rdf:RDF start element rdf:Description general start element tag at com.hp.hpl.jena.rdf.arp.RDFParser.generateParseException(RDFParser.java:2208) at com.hp.hpl.jena.rdf.arp.RDFParser.jj_consume_token(RDFParser.java:2095) at com.hp.hpl.jena.rdf.arp.RDFParser.root(RDFParser.java:1325) at com.hp.hpl.jena.rdf.arp.RDFParser.embeddedFile(RDFParser.java:1308) at com.hp.hpl.jena.rdf.arp.ARPFilter.parse(ARPFilter.java:293) at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:227) at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:256) at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:173) at com.hp.hpl.deli.VocabularyConfig.schemaProcess(VocabularyConfig.java:250) at com.hp.hpl.deli.VocabularyConfig.init(VocabularyConfig.java:105) at com.hp.hpl.deli.Vocabulary.init(Vocabulary.java:37) at com.hp.hpl.deli.Workspace$1$CreateWorkspace.init(Workspace.java:191) at com.hp.hpl.deli.Workspace.configure(Workspace.java:367) at org.apache.cocoon.components.deli.DeliImpl.initialize(DeliImpl.java:148) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:310) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:143) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:556) at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonComponentManager.java:547) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil.java:282) Thanks, Anna. On Thursday 29 January 2004 05:20 pm, Joerg Heinicke wrote: How do you build it? Just build in the root directory of your Cocoon sources and everything should work. Is it possible that you do not use Cocoon's build script? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing cocoon
Strange. Do you have spaces in your directory name? The error with deli is well-known and you have to exclude the block from build (see install.txt for more info). Joerg On 29.01.2004 23:32, Anna Bikkina wrote: I did ./build.sh in the cocoon main directory. It does not find ant jar and jdo jar but then build turned out successful inspite of the errors. When I deployed the war to tomcat and restarted tomcat I got the following errors in the tomcat logs. The examples and other can be accessed though using localhost:8080/cocoon link. ... deli stacktrace snipped ... Thanks, Anna. On Thursday 29 January 2004 05:20 pm, Joerg Heinicke wrote: How do you build it? Just build in the root directory of your Cocoon sources and everything should work. Is it possible that you do not use Cocoon's build script? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: exists Selector brocken?
Indeed strange. Can you do some remote debugging and have a look on why the test fails? Maybe there is a bug, but nothing is known to me. Joerg On 29.01.2004 14:48, [EMAIL PROTECTED] wrote: Dear Cocoon users, I need help in understanding the following xmap snippet -- ... map:selectors default=browser map:selector logger=sitemap.selector.config name=config src=org.apache.cocoon.selection.SimpleSelector / map:selector logger=sitemap.selector.exists name=exists src=org.apache.cocoon.selection.ResourceExistsSelector / /map:selectors ... map:pipeline map:match pattern=**book-* map:select type=exists !-- map:when test=content/xdocs/{1}book.xml -- *** map:when test={1}book.xml !-- If a hand-created book.xml exists, use it -- map:parameter name=url value={1}book.xml / !--map:generate src=content/xdocs/{1}book.xml / -- map:generate src={1}book.xml / map:serialize type=xml/ /map:when map:otherwise !-- If no book.xml, generate it from the linkmap. -- !--map:generate src=cocoon:/{1}menulinks-{2} / --!-- The above generates the subset of the linkmap relevant to our directory. -- !-- map:transform src=resources/stylesheets/site2book.xsl / -- map:parameter name=url value={1}book.xml / *** map:generate src={1}book.xml / map:serialize type=xml/ /map:otherwise /map:select /map:match ... map:pipeline --- the xmap is copied from the forrest app (menu.xmap) and modified for my path structure. I also did set the otherwise case to read the book.xml by default. Here is my question. I can't figure out, why the first line marked with *** does fail to recognize the existence of the file {1}book.xml (it always executes the otherwise case), if the second line marked with *** does read it with no complaint. Any ideas? Is the class that defines the exists type for the selector known to be brocken? Could I illigally/falsly have overwritten the exists type? Thanks for the help Ko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Installing cocoon
I changed the local.block.properties and there are no error after restarting tomcat now. What is this deli block used for? I am still having problems during building the war. Thank you for the information. Anna. On Thursday 29 January 2004 05:39 pm, Joerg Heinicke wrote: Strange. Do you have spaces in your directory name? The error with deli is well-known and you have to exclude the block from build (see install.txt for more info). Joerg On 29.01.2004 23:32, Anna Bikkina wrote: I did ./build.sh in the cocoon main directory. It does not find ant jar and jdo jar but then build turned out successful inspite of the errors. When I deployed the war to tomcat and restarted tomcat I got the following errors in the tomcat logs. The examples and other can be accessed though using localhost:8080/cocoon link. ... deli stacktrace snipped ... Thanks, Anna. On Thursday 29 January 2004 05:20 pm, Joerg Heinicke wrote: How do you build it? Just build in the root directory of your Cocoon sources and everything should work. Is it possible that you do not use Cocoon's build script? - 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: Installing cocoon
On 29.01.2004 23:52, Anna Bikkina wrote: I changed the local.block.properties and there are no error after restarting tomcat now. What is this deli block used for? http://wiki.cocoondev.org/Wiki.jsp?page=BlockDescriptions I am still having problems during building the war. I asked for spaced in the path? Can you post the build output? Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Reusing objects, queries, ect for piping through multiple XSLT transformations
Session session = request.getSession(); session.setAttribute(par1, hello world); String myString = session.getAttribute(par1); xsp:exprmyString != null ? myString : session var not found/xsp:expr -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: donderdag 29 januari 2004 13:14 To: [EMAIL PROTECTED] Subject: Reusing objects, queries, ect for piping through multiple XSLT transformations Hi, i'm troubled with following problem. At the moment, i write .xsp's which generate an XML-tree using java-objects or SQL for retreiving the correct data to put between the tags. This is then transformed to HTML and most of the time, i generate tables holding the data retreived. I also write .xsp's that generate XML-trees which are used as input to be transformed to SVG. The problem is that when i want to present the same data in HTML-table format and SVG-piechart format, i have to write 2 xsp's for generating the same data in another XML-structure In the first XSP, i write an embed tag form:svg width=520 height=300 form:url xen:page-urlapp/cfm/svg/pendingontarget.svg/xen:page-url /form:url /form:svg which is ultimately transformed to : embed type=image/svg-xml name=SVGEmbed src=http://networkportal:81/vodafone/app/cfm/svg/pendingontarget.svg; width=650 height=400/embed Is it possible to generate 2 XML-structures in one XSP and both structures to 2 different stylesheets (xsl) ??? And even better that i reference the generated SVG in my XML-tree that will be transformed to HTML. Regards, Robby Pelssers + 31 654670255 - 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]
TV Guide w/ Cocoon
Well I just added the coolest (I think.. of course I wrote it.. so my opinion is a little biased) feature to my new Sentinel app (if you dont know that is check the mailing list archive for my previous anouncement message). I just added integration with XMLTV. A complete TV guide using XMLTV and Cocoon. I think it turned out so well I'm thinking about ripping it out of my Sentinel app and offering it as a standalone download. Here are a couple screenshots of what I have so far (been writing code on this for about 3-4 days now)... http://www.bjohnson.net/images/television_grid1.png http://www.bjohnson.net/images/television_grid2.png (I assume most people here can view PNG files) It's fully functional.. you can page through channels (uses the filtertransformer for paging) and also move right/left in 3-hour blocks. Let me know what you think! Any suggestions would be appreciated. Thanks, - Brent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WAR file
Problem already solved. thanks anyway. Andrew On 30 Jan 2004, at 00:18, Mark Leicester wrote: Is this what you are looking for? http://cocoon.apache.org/2.1/installing/ index.html#Optional+functionality specifically, build war? On 28 Jan 2004, at 15:55, beyaNet Consultancy wrote: Hi, I am in the process of re-building cocoon 2.1.3 and have forgotten how to create a WAR file. Could someone kindly refresh my memory as I can't find the howto details in the documentation. I am using OS X 10.3 thanks in advance Andrew - 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]
A mistake in the tutorial
Hi, (B (BI found that there is a mistake at (Bhttp://cocoon.apache.org/2.1/userdocs/flow/tutor.html (B (BIn the source of document/guess.jx, action attribute of the form, (Bshould be ${continuation.id}, not ${cocoon.continuation.id}. (B (BIn the whole documentation, I could not found that 'cocoon' has the (Bproperty 'continuation' (I'm not sure this is correct) and (Balternately there is the global variable 'continuation' available to (B*.jx files. (B (BI checked the above behavior with my installation of Cocoon-2.1.3. (B (BRegards, (B (BMakoto (B (B- (BTo unsubscribe, e-mail: [EMAIL PROTECTED] (BFor additional commands, e-mail: [EMAIL PROTECTED]
Re: A mistake in the tutorial
In the whole documentation, I could not found that 'cocoon' has the (B property 'continuation' (I'm not sure this is correct) and (B alternately there is the global variable 'continuation' available (B to (B *.jx files. (B (BI found the explanation saying that the 'cocoon' object in the JXTemplate (Bhas a property 'continuation' at (Bhttp://cocoon.apache.org/2.1/userdocs/flow/jxtemplate.html . (B (BBut the tutorial did not works with 'cocoon.continuation.id' which (Breturned empty. There's no need to prepend 'cocoon.' for the (Bobjects such as request, continuation in JXTemplates? (B (B (B (B (B- (BTo unsubscribe, e-mail: [EMAIL PROTECTED] (BFor additional commands, e-mail: [EMAIL PROTECTED]
Re: A mistake in the tutorial
Oh! I found the following comments in JXTemplateGenerator.java. (B (B * The current Web Continuation from the Flowscript (B * is also available as a variable named codecontinuation/code. You (Bwould (B * typically access its codeid/code: (B (BSo, we should use 'continuation.id' in *.jx files. (B (B (B (B--- SATOH Makoto [EMAIL PROTECTED] $B$+$i$N%a%C%;!<%8!'(B (B In the whole documentation, I could not found that 'cocoon' has (B the (B property 'continuation' (I'm not sure this is correct) and (B alternately there is the global variable 'continuation' available (B to (B *.jx files. (B (B I found the explanation saying that the 'cocoon' object in the (B JXTemplate (B has a property 'continuation' at (B http://cocoon.apache.org/2.1/userdocs/flow/jxtemplate.html . (B (B But the tutorial did not works with 'cocoon.continuation.id' which (B returned empty. There's no need to prepend 'cocoon.' for the (B objects such as request, continuation in JXTemplates? (B (B (B (B (B - (B To unsubscribe, e-mail: [EMAIL PROTECTED] (B For additional commands, e-mail: [EMAIL PROTECTED] (B (B (B- (BTo unsubscribe, e-mail: [EMAIL PROTECTED] (BFor additional commands, e-mail: [EMAIL PROTECTED]
Re: org.apache.jk.server.JkCoyoteHandler action
It is related as hibernate is running within cocoon. A few tweaks to cocoon have now rectified the situation. Andrew On 29 Jan 2004, at 12:14, Jorg Heymans wrote: how is this related to cooon? hibernate or tomcat lists seem more appropriate here. beyaNet Consultancy wrote: I am getting the following error: Jan 27, 2004 3:48:20 PM org.apache.jk.server.JkCoyoteHandler action INFO: RESET which is breaking a hibernate process which immediately proceeds the above mentioned line: - Hibernate 2.1.1 - hibernate.properties not found - using CGLIB reflection optimizer - configuring from resource: /hibernate.cfg.xml - Configuration resource: /hibernate.cfg.xml - Mapping resource: test/User_tbl_map.hbm.xml - Mapping class: test.User - usertbl - Mapping resource: test/User_artistchoice_map.hbm.xml - Mapping class: test.ArtistChoice - choicetbl - Configured SessionFactory: null - processing one-to-many association mappings - Mapping collection: test.User.child - choicetbl - processing one-to-one association property references - processing foreign key constraints - Using dialect: net.sf.hibernate.dialect.PostgreSQLDialect - Use outer join fetching: true - C3P0 using driver: org.postgresql.Driver at URL: jdbc:postgresql://localhost:5432/beyarecords - Connection properties: {user=x, password=x} - No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended) - Use scrollable result sets: true - JDBC 2 max batch size: 15 - echoing all SQL to stdout - Query language substitutions: {} - cache provider: net.sf.ehcache.hibernate.Provider - instantiating and configuring caches - building session factory Jan 27, 2004 3:48:20 PM org.apache.jk.server.JkCoyoteHandler action INFO: RESET Can anybody tell me what is going on here? Thanks in advance Andrew - 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]