Solaris 10, Tomcat 5 Cant connect to a database
Hi:
I installed Solaris 10 in a Sun Sunfire V100 Server and installed Tomcat 5.5.20 with JDK1.5, when my application needs to connect to my database server (MS Windows 2000 with MS SQL SERVER 2000 by Port 1433) using JDBC, the application do nothing, There's no information in Tomcat and System logs, I think it is related with Solaris Security (IPFilter) open/closed ports but I am not sure.
I tested the connection to the database using a java class program and got the next error: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
Thanks for the help.
[600 byte] By [
Machius] at [2007-11-26 10:45:13]

# 1
Ok, I Configured Ip Filter to open all traffic, here is what i did:
# vi /etc/ipf/pfil.ap
Uncomment dmfe device for filtering (thats my device dmfe0)
# svcadm restart network/pfil
# svcadm enable network/ipfilter
# reboot
In the ipf.conf I put these lines:
pass in quick on dmfe0 all
pass out quick on dmfe0 all
and reboot the server.
But still the same problem, I thinks is something related with my session, cause I can connect to my Solaris box using telnet from a remote client but I cant connect to a remote server inside the solaris box, i got the next error:
# telnet 192.168.1.244
Trying 192.168.1.244...
telnet: Unable to connect to remote host: Connection timed out
Thanks for your help
# 2
I know nothing about tomcat & DBs, but you could
try telnetting out from Solaris on various ports to
connect to other services on the MSWin box.
Eg,
$ telnet 192.168.1.244 80
will attempt to hit port 80 on the MSWin machine.
You'll know what services WIndows is running.
This'll help you isolate the problem, if you can get
through on some ports rather than others. If can't
get out at all at all, check that your network services
are ok with
# svcs -x
'snoop' is also worth trying out on the Solaris box.
snoop 192.168.1.244
will give you brief info on packets.
snoop -V 192.168.1.244
will give you more info
snoop -v 192.168.1.244
will give you shedloads
Apologies if these steps were already known to you.