2008/2/28, Stefano Bagnara <[EMAIL PROTECTED]>:
>
> Álvaro Póliz ha scritto:
>
> > Hello,
> > Im having a problem when changing Apache JAMES to a new machine, similar
> > than the old one.
> > This error appears when I start JAMES in this new machine:
> >
> > /
> > There was an uncaught exception:
> > ---------------------------------------------------------
> > --- Message ---
>
> > [...]
>
> > ** BEGIN NESTED EXCEPTION **
> > java.net.ConnectException
> > MESSAGE: Connection timed out
> > STACKTRACE:
> > java.net.ConnectException: Connection timed out
> >        at java.net.PlainSocketImpl.socketConnect(Native Method)
> >        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
> >        at
> > java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
> >        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
> >        at java.net.Socket.connect(Socket.java:464)
> >        at java.net.Socket.connect(Socket.java:414)
> >        at java.net.Socket.<init>(Socket.java:310)
> >        at java.net.Socket.<init>(Socket.java:125)
> >        at
> > com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java
> :124)
> >
> >        at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:225)
> >        at com.mysql.jdbc.Connection.createNewIO(Connection.java:1895)
> >        at com.mysql.jdbc.Connection.<init>(Connection.java:450)
>
> > [...]
>
> > The configuration of the database connection is:
> >
> > *      <data-source name="maildb"
> > class="org.apache.james.util.dbcp.JdbcDataSource">
> >         <driver>com.mysql.jdbc.Driver</driver>
> >         <dburl>jdbc:mysql://localhost/mail?autoReconnect=true</dburl>
> >         <user>root</user>
> >         <password>root</password>
> >         <max>20</max>
> >      </data-source>*
> >
> > I have tried with different users from the database and changing
> > 'localhost' for '127.0.0.1' or the external IP and I obtain the same
> > result.
> >
> > Thank you.
> >    -Álvaro
>
>
> A timeout on localhost connection seems to be a firewall issue. Maybe
> you have some sort of firewall that is hanging connections to 3306?
>
> Otherwise, are you sure that your mysql is listening to the TCP port?
>
> Can you try a "telnet localhost 3306" and "netstat -a | grep 3306" from
> your box?
>
> Stefano
>
>
>

I tried to connect to MySQL from localhost, and I am able to do it always.
The telnet to 3306 also works fine. I have been trying with many users of my
database but I cant connect with them from JAMES.

Saludos.
-Álvaro

Reply via email to