You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Ferran Parra <fe...@mubimedia.com> on 2003/03/20 18:34:46 UTC

Error install p6spy1.0.2 in tomcat 4.1.18 and 0.9.9

Hi all
I try to install p6spy in my development machine (tomcat 4.1.18, ojb 0.9.9,
p6spy 1.0.2) like this:

1) put p6spy.jar in WEB-INF\lib
2) configure repository_database.xml
<jdbc-connection-descriptor
...
driver="com.p6spy.engine.spy.P6SpyDriver" instead of
driver="com.mysql.jdbc.Driver"
...
2) put spy.properties in WEB-INF\classes
3) update spy.properties with realdriver=com.mysql.jdbc.Driver
4) environment variable CATALINA_OPTS=-Dp6.home=F:\app\Tomcat
4.1.18\webapps\test\WEB-INF\classes
5) start tomcat 4.1.18 and the aplication throws an Exception:
org.apache.ojb.broker.accesslayer.LookupException: Error getting Connection
from DriverManager with url (jdbc:mysql://192.168.0.115:3306/dbTest) and
driver (com.p6spy.engine.spy.P6SpyDriver): Unable to connect to any hosts
due to exception: java.net.ConnectException: Connection refused: connect

any idea what the problem may be??
thanks in advance

-------------------------------------------------------
Ferran Parra
ferran_p@mubimedia.com
http://www.mubimedia.com
MUBIMEDIA S.L.
C/ Mallorca, 275, 1r 2a 08008 BCN
Tel: 93 215 21 91 / Fax: 93 215 41 21
-------------------------------------------------------


Re: Error install p6spy1.0.2 in tomcat 4.1.18 and 0.9.9

Posted by Ferran Parra <fe...@mubimedia.com>.
i have stop the service of mysql!!, when start servie of mysql all it's ok
and p6spy is running.

thanks

----- Original Message -----
From: "Ferran Parra" <fe...@mubimedia.com>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Thursday, March 20, 2003 7:42 PM
Subject: Re: Error install p6spy1.0.2 in tomcat 4.1.18 and 0.9.9


> thanks now its ok and the step 4) is not necessary!
>
> ----- Original Message -----
> From: "Ferran Parra" <fe...@mubimedia.com>
> To: "OJB Users List" <oj...@db.apache.org>
> Sent: Thursday, March 20, 2003 6:34 PM
> Subject: Error install p6spy1.0.2 in tomcat 4.1.18 and 0.9.9
>
>
> > Hi all
> > I try to install p6spy in my development machine (tomcat 4.1.18, ojb
> 0.9.9,
> > p6spy 1.0.2) like this:
> >
> > 1) put p6spy.jar in WEB-INF\lib
> > 2) configure repository_database.xml
> > <jdbc-connection-descriptor
> > ...
> > driver="com.p6spy.engine.spy.P6SpyDriver" instead of
> > driver="com.mysql.jdbc.Driver"
> > ...
> > 2) put spy.properties in WEB-INF\classes
> > 3) update spy.properties with realdriver=com.mysql.jdbc.Driver
> > 4) environment variable CATALINA_OPTS=-Dp6.home=F:\app\Tomcat
> > 4.1.18\webapps\test\WEB-INF\classes
> > 5) start tomcat 4.1.18 and the aplication throws an Exception:
> > org.apache.ojb.broker.accesslayer.LookupException: Error getting
> Connection
> > from DriverManager with url (jdbc:mysql://192.168.0.115:3306/dbTest) and
> > driver (com.p6spy.engine.spy.P6SpyDriver): Unable to connect to any
hosts
> > due to exception: java.net.ConnectException: Connection refused: connect
> >
> > any idea what the problem may be??
> > thanks in advance
> >
> > -------------------------------------------------------
> > Ferran Parra
> > ferran_p@mubimedia.com
> > http://www.mubimedia.com
> > MUBIMEDIA S.L.
> > C/ Mallorca, 275, 1r 2a 08008 BCN
> > Tel: 93 215 21 91 / Fax: 93 215 41 21
> > -------------------------------------------------------
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> > For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org


Re: Error install p6spy1.0.2 in tomcat 4.1.18 and 0.9.9

Posted by Ferran Parra <fe...@mubimedia.com>.
thanks now its ok and the step 4) is not necessary!

----- Original Message -----
From: "Ferran Parra" <fe...@mubimedia.com>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Thursday, March 20, 2003 6:34 PM
Subject: Error install p6spy1.0.2 in tomcat 4.1.18 and 0.9.9


> Hi all
> I try to install p6spy in my development machine (tomcat 4.1.18, ojb
0.9.9,
> p6spy 1.0.2) like this:
>
> 1) put p6spy.jar in WEB-INF\lib
> 2) configure repository_database.xml
> <jdbc-connection-descriptor
> ...
> driver="com.p6spy.engine.spy.P6SpyDriver" instead of
> driver="com.mysql.jdbc.Driver"
> ...
> 2) put spy.properties in WEB-INF\classes
> 3) update spy.properties with realdriver=com.mysql.jdbc.Driver
> 4) environment variable CATALINA_OPTS=-Dp6.home=F:\app\Tomcat
> 4.1.18\webapps\test\WEB-INF\classes
> 5) start tomcat 4.1.18 and the aplication throws an Exception:
> org.apache.ojb.broker.accesslayer.LookupException: Error getting
Connection
> from DriverManager with url (jdbc:mysql://192.168.0.115:3306/dbTest) and
> driver (com.p6spy.engine.spy.P6SpyDriver): Unable to connect to any hosts
> due to exception: java.net.ConnectException: Connection refused: connect
>
> any idea what the problem may be??
> thanks in advance
>
> -------------------------------------------------------
> Ferran Parra
> ferran_p@mubimedia.com
> http://www.mubimedia.com
> MUBIMEDIA S.L.
> C/ Mallorca, 275, 1r 2a 08008 BCN
> Tel: 93 215 21 91 / Fax: 93 215 41 21
> -------------------------------------------------------
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org