Re: [C2] How to connect to mysql server ?
Hi First you should go there http://www.worldserver.com/mm.mysql/ to get the jdbc driver. - Original Message - From: Ling Kok Choon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 25, 2001 4:53 PM Subject: [C2] How to connect to mysql server ? hi, May i know how to connect my cocoon web application to the mySQL server ? Thank. From Kok Choon. Name: Ling Kok Choon E-mail: Ling Kok Choon [EMAIL PROTECTED] Date: 06/25/01 Time: 22:53:03 This message was sent by Z-Mail Pro - from NetManage NetManage - delivers Standards Based IntraNet Solutions - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sub sitemap little problem when developping
Hi When I work with a sub sitemap (wich is reload synchron) map:pipelines map:pipeline map:match pattern=tennis/** map:mount uri-prefix=tennis src=tennis/ reload-method=synchron check-reload=yes/ /map:match /map:pipeline ... I always have to touch (refresh) my sub sitemap.xmap file if I don't want to see the following error : org.apache.avalon.framework.component.ComponentException: UnnamedSelector: ComponentSelector could not find the component for hint: xslt when calling my pages after loading tomcat+cocoon. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [C2] Encoding value with I18n
I have tried this too, and it also doesn't work. Thanks for your help - Original Message - From: Piroumian, Konstantin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 19, 2001 7:16 PM Subject: Re: [C2] Encoding value with I18n I am not sure that the problem is with i18n but I'll take a look at it. I'm not sure, but maybe result encoding must be specified in the Serializer? Something like: map:serialize type=xml map:parameter name=encodingiso-8859-1/map:parameter /map:serialize I will investigate this problem and let you know if I find something. - Original Message - From: matthieu VIDAL [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 19, 2001 8:42 PM Subject: Re: [C2] Encoding value with I18n Thanks I'm working on C2.0b1 I understand that all the transformers work the same way, but it seems that i18n does not. The sitemap is as follow (in fact it's a sub/sitemap): map:match pattern=ManUser.xsli map:generate type=file src=ManUser.xsl/ map:transform type=i18n map:parameter name=src value=lang/ManUser.xml/ /map:transform map:serialize type=xml/ /map:match ManUser.xsl begin like that : ?xml version=1.0 encoding=iso-8859-1? !-- uv -- xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:i18n=http://apache.org/cocoon/i18n/2.0; When opening http://localhost/cocoon/myPages/ManUser.xsli I obtain this : ?xml version=1.0 encoding=UTF-8 ? !-- uv-- xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:i18n=http://apache.org/cocoon/i18n/2.0; - Original Message - From: Piroumian, Konstantin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 19, 2001 6:09 PM Subject: Re: [C2] Encoding value with I18n If you talk about i18nTransformer from latest C2 (which replaced the old i18n transformer), then it is not intended to specify encodings. It uses encodings from your files and simply replaces i18n text by values from the dictionary. If your XML file is in UTF-8 then the result will be also in UTF-8. If you want to specify other encoding then for your response then, I think, you have to look at the Serializers. If you post your pages I could look at them and try to understand what's the problem. Regards, Konstantin Piroumian. - Original Message - From: matthieu VIDAL [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 19, 2001 6:26 PM Subject: [C2] Encoding value with I18n How can I change the encoding value produced by the i18n transformer (by default UTF-8)? In sitemap file I tried map:transformer ... encoding value=iso-8859-1 then encodingiso-8859-1/encoding then map:parameter name=encoding value=iso-8859-1/ etc.. /map:transformer ... even in the map:transform tag NB: the dictionary and xml to translate begin with : ?xml version=1.0 encoding=iso-8859-1? but the xml file is always ?xml version=1.0 encoding=UTF-8? help!!! - Original Message - From: Matt Sergeant [EMAIL PROTECTED] To: Zeljko Rajic [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, June 19, 2001 4:09 PM Subject: Re: setting response headers with XSP On Tue, 19 Jun 2001, Zeljko Rajic wrote: Hi, I'm currently trying to find out how to set response headers within Cocoon, respectively XSP in general. Reading the Cocoon respectively Cocoon's XSP documentation and FAQs I couldn't find any information about this topic. So I still got some open questions and would appreciate it if somebody could give me some further information or could point me to a resource. My questions are: 1. Where in the XSP document do I have to place the xsp-response:set-header .../ tag? Does it matter where I place this tag? Concerning HTTP, it is necessary to send any header information prior any content/data. Thus, does Cocoon buffer the content/data and then writes header information and content/data in a 'single' run? Having a look at the generated Java source, shows that it generates/fires SAX events and thus makes me wonder how the response headers currently being set!? 2. The same probably applies to cookies, thus the same question for cookies: Where in the XSP document is it allowed to set a cookie using the xsp-cookie:cookie tag? These two questions are really implementation dependant, and belong on Cocoon-Users. My take on it, is that it doesn't matter in AxKit or Cocoon
Re: Redirect/Cocoon
Hi Try to add type-mime=text/xml attribute to your element using the xml : map:transform type=xslt src=xml mime-type=text/xml/ - Original Message - From: Navneet Joneja [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 19, 2001 9:40 PM Subject: Redirect/Cocoon Hi! I'm using the redirect extension as part of a cocoon process to redirect output to a file. The trouble is that when my source contains entity references, they're resolved before writing them to the file, eg: amp; appears as in the file. This is nice if the file is a plain text file, but the final file is intended to be an XML file... and hence the removal of the entity references is actually quite a pain in the butt since when I try to operate on them, the transformer throws up. Has anyone seen this before? Is there something I can do to avoid this? Thanks! - Navneet. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: passing parameters from XML file to XML file
Hi what's a parameter for a XML ? Are you talking about XSP request parameters ? or xsl:param ? - Original Message - From: Mohamed Ramzy [EMAIL PROTECTED] To: Cocoon list [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 12:21 AM Subject: passing parameters from XML file to XML file hi i'm trying to pass parameters from XML file to another XML file, i've checked the FAQ, but all what i found is to pass through URL,but i want to pass a lot of parameters without using URL, please i need help in how to do that, i'm using linux redhat 6.1, Cocoon 1.8.2, ApacheJServ/1.1 over Apache 1.3.11 Thanks for your help = Mohamed Ramzy Zakaria, Graduate Research student School of Computer Science Information Technology Jubilee Campus, Nottingham University Nottingham, UK TEL: 00 44 (0)115 84 66529 MOB: 00 44 (0)7947105251 MOB E-MAIL: [EMAIL PROTECTED] __ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: The sitemap handler's sitemap is not available
Do you have old c:/jeee/cocoon2alpha/lib/w3c.jar; in your classpath or libray. Maybe you should try to remove it. - Original Message - From: Guangzu Wang (Houston) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 20, 2001 4:00 AM Subject: The sitemap handler's sitemap is not available Hi all, I installed Tomcat 3.2.2 and Cocoon2, the Tomcat works well (http://localhost:8080) but Cocoon2 not, it gave me the error message of The sitemap handler's sitemap is not available. I did delete jaxp.jar and copied xerces-1.4.0.jar and changed parser.jar to zparser.jar as suggested. When I search the archive list, I found similar problem and suggestions was use Tomcat 4. So I installed Tomcat 4.0 beta 5. Again I changed the class path in web.xml which make servlet.jar visible to Cocoon2 in web.xml before building cocoon.war. After I run the Tomcat and Cocoon, I still got similar error message of The sitemap handler's sitemap is not available. My Linux box is Red Hat 7.1 and I installed JDK 1.3.1 and setup the JAVA_HOME and path accordingly. I actually need a server side xslt process tool. I tried AxKit since most of my code is perl but unfortunately I can not get Sablotron for I can not get http://www.gingerall.com/ for some reasons(host down?). Then I turn to Cocoon2. Look like this is not a easy task either. Anybody get a clue, Thanks a million in advance! Guangzu Here's error message from Tomcat 3.2.2 and Tomcat 4.0 beta 5. Tomcat 3.2.2 org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:178) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:95) at org.apache.cocoon.Cocoon.process(Cocoon.java:328) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:488) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) Tomcat 4.0 beta 5. org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. at org.apache.cocoon.sitemap.Manager.setupProcessing(Manager.java:178) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:95) at org.apache.cocoon.Cocoon.process(Cocoon.java:328) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:488) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:254) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:194) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:255) 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:225) 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:2252) 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.AccessLogValve.invoke(AccessLogValve.java:446) 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: 875) at
Re: XSP NoClassDefaultFoundError ?
You have to restart your web server if you are using tomcat. - Original Message - From: Ling Kok Choon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 19, 2001 8:34 PM Subject: XSP NoClassDefaultFoundError ? hi, I am now trying the XSP, i include the classes that i created ( until the webappls/app/classes ), when i run the XSP, the NoClassDefaultFoundError occur... ? May i know how to slove the problem ? Thank. From ^^ -00''00- Kok Choon. Name: Ling Kok Choon E-mail: Ling Kok Choon [EMAIL PROTECTED] Date: 06/20/01 Time: 02:34:15 This message was sent by Z-Mail Pro - from NetManage NetManage - delivers Standards Based IntraNet Solutions - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: C2 problem
Hi I had this problem. That's seem to be due to old xerces and xalan library in my path when loading tomcat - Original Message - From: Tobias Florek [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 18, 2001 10:28 PM Subject: RE: C2 problem Johnny wrote: blahblahblah error! type internal-server-error message The sitemap handler's sitemap is not available. description org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. sender org.apache.cocoon.servlet.CocoonServlet source Cocoon servlet request-uri /cocoon/ exception org.apache.cocoon.ProcessingException: The sitemap handler's sitemap is not available. thats exactly the same problem i have. my server configuration worked with a c2 build from 2001/04/25 and i didnt changed it. the only thing that changed was cocoon. it seems to be an internal cocoon bug. - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: which is the problem?
A xsp:logic is missing before your java code. - Original Message - From: Morrison, John [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 19, 2001 9:54 AM Subject: RE: which is the problem? I don't know for sure, but I believe that the xsp:content tag is the cause. Try... for(int u = 0; u lt; u++){ xsp:content value datexsp:exprformatDate(u,1,viewer)/xsp:expr/date pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm /value /xsp:content } J. -Original Message- From: Simone Bortolaso [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 19 June 2001 08:53 To: [EMAIL PROTECTED] Subject: which is the problem? The compilator say: java.lang.Exception: XSP Java Compiler: Compilation failed for _index.java 2385: Undefined variable: u xspExpr(formatDate(u,1,viewer),document) . End the code is: xsp:logic threshold labelThresholds:/label date-headerDate/date-header pre-alarm-headerPre-alarm Threshold /pre-alarm-header alarm-headerAlarm Threshold /alarm-header xsp:content for(int u = 0; u lt; u++){ value datexsp:exprformatDate(u,1,viewer)/xsp:expr/date pre-alarmxsp:exprformatDate(u,2,viewer)/xsp:expr/pre-alarm alarmxsp:exprformatDate(u,3,viewer)/xsp:expr/alarm /value } /xsp:content /threshold xsp:logic === Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[C2] Encoding value with I18n
How can I change the encoding value produced by the i18n transformer (by default UTF-8)? In sitemap file I tried map:transformer ... encoding value=iso-8859-1 then encodingiso-8859-1/encoding then map:parameter name=encoding value=iso-8859-1/ etc.. /map:transformer ... even in the map:transform tag NB: the dictionary and xml to translate begin with : ?xml version=1.0 encoding=iso-8859-1? but the xml file is always ?xml version=1.0 encoding=UTF-8? help!!! - Original Message - From: Matt Sergeant [EMAIL PROTECTED] To: Zeljko Rajic [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, June 19, 2001 4:09 PM Subject: Re: setting response headers with XSP On Tue, 19 Jun 2001, Zeljko Rajic wrote: Hi, I'm currently trying to find out how to set response headers within Cocoon, respectively XSP in general. Reading the Cocoon respectively Cocoon's XSP documentation and FAQs I couldn't find any information about this topic. So I still got some open questions and would appreciate it if somebody could give me some further information or could point me to a resource. My questions are: 1. Where in the XSP document do I have to place the xsp-response:set-header .../ tag? Does it matter where I place this tag? Concerning HTTP, it is necessary to send any header information prior any content/data. Thus, does Cocoon buffer the content/data and then writes header information and content/data in a 'single' run? Having a look at the generated Java source, shows that it generates/fires SAX events and thus makes me wonder how the response headers currently being set!? 2. The same probably applies to cookies, thus the same question for cookies: Where in the XSP document is it allowed to set a cookie using the xsp-cookie:cookie tag? These two questions are really implementation dependant, and belong on Cocoon-Users. My take on it, is that it doesn't matter in AxKit or Cocoon 1, because both use the build a DOM method. It probably matters in Cocoon 2 though. I think the C2 solution is to cache to a certain extent and hope you try and send the header early enough in the XSP file that it just works :-) But I await to be corrected on that. 3. Does any specification exists for XSP? Often it's not possible to say whether some XSP constructs do not work because of wrong usage or because of a bug in Cocoon's XSP implementation. An specification also would allow to build an XSP verifier - or does a verifier already exist? I think an XSP verifier would be very hard to write. Certainly not possible in W3C Schemas. Though perhaps possible in Schematron or RELAX. As for a spec, there is nothing formal as yet. We really need to get around to doing that. The problem though, is that with taglibs the XSP set of tags is infinite, and the way you can put them to use is also infinite. The upshot of this is just about any XML document is a valid XSP document, with the exception of items in the XSP namespace itself, which may have to appear in a certain hierarchy. -- Matt/ /||** Founder and CTO ** ** http://axkit.com/ ** file://||** AxKit.com Ltd ** ** XML Application Serving ** // ||** http://axkit.org ** ** XSLT, XPathScript, XSP ** // \\| // ** mod_perl news and resources: http://take23.org ** \\// //\\ // \\ - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]