cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amir Azmi" <>
Subject RE: Connection to database and stylesheet
Date Mon, 05 Mar 2001 18:41:09 GMT

If u still haven't the problem off the hook, I think the problem crops
up when the trial version of the driver expires.

What u can do is download the latest JNetDirect driver, and use the new
jSQLconnect.jar file that comes along with it and u'll be all set,
temporarily till it expires.(This was what I did when I got the error
and it works fine now).


-----Original Message-----
From: Isabelle Boyer []
Sent: Monday, March 05, 2001 4:40 AM
To: UserCocoon; DevCocoon
Subject: Connection to database and stylesheet

Hi all,

I have a connection problem with a query to a SQL dataBase, named
My query is ok but when Itested it 4 times, I have the following error
message :
com.jnetdirect.jsql.m: Failed connection:com.jnetdirect.jsql.m: This
license allows a maximum of 1 connections and 2 are already connected

I have tried to crease the number of connection in in
section "Turbine DB Connection Pool" at line
processor.xsp.pool.database.default.maxConnections=100 instead of 3.

I use the servlet engine, "litewebserver" and jdk 1.3 in NT workstation.

So could you tell me what is the solution to have a unlimited connection
the Database., what are cocoon 's properties I have to change or if this
error is included in the freeware ?

I have another request about the stylesheet. I want to use 2 differents
stylesheets in a xml document according to user's request.
Th syntax I use is as following :

<?xml version="1.0"?>

<?cocoon-process type="xsp"?>
<xsp:page language="java"

<?cocoon-process type="xslt"?>
<?xml-stylesheet href="nds2-3.xsl" type="text/xsl"?>


    String all;

    if (request.getParameter("all") != null)
       all = request.getParameter("all");
        all = "";

   String XSLRef="\"href=\"nds2-3.xsl\\\"";

   if ((all.compareTo("all") == 0))
       XSLRef = "\"href=\"nds2-2.xsl\\\"";
      XSLRef = "\"href=\"nds2-3.xsl\\\"";


But it is not working.As you can see, I put a default stylesheet to not
have a blank in href because it raise me an erro
So could you give me an idea or another way to do this ?

Thanks in advance for your support and your help.

Best Regards,
Isabelle Boyer.

Please check that your question has not already been answered in the
FAQ before posting. <>

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

View raw message