HELP: esql in logicsheet -- Compilation failed...
hello all together, I try to use esql for database access in a logicsheet. I always get a compilation error on that! If I integrate my code directly in my XML file then everything is fine!?! I would be happy if anyone could give me hint/help. Thank you very much in advance, Carsten My Configuration: tomcat 3.2.2 cocoon 1.8.2 MS-SQL Server 7.0 -- Here is my XML-File: ?xml version=1.0? !-- Author: Stefano Mazzocchi [EMAIL PROTECTED] -- !-- Version: $Id: clean-page.xml,v 1.2 2000/02/16 01:09:30 stefano Exp $ -- ?cocoon-process type=xslt? ?xml-stylesheet href=test_xsp.xsl type=text/xsl? page title/title /page --- And this is my logicsheet: ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xsp=http://www.apache.org/1999/XSP/Core; xsl:template match=page xsl:processing-instruction name=cocoon-processtype=xsp/xsl:processing-instruction !--xsl:processing-instruction name=cocoon-processtype=xslt/xsl:processing-instruction xsl:processing-instruction name=xml-stylesheethref=page-html.xsl type=text/xsl/xsl:processing-instruction -- xsp:page language=java xmlns:xsp=http://www.apache.org/1999/XSP/Core; xmlns:esql=http://apache.org/cocoon/SQL/v2; xsp:logic esql:connection esql:driversun.jdbc.odbc.JdbcOdbcDriver/esql:driver esql:dburljdbc:odbc:DB-PAK-SA-bock/esql:dburl esql:usernamesa/esql:username esql:password/esql:password esql:execute-query esql:queryselect * from Anlagen/esql:query /esql:execute-query /esql:connection /xsp:logic /xsp:page /xsl:template /xsl:stylesheet - Cocoon's error message: java.lang.Exception: XSP Java Compiler: Compilation failed for _database.java 77: Type expected. if (_esql_connection != null) { DOES THIS MEAN THAT THERE IS ALEADY A CONNECTION OBJCET? ^ 1 error at org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessor.compile(XSPJa vaProcessor.java:146) at org.apache.cocoon.processor.xsp.XSPProcessor.process(XSPProcessor.java:522) at org.apache.cocoon.Engine.handle(Engine.java:384) at org.apache.cocoon.Cocoon.service(Cocoon.java:183) 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.connector.Ajp12ConnectionHandler.processConnection (Ajp12ConnectionHandler.java:166) 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) - 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]
I don't know where to get some samples
Hi, I'm trying to build an XSP program that depends on Caccon 2 implementation which uses the SAX. Unfortunately, I only have examples that show how I'm going to use DOM (which is the Cacoon 1 implementation), can anybody refer me to some examples that uses SAX in an XSP program? Thanx - 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: org.w3c.dom.Document as param, html as output
I'm trying to find a class/method (possibly xalan) that will take an org.w3c.dom.Document as an arg which will include an ?xml:stylesheet? processing instruction and have an ouput of html. I need to have this done on the fly without the xml doc saved in a directoryany suggestions?? Of course Xalan can do this. See Xalan documentation at http://xml.apache.org/xalan-j You can run Xalan processor either from command line or programmaticaly and specify the source and styelsheet. You can additionally define some params for transformations. Best regards, Konstantin Piroumian Software engineer Protek Flagship LLC Phone: + 7 095 795 0520 (add. 1288) Fax: + 7 095 795 0525 E-mail: [EMAIL PROTECTED] http://www.protek.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: org.w3c.dom.Document as param, html as output
check out xmlc. it compiles xml: http://xmlc.enhydra.org/ xalan has xsltc which compiles the xsl - Original Message - From: JOEL BENVENISTE [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 06, 2001 2:35 PM Subject: org.w3c.dom.Document as param, html as output I'm trying to find a class/method (possibly xalan) that will take an org.w3c.dom.Document as an arg which will include an ?xml:stylesheet? processing instruction and have an ouput of html. I need to have this done on the fly without the xml doc saved in a directoryany suggestions?? - 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] - xml-interest: A list for discussing XML technologies in the Java Platform. To post, mailto:[EMAIL PROTECTED] Archives at: http://archives.java.sun.com/xml-interest.html To unsubscribe, mailto:[EMAIL PROTECTED] the following message; signoff xml-interest. - 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]You cannot select a Component from a disposed ComponentSelector
Hi ! What meens: org.apache.cocoon.ResourceNotFoundException: You cannot select a Component from a disposed ComponentSelector:java.lang.IllegalStateException: You cannot select a Component from a disposed ComponentSelector at org.apache.cocoon.generation.ServerPagesGenerator.setup(ServerPagesGenerator .java:156) at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(Ab stractEventPipeline.java:164) at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEven tPipeline.java:255) at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(Cachi ngEventPipeline.java:110) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:273) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3627) I get this exception when I want to call the Simple XSP example in cocoon2. Christoph Gaffga - 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: esql problem
On 06.Jul.2001 -- 03:18 PM, JEULIN Olivier wrote: It seems you should put it inside xsp:logic like this xsp:logic rowNum = esql:get-int column=1/; /xsp:logic (if C2 is a bit like C1 ;) ) If you didn't want to assign to a variable, then you'd need to enclose the rowNum=... code with a xsp:content element. I'll patch that into the logicsheet on monday so that esql exhibits the expected behaviour to output rowNum = 42 instead of producing the error. Chris. -- C h r i s t i a n H a u l [EMAIL PROTECTED] fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08 - 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]
any free XML search engine... available?
Hello I am looking for a free XML search engine. Has anyone used it with Cocoon and is there one available? Your input will much appreciated. Thanks. - This mail sent through IMP: samurai.brel.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: any free XML search engine... available?
if you're delivery html to the browsers, try htdig.org a good open source search engine. We currently use it for our cocoon based xsp site. --- [EMAIL PROTECTED] wrote: Hello I am looking for a free XML search engine. Has anyone used it with Cocoon and is there one available? Your input will much appreciated. Thanks. - This mail sent through IMP: samurai.brel.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] __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.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]