Re: BUILD FAILED: Could not create task... : if
Please pardon me, folks, i can't access the Net everyday. But i want to thank you all for your gracious help. I'm in the process of upgrading to JDK 5.0, Tomcat 5.5.9 and then Cocoon 2.1.7... cheers, andi On 8/23/05, Joerg Heinicke <[EMAIL PROTECTED]> wrote: > On 22.08.2005 22:42, Martin Brüggebors wrote: > > > First: Use the ant that was shipped with cocoon (in cocoon-2.1.7/tools) by > > setting ANT_HOME=./cocoon--2.1.7/tools. > > I did not try that, but it should work. > > Cocoon actually sets ANT_HOME to its ant, but there is an option in the > ant scripts loading the global ant on newer linux systems. This can be > fixed by doing like suggested at > http://wiki.apache.org/cocoon/Installing. In theory Cocoon could also > fix its ant scripts by doing the fix as suggested in Cocoon's codebase. > > Joerg > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- AD (Andi) Marshall Cell: +84 (0)903871313 eM: [EMAIL PROTECTED] Zone: ICT (IndoChina Time, GMT/UTC+7) Post: HoChiMinh City (ex/or SaiGon), VietNam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
send/receive java object with ajax
Hi, I would like : 1- in the flowscript retrieve a simple POJO object and serialize it in xml dom: obj { id=1 name=1; ob2= { coco="cocd"; }; obj3={ coco2="azez"; }; } 2- send the answer to the browser client (AJAX) 3- create the javascript object according to the xml. i think 2,3 are ok , but i don't how do the 1 After the next step is to do: 1 - i have a javascript object 2 -serialize the object in parameter of a url 3- send the request 4- in the flowscript, recreate the object so i have --- javascript client side --- //receive function var obj=XMLToObject(domel); //send function var urlencodedobj=ObjectToUrl(obj); --flowscript server side-- //receive function var obj=UrlToObject (request) //send function var domel=ObjectToXML (obj) so with these functions , i could communicate and send/retrieve data without any troubles. Maybe the idea is not new... so there is maybe some better solutions to do this..could you point me if it is the case. nicolas maisonneuve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NPE with xmldb, resource & i18n
Hello. Here is my pipeline: The xhtml-output resource: utf-8 utf-8 When I call the cforms/proceed, I've got an NPE: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.NullPointerException at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:582) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:183) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:483) Bellow: Caused by: java.lang.NullPointerException at org.xml.sax.helpers.AttributesImpl.getIndex(AttributesImpl.java:203) at org.apache.cocoon.transformation.I18nTransformer.translateAttributes(I18nTransformer.java:1562) at org.apache.cocoon.transformation.I18nTransformer.startElement(I18nTransformer.java:1152) at org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:94) at org.apache.cocoon.transformation.XMLDBTransformer.endElement(XMLDBTransformer.java:513) at org.apache.cocoon.generation.JXTemplateGenerator.execute(JXTemplateGenerator.java:2624) at org.apache.cocoon.generation.JXTemplateGenerator.performGeneration(JXTemplateGenerator.java:2485) at org.apache.cocoon.generation.JXTemplateGenerator.generate(JXTemplateGenerator.java:2479) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:575) ... 54 more Is there anybody how have an idea about this issue? Thanks. Aurélien. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[CForms] debug binding
I'm despairing. Since hourse I seek a bug in my binding. I enable debug more for logging, but i still not see waht happend. No Error Messsage apear. Ist it possible to turn on a "debug mode" CForms ? At least i want to see if the xpath expressions are correct processed. Also it would help if a expression can't be resolved a error is thrown Thx Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Missing classes building 2.1.7
I downloaded 2.1.7 on a fresh installation of FC4 with the Tomcat 5.0 RPM and Sun's JDK 1.5.0_04. When I tried ./build.sh it went through the motions, but came up with two errors: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.XslpLiaison java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison Where can I get the missing classes? Ant 1.6.2 is preinstalled on FC4 but build.sh clearly disables it in order to use its own copy, so I'm puzzled as to why it can't find these classes. There are a few mentions of this problem on the Web (eg PlanetCocoon) but nothing that I can find in the Wiki, and the FAQ page at http://cocoon.apache.org/2.1/faq/faq-install.html is empty (dead? or just no-one has posted to it yet? or am I in the wrong place?) ///Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HttpUtils.getRequestURL
Hi, I'm trying to call this from an XSP logicsheet : StringBuffer URL = HttpUtils.getRequestURL(request); ... but I get this error : / start error (lines 195-195) "The method getRequestURL(HttpServletRequest) in the type HttpUtils is not applicable for the arguments (Request)" StringBuffer URL = HttpUtils.getRequestURL(request); I don't get it, isn't the request an HtttpServletRequest object ? How can I get the URL from an XSP page ?? Many thanks, galpi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Missing classes building 2.1.7
On 28.08.2005 21:54, Peter Flynn wrote: I downloaded 2.1.7 on a fresh installation of FC4 with the Tomcat 5.0 RPM and Sun's JDK 1.5.0_04. When I tried ./build.sh it went through the motions, but came up with two errors: java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.XslpLiaison java.lang.ClassNotFoundException: org.apache.tools.ant.taskdefs.optional.TraXLiaison Where can I get the missing classes? Ant 1.6.2 is preinstalled on FC4 That's the problem. but build.sh clearly disables it in order to use its own copy, Unfortunately not: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=112474471307581&w=4 so I'm puzzled as to why it can't find these classes. http://wiki.apache.org/cocoon/Installing Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Pass a parameter from generator/transformer to the sitemap
I think the other problem you are going to have in getting a solution to this is that the parameters, actions, etc are all evaluated before your sitemap is actually processed. So, I can't think of a way to accomplish exactly what you are looking for. On 8/27/05, Eric Boisvert <[EMAIL PROTECTED]> wrote: > it's probably a dumb question but... why don't you include this parameter > directly in the xml generated by the generator ? > > maybe you have a good reason or some sort of limitation .. just a though. > > Cheers > Eric Boisvert > > > -Message d'origine- > > De : Nick Goupinets [mailto:[EMAIL PROTECTED] > > Envoyé : 27 août, 2005 16:50 > > À : users@cocoon.apache.org > > Objet : Pass a parameter from generator/transformer to the sitemap > > > > > > Hi everybody, > > > > I am trying to find out how to pass a parameter from generator / > > transformer code to the sitemap. Ultimately, I would want something like > > > > this: > > > > > > > > > > > > > > > > That's pretty easy with actions (just get a HashMap returned), but how > > can this be achieved with generators/transformers? I guess there are > > always hacks with request/session attributes, but there must be a more > > elegant way. > > > > Thank you very much for your help. > > > > Best regards, > > Nick Goupinets. > > > > - > > 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: Missing classes building 2.1.7
Joerg Heinicke wrote: On 28.08.2005 21:54, Peter Flynn wrote: Where can I get the missing classes? Ant 1.6.2 is preinstalled on FC4 That's the problem. I thought it might be. The ghost of Red Hat strikes again... but build.sh clearly disables it in order to use its own copy, Unfortunately not: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=112474471307581&w=4 Aha. Grrr. Thank you...OK, soft links to their binaries removed, and I updated the Wiki page at http://wiki.apache.org/cocoon/Installing to reflect the changes for FC4. so I'm puzzled as to why it can't find these classes. I wasn't seeing the "Could not create task or type of type: if." error so I hadn't found the page. It seems to like building now, but it comes up with a different error: package net.php does not exist public class PhpServlet extends net.php.servlet implements Runnable { ^ and then dozens of warnings that @something cannot be used, or can't be found, or the reference isn't found. ///Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Missing classes building 2.1.7
On 28.08.2005 23:55, Peter Flynn wrote: Aha. Grrr. Thank you...OK, soft links to their binaries removed, and I updated the Wiki page at http://wiki.apache.org/cocoon/Installing to reflect the changes for FC4. Thanks. I wasn't seeing the "Could not create task or type of type: if." error so I hadn't found the page. Strange enough that the same root cause can lead to different symptoms. It seems to like building now, but it comes up with a different error: package net.php does not exist public class PhpServlet extends net.php.servlet implements Runnable { ^ Also strange. Cocoon comes with mock objects for the case you have not put a php jar into your setup. Normally this works fine. For the case you don't need the php block you should simply exclude it from your build (see blocks.properties for more information). Otherwise put a php jar into lin/local. and then dozens of warnings that @something cannot be used, or can't be found, or the reference isn't found. This is no problem I think. It's just Javadoc claiming about unknown tags. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Missing classes building 2.1.7
Joerg Heinicke wrote: package net.php does not exist public class PhpServlet extends net.php.servlet implements Runnable { Also strange. Cocoon comes with mock objects for the case you have not put a php jar into your setup. Normally this works fine. For the case you don't need the php block you should simply exclude it from your build (see blocks.properties for more information). Otherwise put a php jar into lin/local. I won't be wanting PHP anyway so it'll get excluded eventually. and then dozens of warnings that @something cannot be used, or can't be found, or the reference isn't found. This is no problem I think. It's just Javadoc claiming about unknown tags. Javadoc Umm...now that it's built OK, I moved webapps to tomcat/webapps/cocoon and copied the xalan etc, and restarted tomcat, but tomcat says Servlet Cocoon is not available. It was sooo much easier with a .war file. ///Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: New Xml files with CForm bindings
Max Pfingsthorn wrote: Hi! Well, your result xml has to be well-formed, so I guess it makes up a root element by itself. Try saying path="/Package" in the root context instead of path="/" and drop the extra context inside. http://apache.org/cocoon/forms/1.0#binding"; xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"; path="/Package"> Thanks, unfortunately this also doesnt work ... after experimenting a little I have realised that my bindings seem to be completely ignored! ie if I simply have http://apache.org/cocoon/forms/1.0#binding"; xmlns:fd="http://apache.org/cocoon/forms/1.0#definition"; path="/Package" /> I get the same result(using the above code) as I am getting with trying to put different bindings inside. How can I get it to actually create/update the needed nodes? Thank you in advance, Vica - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [CForms] debug binding
Hello, you can configure the logs in logkit.xconf like that : but from my experience, i didn't solve many forms related bug using this log. not sure if this would help, but i noticed that when the form is processed through multiple successive pipeline, error messages tend to be lost in the process. A good thing to do when you can is to call the pipe directly from the browser, and if you have to call it from flow to pass some parameters, just create a small debug function in flow that just init the buisness data, and call the form as directly as possible. If you still don't get anything obvious happening, you can set up a view that simply serialize to xml, and put a label="viewname" at the begining of your form generation. then you call the url of your debug function, with the cocoon-view parameter and you should be able to see the error in your binding. hth, Marc Thorsten Mauch a écrit : I'm despairing. Since hourse I seek a bug in my binding. I enable debug more for logging, but i still not see waht happend. No Error Messsage apear. Ist it possible to turn on a "debug mode" CForms ? At least i want to see if the xpath expressions are correct processed. Also it would help if a expression can't be resolved a error is thrown Thx Thorsten - 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: Missing classes building 2.1.7
On 29.08.2005 01:12, Peter Flynn wrote: Umm...now that it's built OK, I moved webapps to tomcat/webapps/cocoon and copied the xalan etc, and restarted tomcat, but tomcat says Servlet Cocoon is not available. It was sooo much easier with a .war file. Why don't you do it that way the? ;-) "build war" creates a WAR file for you. Another possibility - at least for introductory tests - is to use Jetty: "cocoon servlet" on the command line. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]