Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 81970 invoked from network); 19 Oct 2004 16:10:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Oct 2004 16:10:47 -0000 Received: (qmail 20708 invoked by uid 500); 19 Oct 2004 16:09:55 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 20562 invoked by uid 500); 19 Oct 2004 16:09:50 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 20392 invoked by uid 99); 19 Oct 2004 16:09:47 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [193.110.112.218] (HELO dgma.donetsk.ua) (193.110.112.218) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 19 Oct 2004 09:09:43 -0700 Received: from arts ([10.23.12.60]) by dgma.donetsk.ua (dgma.donetsk.ua [193.110.112.2]) (MDaemon.PRO.v6.8.5.R) with ESMTP id 10-md50000000039.tmp for ; Tue, 19 Oct 2004 19:13:14 +0300 Message-ID: <003901c4b5f6$0508edb0$3c0c170a@kit.intra.net> From: "Art Spasky" To: References: <00a301c4b5ed$d6339d80$6400a8c0@sviluppo> <001501c4b5ef$b925a600$3c0c170a@kit.intra.net> <00f001c4b5f1$dd7318b0$6400a8c0@sviluppo> Subject: Re: Classpath Date: Tue, 19 Oct 2004 20:09:32 +0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0036_01C4B617.8BF8D4E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 x-mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Processed: dgma.donetsk.ua, Tue, 19 Oct 2004 19:13:14 +0300 (not processed: message from valid local sender) X-MDRemoteIP: 10.23.12.60 X-Return-Path: art.spasky@dgma.donetsk.ua X-MDaemon-Deliver-To: users@cocoon.apache.org X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0036_01C4B617.8BF8D4E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable can you connect to your server via java program (not from cocoon)? As I am concerned Cocoon automatically adds to classpath all jars in lib = directory ----- Original Message -----=20 From: Roberto=20 To: users@cocoon.apache.org=20 Sent: Tuesday, October 19, 2004 7:39 PM Subject: Re: Classpath The error.log file tell me: java.sql.SQLException: Failed to obtain connection The core.log file tell me: java.sql.SQLException: Communication link failure nothing with CLASSPATH, but I thought that I should set the variable. = Im just trying to follow some samples that I found in some book is not a = real project... but you know ... ----- Original Message -----=20 From: Art Spasky=20 To: users@cocoon.apache.org=20 Sent: Tuesday, October 19, 2004 5:24 PM Subject: Re: Classpath What is the text of error? I think that exception was not connected with class path (from your = words) ----- Original Message -----=20 From: Roberto=20 To: users@cocoon.apache.org=20 Sent: Tuesday, October 19, 2004 6:23 PM Subject: Classpath Hya there, would just to understand if I need to set the CLASSPATH enviroment = variable to use Cocoon. Let me tell first my configuration: Window2000 PRO :-( Cocoon 2.1.5 JDK 1.4.2 MySQL 4.1 I don't have any Tomcat or whatever. The problem is that I can't = connect to the database. I already properly setted the following file: cocoon.xconf jdbc:mysql://localhost:3306/montefiore root (tried with password & not) web.xml load-class org.gjt.mm.mysql.Driver & properly added the mysql-connector-java-3.0.6-stable-bin.jar = under WEB-INF/lib. I guess I got everything setted ok. The problem is that the = error.log file tell me that he cant get the connection to the db. In = some IBM tutorial I read that I have take care about the CLASSPATH = variable, is that true? I mean, because they make example with Tomcat = installed either. Any suggestion? Thanx in advance Ciao ROb ------=_NextPart_000_0036_01C4B617.8BF8D4E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
can you connect to your server via java = program=20 (not from cocoon)?
 
As I am concerned Cocoon automatically = adds to=20 classpath all jars in lib directory
----- Original Message -----
From:=20 Roberto=20
Sent: Tuesday, October 19, 2004 = 7:39=20 PM
Subject: Re: Classpath

The error.log file = tell=20 me:
 
java.sql.SQLException: Failed to=20 obtain connection
 
The core.log file = tell=20 me:
 
java.sql.SQLException:=20 Communication link failure
 
nothing with = CLASSPATH, but I=20 thought that I should set the variable. Im just trying to follow some = samples=20 that I found in some book is not a real project... but you know=20 ...
 
 
----- Original Message -----
From:=20 Art Spasky
Sent: Tuesday, October 19, = 2004 5:24=20 PM
Subject: Re: Classpath

What is the text of = error?
 
I think that exception was not = connected with=20 class path (from your words)
----- Original Message ----- =
From:=20 Roberto
Sent: Tuesday, October 19, = 2004 6:23=20 PM
Subject: Classpath

Hya = there,
would just to = understand if I=20 need to set the CLASSPATH enviroment variable to use Cocoon. Let = me tell=20 first my configuration:
 
Window2000 PRO=20 :-(
Cocoon = 2.1.5
JDK = 1.4.2
MySQL = 4.1
 
I don't have any = Tomcat or=20 whatever. The problem is that I can't connect to the database. I = already=20 properly setted the following file:
 
cocoon.xconf
<jdbc name=3D"mysql_pool">
<pool-controller min=3D"5" max=3D"10"/>
<dburl>jdbc:mysql://localhost:3306/montefiore</dburl>
<user>root</user>
<password/> (tried with password &=20 not)
</jdbc>
 
web.xml
<init-param>
<param-name>load-class</param-name>
<param-value> org.gjt.mm.mysql.Driver</param-value>
</init-param>
 
& properly = added the=20 mysql-connector-java-3.0.6-stable-bin.jar under = WEB-INF/lib.
 
I guess I got = everything=20 setted ok. The problem is that the error.log file tell me that he = cant get=20 the connection to the db. In some IBM tutorial I read that I have = take=20 care about the CLASSPATH variable, is that true? I mean, because = they make=20 example with Tomcat installed either.
 
Any = suggestion?
Thanx in = advance
Ciao
ROb
------=_NextPart_000_0036_01C4B617.8BF8D4E0--