You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Antonio Gallardo <ag...@agssa.net> on 2004/02/21 10:00:40 UTC
Re: Can not get Connection from DataSource
Hi:
Can you connect to the database using:
http://squirrel-sql.sourceforge.net/
Best Regards,
Antonio Gallardo.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Can not get Connection from DataSource
Posted by Johnson <jo...@soho.club.tw>.
the same pls see
"file:/jakarta-tomcat-5.0.18/webapps/cocoon/test/flow/registration.js", line
8: uncaught JavaScript exception: at registration
(file:/jakarta-tomcat-5.0.18/webapps/cocoon/test/flow/registration.js, Line
8): org.apache.ojb.broker.PersistenceBrokerException: Cannot get Connection
from DataSource named postgres://127.0.0.1:5432/test
org.apache.avalon.framework.CascadingRuntimeException:
"file:/jakarta-tomcat-5.0.18/webapps/cocoon/test/flow/registration.js", line
8: uncaught JavaScript exception: at registration
(file:/jakarta-tomcat-5.0.18/webapps/cocoon/test/flow/registration.js, Line
8): org.apache.ojb.broker.PersistenceBrokerException: Cannot get Connection
from DataSource named postgres://127.0.0.1:5432/test
best regards
johnson
ps.the server has two nics. one is 192.168.10.1,another 192.168.10.252
----- Original Message -----
From: "Antonio Gallardo" <ag...@agssa.net>
To: <us...@cocoon.apache.org>
Sent: Saturday, February 21, 2004 5:58 PM
Subject: Re: Can not get Connection from DataSource
> Johnson dijo:
>
> Are you tried to connect to 127.0.0.1 instead of 192.168.10.1? Perhaps in
> 192.168.10.1 the 5432 port not open or postgreSQL does not allow connect
> to this port.
>
> If you are planning to deploy your DB Server in the same machine as
> Tomcat, I will recommend you to use 127.0.0.1 address instead of
> 192.168.10.1. If not you will need to reconfigure the IP address each time
> you will deploy your app (fresh install or an update).
>
> Best Regards,
>
> Antonio Gallardo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Can not get Connection from DataSource
Posted by Johnson <jo...@soho.club.tw>.
another message from catalina.out
[JDO] DEBUG: OjbStoreConnector.begin: connectionReadyForRelease=false
what's it.
Best Regards
----- Original Message -----
From: "Antonio Gallardo" <ag...@agssa.net>
To: <us...@cocoon.apache.org>
Sent: Saturday, February 21, 2004 6:24 PM
Subject: Re: Can not get Connection from DataSource
> Johnson dijo:
> > I found the chane of dbalias don't affect the result if the jcd-alias is
> > define in cocoon.xconf.
>
> Yep. I noted this. You can remove the cocoon.xconf connection. Also try to
> avoid the same name for both in repository.xml and cocoon.xconf. See the
> sample in more detail.
>
> Best Regards,
>
> Antonio Gallardo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Can not get Connection from DataSource
Posted by Johnson <jo...@soho.club.tw>.
If I delete the connection in cocoon.xconf "Cannot lookup DataSources named"
appear
----- Original Message -----
From: "Antonio Gallardo" <ag...@agssa.net>
To: <us...@cocoon.apache.org>
Sent: Saturday, February 21, 2004 6:24 PM
Subject: Re: Can not get Connection from DataSource
> Johnson dijo:
> > I found the chane of dbalias don't affect the result if the jcd-alias is
> > define in cocoon.xconf.
>
> Yep. I noted this. You can remove the cocoon.xconf connection. Also try to
> avoid the same name for both in repository.xml and cocoon.xconf. See the
> sample in more detail.
>
> Best Regards,
>
> Antonio Gallardo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Can not get Connection from DataSource
Posted by Johnson <jo...@soho.club.tw>.
If jcd-alias not the same to cocoon.xconf,the name lookup fail
Best Regards
----- Original Message -----
From: "Antonio Gallardo" <ag...@agssa.net>
To: <us...@cocoon.apache.org>
Sent: Saturday, February 21, 2004 6:24 PM
Subject: Re: Can not get Connection from DataSource
> Johnson dijo:
> > I found the chane of dbalias don't affect the result if the jcd-alias is
> > define in cocoon.xconf.
>
> Yep. I noted this. You can remove the cocoon.xconf connection. Also try to
> avoid the same name for both in repository.xml and cocoon.xconf. See the
> sample in more detail.
>
> Best Regards,
>
> Antonio Gallardo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Can not get Connection from DataSource
Posted by Johnson <jo...@soho.club.tw>.
how fool I'm
just write wrong db-url in cocoon.xconf
must be postgresql
I wrote to postgres
ths for your help
Johnson
----- Original Message -----
From: "Antonio Gallardo" <ag...@agssa.net>
To: <us...@cocoon.apache.org>
Sent: Saturday, February 21, 2004 8:45 PM
Subject: Re: Can not get Connection from DataSource
> Johnson dijo:
> > I use tomcat 4.1.30 the same?
>
> Tomcat 4.1.30 or Tomcat 4.1.29.
>
> Also just to be sure. Did you have the posgresql JDBC driver in
WEB-APP/lib?
>
> Best Regards,
>
> Antonio Gallardo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Can not get Connection from DataSource
Posted by Johnson <jo...@soho.club.tw>.
1.4.1.30
2.yes I have
----- Original Message -----
From: "Antonio Gallardo" <ag...@agssa.net>
To: <us...@cocoon.apache.org>
Sent: Saturday, February 21, 2004 8:45 PM
Subject: Re: Can not get Connection from DataSource
> Johnson dijo:
> > I use tomcat 4.1.30 the same?
>
> Tomcat 4.1.30 or Tomcat 4.1.29.
>
> Also just to be sure. Did you have the posgresql JDBC driver in
WEB-APP/lib?
>
> Best Regards,
>
> Antonio Gallardo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Can not get Connection from DataSource
Posted by Antonio Gallardo <ag...@agssa.net>.
Johnson dijo:
> I use tomcat 4.1.30 the same?
Tomcat 4.1.30 or Tomcat 4.1.29.
Also just to be sure. Did you have the posgresql JDBC driver in WEB-APP/lib?
Best Regards,
Antonio Gallardo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Can not get Connection from DataSource
Posted by Johnson <jo...@soho.club.tw>.
I use tomcat 4.1.30 the same
----- Original Message -----
From: "Antonio Gallardo" <ag...@agssa.net>
To: <us...@cocoon.apache.org>
Sent: Saturday, February 21, 2004 6:24 PM
Subject: Re: Can not get Connection from DataSource
> Johnson dijo:
> > I found the chane of dbalias don't affect the result if the jcd-alias is
> > define in cocoon.xconf.
>
> Yep. I noted this. You can remove the cocoon.xconf connection. Also try to
> avoid the same name for both in repository.xml and cocoon.xconf. See the
> sample in more detail.
>
> Best Regards,
>
> Antonio Gallardo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Can not get Connection from DataSource
Posted by Antonio Gallardo <ag...@agssa.net>.
Johnson dijo:
> I found the chane of dbalias don't affect the result if the jcd-alias is
> define in cocoon.xconf.
Yep. I noted this. You can remove the cocoon.xconf connection. Also try to
avoid the same name for both in repository.xml and cocoon.xconf. See the
sample in more detail.
Best Regards,
Antonio Gallardo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Can not get Connection from DataSource
Posted by Johnson <jo...@soho.club.tw>.
I found the chane of dbalias don't affect the result if the jcd-alias is
define in cocoon.xconf.
----- Original Message -----
From: "Antonio Gallardo" <ag...@agssa.net>
To: <us...@cocoon.apache.org>
Sent: Saturday, February 21, 2004 5:58 PM
Subject: Re: Can not get Connection from DataSource
> Johnson dijo:
>
> Are you tried to connect to 127.0.0.1 instead of 192.168.10.1? Perhaps in
> 192.168.10.1 the 5432 port not open or postgreSQL does not allow connect
> to this port.
>
> If you are planning to deploy your DB Server in the same machine as
> Tomcat, I will recommend you to use 127.0.0.1 address instead of
> 192.168.10.1. If not you will need to reconfigure the IP address each time
> you will deploy your app (fresh install or an update).
>
> Best Regards,
>
> Antonio Gallardo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Can not get Connection from DataSource
Posted by Antonio Gallardo <ag...@agssa.net>.
Johnson dijo:
Are you tried to connect to 127.0.0.1 instead of 192.168.10.1? Perhaps in
192.168.10.1 the 5432 port not open or postgreSQL does not allow connect
to this port.
If you are planning to deploy your DB Server in the same machine as
Tomcat, I will recommend you to use 127.0.0.1 address instead of
192.168.10.1. If not you will need to reconfigure the IP address each time
you will deploy your app (fresh install or an update).
Best Regards,
Antonio Gallardo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Can not get Connection from DataSource
Posted by Johnson <jo...@soho.club.tw>.
the server is linux with cocoon 2.1.4 and postgreSQL 7.1.4 on it,tomcat is
5.0.18.
I use win xp,pgAdmin on it to connect the postgres.
there're in the same network,no firewall.
Druid is on server.
Best Regards
Johnson
----- Original Message -----
From: "Antonio Gallardo" <ag...@agssa.net>
To: <us...@cocoon.apache.org>
Sent: Saturday, February 21, 2004 5:34 PM
Subject: Re: Can not get Connection from DataSource
> >From your posts, looks like your are on a windows machine. I guess
> postgres is running on a Linux machine.
>
> Webmin is running on the same server where you have you postgreSQL server.
> Is there running tomcat 5.0.18. Because to me it looks like a tipicla
> closed port on the server. Are you checked the firewall?
>
> What about pgAdminIII? It this running on the same machine as you are
> running Tomcat?
>
> Best Regards,
>
> Antonio Gallardo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Error compiling fresh CVS download
Posted by Geoff Howard <co...@leverageweb.com>.
Johan Kok wrote:
>
> Got the following error trying to compile cocoon after CVS download:
>
> C:\Apache\cocoon\cocoon-2.2\src\java\org\apache\cocoon\components\flow\AbstractI
>
Don't use 2.2 yet.
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=107600552608370&w=2
Geoff
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Error compiling fresh CVS download
Posted by Johan Kok <jk...@in-corp.com>.
Got the following error trying to compile cocoon after CVS download:
C:\Apache\cocoon\cocoon-2.2\src\java\org\apache\cocoon\components\flow\AbstractI
nterpreter.java:65: package org.apache.cocoon.components.flow.util does
not exis
t
import org.apache.cocoon.components.flow.util.PipelineUtil;
^
C:\Apache\cocoon\cocoon-2.2\src\java\org\apache\cocoon\components\flow\AbstractI
nterpreter.java:186: cannot resolve symbol
symbol : class PipelineUtil
location: class org.apache.cocoon.components.flow.AbstractInterpreter
PipelineUtil pipeUtil = new PipelineUtil();
^
C:\Apache\cocoon\cocoon-2.2\src\java\org\apache\cocoon\components\flow\AbstractI
nterpreter.java:186: cannot resolve symbol
symbol : class PipelineUtil
location: class org.apache.cocoon.components.flow.AbstractInterpreter
PipelineUtil pipeUtil = new PipelineUtil();
^
3 errors
BUILD FAILED
C:\Apache\cocoon\cocoon-2.2\tools\targets\compile-build.xml:51: Compile
failed;
see the compiler error output for details.
Total time: 1 minute 4 seconds
C:\Apache\cocoon\cocoon-2.2>
Antonio Gallardo wrote:
>>>From your posts, looks like your are on a windows machine. I guess
>postgres is running on a Linux machine.
>
>Webmin is running on the same server where you have you postgreSQL server.
>Is there running tomcat 5.0.18. Because to me it looks like a tipicla
>closed port on the server. Are you checked the firewall?
>
>What about pgAdminIII? It this running on the same machine as you are
>running Tomcat?
>
>Best Regards,
>
>Antonio Gallardo
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Can not get Connection from DataSource
Posted by Antonio Gallardo <ag...@agssa.net>.
>From your posts, looks like your are on a windows machine. I guess
postgres is running on a Linux machine.
Webmin is running on the same server where you have you postgreSQL server.
Is there running tomcat 5.0.18. Because to me it looks like a tipicla
closed port on the server. Are you checked the firewall?
What about pgAdminIII? It this running on the same machine as you are
running Tomcat?
Best Regards,
Antonio Gallardo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Can not get Connection from DataSource
Posted by Johnson <jo...@soho.club.tw>.
I can connect the database using pgAdminIII,and webmin.
Best Regards
Johnson
----- Original Message -----
From: "Antonio Gallardo" <ag...@agssa.net>
To: <us...@cocoon.apache.org>
Sent: Saturday, February 21, 2004 5:00 PM
Subject: Re: Can not get Connection from DataSource
> Hi:
>
> Can you connect to the database using:
> http://squirrel-sql.sourceforge.net/
>
> Best Regards,
>
> Antonio Gallardo.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Can not get Connection from DataSource
Posted by Johnson <jo...@soho.club.tw>.
Plus Druid
----- Original Message -----
From: "Antonio Gallardo" <ag...@agssa.net>
To: <us...@cocoon.apache.org>
Sent: Saturday, February 21, 2004 5:00 PM
Subject: Re: Can not get Connection from DataSource
> Hi:
>
> Can you connect to the database using:
> http://squirrel-sql.sourceforge.net/
>
> Best Regards,
>
> Antonio Gallardo.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org