cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John R. Daily" <jda...@progeny.com>
Subject Re: ESQL taglib missing in action
Date Fri, 03 Jan 2003 21:33:58 GMT
I'm trying a different approach, and now I'm getting Java
exceptions in Tomcat's logs.

Here is my XSP.  Switching to dbpool doesn't change the
exception.

----
<?xml version="1.0"?>

<xsp:page
      xmlns:xsp="http://apache.org/xsp"
      xmlns:esql="http://apache.org/cocoon/SQL/v2"
>
<esql:connection>

  <esql:execute-query>
      <esql:driver>org.postgresql.Driver</esql:driver>
      <esql:dburl>dbname=kb2</esql:dburl>
      <esql:username>jdaily</esql:username>
    <esql:query>SELECT id from xml_document</esql:query>
    <esql:results>
      <table>
        <esql:row-results>
          <esql:get-int column="title"/>
        </esql:row-results>
    </esql:results>
    <esql:no-results>
       Sorry, no results!
    </esql:no-results>
    <esql:error-results><esql:get-message /></esql:error-results>
  </esql:execute-query>
</esql:connection>
</xsp:page>
----

Clearly, now the ESQL XSL file is being invoked, because the
generated .java file includes SQL functionality.

However, I'm getting this from Tomcat's log:

----
2003-01-03 16:19:47 StandardWrapperValve[Cocoon2]: Servlet.service() for servlet Cocoon2 threw
exception
java.lang.IllegalStateException
        at org.apache.coyote.tomcat4.CoyoteResponseFacade.reset(CoyoteResponseFacade.java:251)
        at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1115)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
        at java.lang.Thread.run(Thread.java:536)
----

Again, this is Cocoon 2.0.4, Tomcat 4.1.18, and Java 1.4.1-beta.

The postgresql driver exists in web.xml.

Thanks.

--
John R. Daily                                        jdaily@progeny.com
Director of Technology                            Progeny Linux Systems
                    Master of the ephemeral epiphany

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message