« Previous Next »

Thread: Connection timeout with tomcat

Last post 02-18-2009 6:31 AM by stellar.Kpo. 8 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (9 items)

Sort Posts:

  • 01-17-2009, 12:30 PM

    • maxqua
    • Not Ranked
    • Joined on 01-17-2009, 5:11 PM
    • Posts 5

    Connection timeout with tomcat

     Hi,

    I'm using Windows server 2003 with IIS6 and with tomcat6 connected with isapi_redirect-1.2.27

    My java servlet uses batik to generate an image in png. The server has a static IP (of course) in the LAN, and it is connected to a router (with a public IP address).

    Using the browser within the server using the LAN IP address to call the servlet, there is no problem: I can see the image displayed in the browser.

    If I connect from outside the LAN (so using the public IP) I got the following connection time out error and so no image! From outside the LAN I am able to navigate through the other jsp pages and servlet.

    What could be the causes?

    Hosting the same files on another commercial hoster it works without errors.

    Please help....

     

    org.apache.batik.transcoder.TranscoderException: null
    Enclosed Exception:
    Connection timed out: connect
     at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:136)
     at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156)

  • 01-17-2009, 2:40 PM In reply to

    Re: Connection timeout with tomcat

    It sound like it could be a network/firewall/routing issue from that location.

    Put a packet sniffer on it to see if IIS if there if teh file is being sent out of the network.

  • 01-17-2009, 4:18 PM In reply to

    • maxqua
    • Not Ranked
    • Joined on 01-17-2009, 5:11 PM
    • Posts 5

    Re: Connection timeout with tomcat

    thanks, but I never used a packet sniffer: could you give me some instructions?

    I found out that using the public IP address or localhost from a server browser it is not possible to reach neither the servlet nor the jsp and html pages. Could this give you any clue?

    summarizing:

    • from outside the LAN using public IP: pages can be browsed but I got connection timeout
    • from the server using static IP (192.168.x.y): it works perfectly
    • from the server using public IP: unable to find any page
    • from the server using localhost: unable to find any page

     

  • 01-22-2009, 9:51 PM In reply to

    Re: Connection timeout with tomcat

    Hi,Maxqua

    Can you access your Tomcat6 directly without using "isapi_redirect-1.2.27"? if the problem produced the same, This problem may due to Network issue.

    Regards.

     

    Sincerely
    Microsoft Online Community Support
    Andrew Zhu - MSFT


    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 01-22-2009, 9:56 PM In reply to

    Re: Connection timeout with tomcat

    maxqua:

    thanks, but I never used a packet sniffer: could you give me some instructions?

     

    Start here:

    http://support.microsoft.com/kb/148942

    Then google network monitor for more info.

  • 01-25-2009, 11:31 AM In reply to

    • maxqua
    • Not Ranked
    • Joined on 01-17-2009, 5:11 PM
    • Posts 5

    Re: Connection timeout with tomcat

    I used the sniffer and the result is (I filtered the http protocol only):

    384 6.355468 001D8BD516C2 LOCAL HTTP GET Request from Client 151.54.81.124 SERVER-WEB IP 
    877 27.314453 LOCAL 001D8BD516C2 HTTP Response to Client; HTTP/1.1; Status Code = 200 - OK SERVER-WEB 151.54.81.124 IP

    The result is the same, the picture I am going to get is not displayed.

  • 01-25-2009, 11:47 AM In reply to

    • maxqua
    • Not Ranked
    • Joined on 01-17-2009, 5:11 PM
    • Posts 5

    Re: Connection timeout with tomcat

    Moving the website so that tomcat can work bypassing the isapi_redirect, the problem is still there. Please help!!

  • 01-29-2009, 1:41 PM In reply to

    • maxqua
    • Not Ranked
    • Joined on 01-17-2009, 5:11 PM
    • Posts 5

    Re: Connection timeout with tomcat

    Solved. It was an error in my servlet!

    Sorry!

  • 02-18-2009, 6:31 AM In reply to

    Re: Connection timeout with tomcat

     Hi friends

    I am Joseph from London. 

    I think you should check the tomcat server connection.

     

    Joseph

     

     

Page 1 of 1 (9 items)
Microsoft Communities