cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Painter-Wakefield <>
Subject Re: ESQl and Stored Procedures
Date Thu, 15 Apr 2004 19:57:05 GMT


just for background, can you do a simple select or update query using ESQL?
I ask only because you aren't getting a compile error, which you would
normally expect when an appropriate class isn't available.  What this
reminds me of is what happens when the Oracle jdbc classes aren't loaded in
the web application.  The JDBC stuff (through some sort of black magic I
don't know a lot about) figures out which class to load based on your db
url and then goes to load it.  Maybe that is where the error is coming
from.  If so, then you shouldn't be able to do a simple query either.

If that is the case, then you need this section in your web.xml file:
                  <!-- For Database Driver: -->

I guess another possibility (which would also prevent simple queries) is if
your pool is not set up correctly, e.g., it has an incorrect db url.

If you are able to do simple queries, then it may be something more
specific to doing a stored procedure call, which unfortunately I have no
experience with (through ESQL, anyway).


|         |           "Carlos Dias"    |
|         |           <>|
|         |                            |
|         |           04/15/2004 02:12 |
|         |           PM               |
|         |           Please respond to|
|         |           users            |
|         |                            |
  |       To:       <>                                      
  |       cc:                                                                            
  |       Subject:  ESQl and Stored Procedures                                           

I'm trying to use a stored procedure for making an update in an Oracle
Here is the xsp+esql code:
<?xml version="1.0" encoding="iso-8859-1"?>




    String   app_id                   = request.getParameter("app_id");
    String   user_id                  = request.getParameter("user_id");
    if (app_id != null || user_id != null) {

      {call bookmark.update_bookmark_list(<esql:parameter direction="in"
               <esql:parameter direction="in" type="String">\
    else {
     <exception>Parameters does not exists</exception>


I got the following result (in the web page):
 XML document must have a top level element. Error processing 

In the error.log:
[core.program-generator] (/adslV3/cubenavigator/update_bookmark)
http9090-Processor7/ProgramGeneratorImpl: The serverpage
 could not be preloaded, will be re-created
(org.apache.cocoon.components.language.LanguageException: Unable to preload
 org.apache.cocoon.components.language.LanguageException: Could not load
class for program
 due to a java.lang.ClassNotFoundException:

Can anybody tell me what's going on?!

Thanks in advance,
Carlos Dias

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message