config + sniffer trace.
I guess the webserver sends a query to the application server.
Verify you have the config to handle these connections.
Check in the sniffer trace what happens with those connections.
You may need to configure client nat if the web servers and application servers are on the same vlan.
Gilles.