Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Problem running Apache tomcat 6.0 using i.p. address

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Posts
    6
    My Mood
    Aggressive
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Problem running Apache tomcat 6.0 using i.p. address

    i am making a project on network search engine.using following specifications:-

    -Servlets.
    -JSP.
    -RMI.
    -JDBC.
    -Tomcat version 6.0.12

    -->The problem is that i am unable to access server from browser while doing registration and login of users. The url being used is :-
    http://[B]192.168.1.23:8080[/B]/SearchEngineServer/MainController?ACTION=registerme

    here bolded information is the i.p. address of server(running in localhost). it necessary to include i.p. address in the url as using it information regarding the file will be sent.

    code for registration is as follows:-
    <%@include file="global.jsp"%>
    <html>
    <head>
     
     
     
    <title>Network Search Engine</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
     
    <body bgcolor="#F5F4E7" text="#000000">
     
    <%out.println("IP:"+serverIpAddress);%>
     
    <form name="form1" method="post" action="http://<%=serverIpAddress%>:8080/SearchEngineServer/MainController?ACTION=registerme">
      <p>&nbsp;</p><h1 align="center"><font color="#FF0000" face="Times New Roman, Times, serif" size="+7"><i><font face="Georgia">N</font></i></font><i><font size="7" color="#0000FF" face="Monotype Corsiva">e</font><font size="7" color="#33CC00" face="Monotype Corsiva">t</font><font size="7" color="#FF00CC" face="Monotype Corsiva">w</font><font size="7" color="#FF0000" face="Monotype Corsiva">o</font><font size="7" color="#FFFF00" face="Monotype Corsiva"><font color="#0000FF">r</font><font color="#33CC00">k</font></font><font size="7" color="#FFFF00" face="Times New Roman, Times, serif"> 
        <font color="#FF0000" face="Georgia">S</font><font color="#0000FF" face="Monotype Corsiva">e</font><font color="#33CC00" face="Monotype Corsiva">a</font><font color="#FF00FF" face="Monotype Corsiva">r</font><font color="#FF0000" face="Monotype Corsiva">c</font><font color="#0000FF" face="Monotype Corsiva">h</font> 
        <font color="#FF0000" face="Georgia">E</font><font color="#0000FF" face="Monotype Corsiva">n</font><font color="#33CC00" face="Monotype Corsiva">g</font><font color="#FF00FF" face="Monotype Corsiva">i</font></font><font size="7" color="#FF0000" face="Monotype Corsiva">n</font><font size="7" color="#0000FF" face="Monotype Corsiva">e</font></i></h1>
      <hr align="center" noshade>
      <p align="center"></p>
      <table width="75%" border="1" align="center">
        <tr bgcolor="#999340"> 
          <td colspan="2"><font color="#F5F4E7"><b>Registeration</b></font></td>
        </tr>
        <tr> 
          <td width="33%"><font color="#999340">User Name</font></td>
          <td width="67%">
            <input type="text" name="name">
          </td>
        </tr>
        <tr>
          <td width="33%"><font color="#999340">Password</font></td>
          <td width="67%">
            <input type="password" name="pass">
          </td>
        </tr>
        <tr> 
          <td width="33%"><font color="#999340">Confirm Password</font></td>
          <td width="67%">
            <input type="password" name="cpass">
          </td>
        </tr>
     
    <tr>
          <td width="33%"><font color="#999340">Group</font></td>
          <td width="67%">
            <input type="text" name="group">
          </td>
        </tr>
     
     
        <tr> 
          <td width="33%"> 
            <div align="center">
              <input type="submit" name="Submit" value="   Submit   ">
            </div>
          </td>
          <td width="67%"> 
            <div align="center">
              <input type="reset" name="reset" value="   Reset   ">
            </div>
          </td>
        </tr>
      </table>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
    </form>
    </body>
    </html>
    server i.p. address is embedded in global.jsp page.

    Please help!


  2. #2
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: Problem running Apache tomcat 6.0 using i.p. address

    Are you seeing any errors? When you say you're unable to access have you checked to make sure the computer does not have a private firewall running on it etc?

    // Json

  3. The Following User Says Thank You to Json For This Useful Post:

    nakul (March 2nd, 2011)

  4. #3
    Junior Member
    Join Date
    Apr 2010
    Posts
    6
    My Mood
    Aggressive
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: Problem running Apache tomcat 6.0 using i.p. address

    the message being displayed in the web-browser is :-

    Unable to connect


    Firefox can't establish a connection to the server at 192.168.1.23:8080.

  5. #4
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: Problem running Apache tomcat 6.0 using i.p. address

    That would mean that the server is....

    a) Not started so no connections will be accepted
    b) Started but there is a firewall in the way blocking the requests
    c) Unreachable in any other way, maybe you typed the wrong IP address

    If you try opening a command prompt and type "ping 192.168.1.23", do you actually get any response from the server?

    If you are running the server on your local machine, try using or and see if you can reach the server, if this is the case then the tomcat might not be binding its listener to the correct IP on startup.

    // Json

  6. The Following User Says Thank You to Json For This Useful Post:

    nakul (March 2nd, 2011)

Similar Threads

  1. How to get your computer name and IP address?
    By JavaPF in forum Java Networking Tutorials
    Replies: 7
    Last Post: December 8th, 2011, 11:36 AM
  2. org.apache.derby does not exist?
    By disclaimer in forum What's Wrong With My Code?
    Replies: 0
    Last Post: March 30th, 2010, 04:58 PM
  3. apache-jboss
    By supriya ramjee in forum Web Frameworks
    Replies: 0
    Last Post: August 12th, 2009, 05:37 AM
  4. Replies: 2
    Last Post: August 4th, 2009, 11:25 PM
  5. Issues with Tomcat 6.0
    By sanyog24681 in forum Java Servlet
    Replies: 0
    Last Post: October 21st, 2008, 07:55 AM