GetRequestDispatcher/forward problem

Hi,
I have a problem with that code :
getRequestDispatcher(myJSP).forward(req,resp)
It execute very well, but my JSP desn't display... I'm sure the servlet and JSP codes are correct because it works fine in my local environment... it doesn't work only on the WAS server...
So, knowing that my SQL query take much time, could it be a timeOut problem ? on the WAS server or on the Appache Web server ?
Thanks
TeuF

whats in your local enviornment ?
Amlan

Similar Messages

  • How  to do getRequestDispatcher().forward with client address bar changed?

    getRequestDispatcher().forward will not change the address bar of client, this will cause some problem,
    Following is our webapp folder:
    /test1/a.jsp(This page include <img src="images/1.gif" ....>)
    /test1/images/1.gif
    /servlet1 (This is a servlet with the code getRequestDispatcher().forward("/test1/a.jsp") ) When run /servlet1 , the image "1.gif " can not display, because
    it refers to "/images/1.gif" and not "/test1/images/1.gif".
    Is there any good idea to resolve this problem?
    Thanks!

    The standard solution is to use a <base> tag to indicate to the page where relative links should be resolved from.
    eg
    <head>
    <base href="http://www.myserver.com/test1/images/a.jsp" />
    </head>
    <body>
    <img src="images/1.gif" ....>
    </body>You can build it dynamically using request.getServerName(), request.getContextPath()...
    Struts provides a <html:base/> tag which does this for you.
    Cheers,
    evnafets

  • .getRequestDispatcher("/").forward question

    I am not sure why I am getting this error.
    java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:159)
    from the code.
    this.getServletConfig().getServletContext().getRequestDispatcher("/").forward(request,response);
    Can anyone help? Has anyone seen this before ?
    I am not calling getOutputStream manually on the same request.

    Typically an IllegalStateException in a case like this is because something has already been written to the response. For example,
    if the response state was set, if a writer was retrieved, etc.
    Look for these and see if one of them is the problem.

  • Fast forward problems with Zen Touch (1.01.03 AND PlayForSu

    Device: Zen Touch
    Firmware: .0.03
    Some files cause fast forward problems. Suppose I fast forward to the end of the song. Then I reach the - 00:00.00 marker. HOWEVER, the song goes on and on. It doesn't stop, even if it should (these files aren't corrupt, they work properly on my pc). For e.g. this file causes problems: http://www.hollywoodsaloon.com/podcast/THS-ep9.mp3 and this file http://meandawg.com/audio/MDTop5_0002.mp3.
    Anyone know if this is a common problem, and can I fix this by installing the playforsure firmware?Message Edited by Nicos on 07-27-200703:42 AM
    Message Edited by Nicos on 07-27-200703:43 AM
    Message Edited by Nicos on 07-27-200703:43 AM
    Message Edited by Nicos on 07-27-200707:22 AM

    I just upgraded the firmware and it didn't help =(
    Is there anyone who has the same problem? Maybe someone of you can download these files and try to ffwd to the end with a Zen Touch.Message Edited by Nicos on 07-27-200707:44 AM
    Message Edited by Nicos on 07-27-200708:00 AM

  • Fast forward problem in iTunes 6.0.1.3

    Hello
    I am using iTunes 6.0.1.3 on Windows XP Pro.
    The situation is this. I have a song that is 7:30 long. When I play it normally it works just fine. However when I use the fast forward and advance to time mark 6:45 and start playing it is actually playing the part of the song that is at 6:00 (within a second or two), I let it go ahead and play and when it gets to 7:30 it just stops and jumps to the top of the menu tree (both it iTunes and on my ipod (40 gig 4g).
    I have tried the fast forwarding in Music Match and Adobe Audition and it works just fine. I have tested the mp3 file with all the editors and players I have and it works great.
    It appears there is some type of synch issue with fast forward and I don't really know where to start.
    Any help would be appreciated.
    Thank You.
    Sony VGC RA810G   Windows XP Pro  

    Well, I've noticed this problem at work (while using my work laptop on a network with other users -- some who have iTunes 5 and some iTunes 6) and at home (using a completely different laptop).
    At first I thought it was a configuration problem on my work laptop, but now I'm thinking it has something to do with iTunes itself.
    The weird thing is: People at work who use iTunes 5.0 can see the shared drives without a problem. Those with 6.0 cannot. So this problem is replicating itself in two completely different environments -- leading me to believe it's something in iTunes 6. Hmm....
    Dell Inspiron 9100 Windows XP

  • I will Paypal you $100 if you can resolve this Port Forward problem

    Believe me when I tell you, If you are the person who fixes this problem, I will GLADLY Paypal you $100.
    This is so unbelievable. Short story is, after 12 hours of paid support through Support RIX, 6 hours with TWC support, and 4  different modems there isn't a single person in these groups that can get ports forwarded on my Linksys E4200 router.
    I am running a fresh copy of windows 7 with all updates and no anti virus installed. I purchased a Motorola ARRIS SURFboard modem 200 series DOCSIS 3.0 so I have no double router issues. Before I was using the TWC moden/routers in bridge mode.
    I have no problem setting a static IP or configuring port forwarding. It doesn't matter if I have windows firewall on or off. I can't get an outside port checking website that can verify an open port.
    I am trying to play Battlefield 4 using the port forwarding request they provide.
    If I run a local port check program on my computer it will confirm the ports open. Ok, Fair enough. They tell me the outside port checking utilities will say the port is closed unless I am running the program that uses these open ports.
    SO I run the game and check and it always says port closed. One of the ports I want to open is 80. It has to be open to get internet anyway but it still shows closed using the online port checking websites. 
    I connected the computer to the modem. No router. I keep getting ports closed or filtered when I check through 6 different port checking sites. Leads me to think their is some kind of block in the ethernet card software.
    Its a Realtek PCIe GBE Family controller with a driver date of 8/26/2014. Latest one I could find.
    I think its an ethernet card filter. Just my thoughts. Here is the current adapter card settings.
    Advanced settings on Ethernet card
    Auto Disable Gigabit/ Disabled
    Flow Control/ RX & TX Enabled
    Green Ethernet/ Enabled
    Interrupt Moderation/ Enabled
    IPv4 Checksum Offload/ RX & TX Enabled
    Jumbo Frame/ Disabled
    Large send Offload v2 (IPv4)/ Enabled
    Large Send Offload v2 (IPv6)/ Enabled
    Network address/ You can check the box for Value and add one. Currently its checked to Not present
    Priority & VLAN/ Enabled
    Receive buffers/ 512
    Receive Side Scaling/ Enabled
    Shutdown Wake-on-Lan Enabled
    Speed and duplex/ Auto Negotiation
    TCP Checksum Offload (IPv4)/ RX & TX Enabled
    ''''''''''''''''''''''''''''''''''''''(IPv6)/ RX & TX Enabled
    Transmit buffers/ 128
    UDP Checksum Offload (IPv4) RX & TX Enabled
    '''''''''''''''''''''''''''''''''''''''(IPv6) RX & TX Enabled
    Wake on Magic Packet/ Enabled
    Wake on Pattern match/ Enabled
    WOL & Shutdown Link Speed/ 10 Mbps First
    I used a port tester downloaded from PCWinTech.com v3.0.0. It says the ports are open. When I close port 80 it says port 80 is closed. My problem is nothing outside my network can confirm an open port. It always states port closed.
    The game I am playing is Battlefield-4. I have played all of the campigns without any problem but once online it crashes. The BF-4 community says I need to open 5 single ports and 5 port ranges. This is what I am trying to do.
    We have tried an ARRIS router modem, a Ubee router modem (both in bridge mode) and are now using a motorola modem. All with the same problem. We checked the ports during game play and they all say closed.
    I will post pictures of my current router settings.

    What model router do you have?
    What Firmware version is currently loaded?
    What region are you located?
    What is your current model ISP modem your using now? 
    What ISP Modem service link speeds UP and Down do you have?
    Check cable between Modem and Router, swap out to be sure. Link>http://en.wikipedia.org/wiki/CAT6 is recommended.
    Check ISP MTU requirements, Cable is usually 1500, DSL is around 1492 down to 1472. Call the ISP and ask.
    http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=88e63d78588142e6bb68e22d7faf2046_Configuring_the_M...
    Router and Wired Configurations
    Setup DHCP reserved IP addresses for all devices ON the router. This ensures each devices gets its own IP address when turned on and connected, eliminates IP address conflicts and helps in troubleshooting and maintain consistency for applications that need to connect as well as mapped drives.
    Ensure devices are set to auto obtain an IP address.
    If http://en.wikipedia.org/wiki/Ipv6 is an option on the router, select Local Connection Only.
    If you set up port forwarding, disable uPnP and test. 
    When you check for port status, you have to be actively using the port before you scan check as you may get a false negative if your not using the port. If your using the port then check the status, you should get an accurate result. 
    I would try using Port Range Triggering instead of PF and set up the port as follows for your PC that your gaming with:
    0 thru 65535. A bit less hassle to set up then all those different port rules. 
    PC 3rd Party Security Software Configurations
    Turn off all anti virus and firewall programs on PC while testing. 3rd party firewalls are not generally needed when using routers as they are effective on blocking malicious inbound traffic.
    Turn off all devices accept for one wired LAN PC while testing.
    Disable any downloading client software managers, i.e. Torrents or similar.

  • Balance Carry-Forward Problem for Subledger Accounts

    Hi Experts,
    We are doing the Balance Carry-Forward this Year 2012 and we are having problems with the amount to be carry-over of AP/AR Subledgers for this year. We checked the C/F Balance for G/L and there are no problems.
    When I go to tables KNC1 or LFC1, I see items for both years 2011 and 2012 with a Balance Carry-over value. So during my Balance-Carry Over calculation during debug, it gets the value in KNC1 or LFC1 for 2011 then subtracted with the value in KNC1 or LFC1 in 2012. Why is this happening? Supposedly the 2012 entry on KNC1 or LFC1 should not exist yet right?
    Also the entry on 2012 C/F Balance should only be under the 2011 Posting as the Document Entry has the Posting Period 12 2011. Right now the Posted Entry is in C/F Balance 2011 and 2012 as well. Is this how the Balance C/F Posting works?
    Please enlighten me on how SAP works on this one.
    Thank you so much!

    Hi,
    Why you need to do debugging for F.07?
    If you have inconsistancy in your opening bal and closing balances, you can anyhow run the carryforward program again sequentially for 2010, 2011...for GL/AR/AP
    Now check closing balance for FY 2011 and compare the same with opening bal of FY 2012.
    Regards,
    Srinu

  • Forward problem

              Hello,
              I tried to use RequestDispatcher to dispatch a request to another ressource (HTML
              pages) in the following code:
              public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException,
              IOException {
              String trx_id = req.getParameter("transaction_id");
              ServletContext sc;
              if ((trx_id == null) || (trx_id.equals(""))) {
              sc = getServletConfig().getServletContext();
              RequestDispatcher rd = sc.getRequestDispatcher ("/transErrorPage.html");
              rd.forward(req, res);
              else {
              sc = getServletConfig().getServletContext();
              RequestDispatcher rd = sc.getRequestDispatcher("/loginPage.html");
                             rd.forward(req, res);
              The html pages are placed in the directory: /weblogic/myserver/public_html
              And I'm using weblogic 5.1
              The error I got is:
              java.lang.NoSuchMethodError: javax.servlet.ServletResponse: method isCommitted()Z
              not found
              Any help, I would appreciate.
              Thanks a lot.
              

    Remove j2ee.jar from your classpath.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              +1.617.623.5782
              WebLogic Consulting Available
              "B. Fattouh" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hello,
              >
              > I tried to use RequestDispatcher to dispatch a request to another
              ressource (HTML
              > pages) in the following code:
              >
              > public void doGet(HttpServletRequest req, HttpServletResponse res) throws
              ServletException,
              > IOException {
              > String trx_id = req.getParameter("transaction_id");
              > ServletContext sc;
              > if ((trx_id == null) || (trx_id.equals(""))) {
              > sc = getServletConfig().getServletContext();
              > RequestDispatcher rd = sc.getRequestDispatcher
              ("/transErrorPage.html");
              > rd.forward(req, res);
              > }
              > else {
              > sc = getServletConfig().getServletContext();
              > RequestDispatcher rd =
              sc.getRequestDispatcher("/loginPage.html");
              > rd.forward(req, res);
              > }
              > }
              >
              > The html pages are placed in the directory: /weblogic/myserver/public_html
              >
              > And I'm using weblogic 5.1
              >
              > The error I got is:
              > java.lang.NoSuchMethodError: javax.servlet.ServletResponse: method
              isCommitted()Z
              > not found
              >
              > Any help, I would appreciate.
              > Thanks a lot.
              

  • Leave Balance Carry forward problem

    Hello experts,
    Actually i found many threads which alredy posted but could not able to found solution for my scenario.
    we are having PCRs and doing Time evaluation in negative time mangement for carry forwarding quota balance, and Balances are forwarding to next year properly.
    But problem is, last year balance should be set by that remain amount and balance is transfered to next year.
    e.g.  if i have Entitilement as 53 and used 17 for the year 2010. now am doing time evaluation to transfer the remain balance that is 36 to next year, and its carry forwarding to 2011 is ok. Now i want that Entitlement 53 for 2010 will set to 17 also. So, the system will carry forward the balance as well as that balance is deducted from previous enttilement also, in short how much is transfered that much deducted from previous entitlement.
    So, i need to change that PCR.
    Note:This requirement is suggested because, there was a problem when we do leave encashment using infotype 0416, it will deduct the quota compansation amount from proper year with available quota.
    Please help me..
    -Jagdish
    Edited by: Jagdish Rakholiya on Dec 28, 2011 11:55 AM

    Jagadish,
    in short how much is transfered that much deducted from previous entitlement.
    it means you want to transfer the used leaves number to next year. is it?
    its so confusing please elaborate simply.
    regards,
    mohammed

  • Balance carry forward problem in Global company currency -USD (FS10)

    Dear Experts,
    We are facing the problem in balance carry forward since 2008 to 2011
    We are maintaing two curriencies for one company code like  1.Loc.currency(SGD), 2.Global company currency(USD) 
    But system is carry forwarded 1.Loc.currency(SGD) correctly but problem is in Global company currency(USD)
    System is not correctly forwarded Global company currency(USD) it is forwarding different amounts in USD
    Like Global company currency(USD)  2008 carry forwarded amount : 45,890.64  (Account balance: 27,105.00-)
    It shows Balance carried forward on: 2009 : 30,765.29-   (Account balance : 45,867.87-)
    It shows Balance carried forward on: 2010 : 32,814.91-  (Account balance : 34,157.89-)
    It shows Balance carried forward on: 2011: 124.75-      (on 2010 Fiscal year system is picking only on March)  
    Pls help
    Regards,
    Hari Prasad

    Dear Murali,
    We are not using ECC-6 we are using 4.6B
    Pls give the resolution based this 4.6B
    Regards,
    Hari

  • Mail.app forward problem

    Hello,
    i am experiencing a problem with mail.app
    I have installed two email pop account which are working normally.
    The problem is that. When trying to forward messages with ppictures or attachments (normal size) the messages stuck in outbox, the activity panel shows "done 100%" constantly but the messages is not being send. After a while you an option window to select other smtp server but the problem remains the same. If you try to send any message by "new mail" option then message is being send normally.
    This is weird and annoying and i can not resolve it.
    System has all the latest updates (10.6.2) and is a brand new iMac.
    Please kindly advice.
    Thank you for your attention.
    Message was edited by: Freebulkers

    Freebulkers wrote:
    Will this affect messages that i have for my accounts??
    No
    Will this erase them??
    No
    Will this action turn mail.app like starting for first time?
    No
    Should i backup anything??
    If you have a backup, use it first. Otherwise the answer is that you should always have a backup
    All you might lose is your account server/logins, any personal settings for the tool bar, color settings etc. It won't affect your messages. I've had to do this before and it's a typical method because the plist is the expected casualty point when something like this happens. The next time you run MAIL it will build a fresh plist and then you can make any specific changes that are needed. In terms of troubleshooting, it is one of the more risk free methods around.
    If you want to be safe, simply move that file to the desktop long enough to test.
    • If it doesn't help or if you think it makes something worse, trash the temporary replacement and then put the original back.
    • If it fixes the issue, then you can trash it.
    If you are at all reluctant, don't do it.

  • Servlet forward problem

    Hi
    I have a servlet which is forwarded to JSP file.The JSP got content type as XML.But it gives error like "System cannot understand the specified encoding".but when i takeout the content type its works fine.
    can anyone give some ideas pls?

    Hi
    I am getting the following error
    System does not support the specified encoding. Error processing resource
    from servlet i am doing following
    res.setContentType("text/xml");
              RequestDispatcher dispatch = getServletContext().getRequestDispatcher("/test/STWDesign/View.jsp");
    where in the view.jsp i am displaying xml data.
    thanks for you help
    waiting for reply.

  • Jsp forward problem, I think.....

    I have a default.htm page that takes in a feild, EMP_NUM. Once the user
              hits the Submit button, I run a select statement(select.jsp) to see if that
              number exists. If it does then I forward the contents to correct.jsp, if the
              number doesn't exist then I forward to failed.jsp.
              Today is Tuesday, and last Friday I was working on this and everything
              worked fine, in fact perfect. I came in this morning to do some more
              testing, specifically catching errors in my try and catch, example - to make
              sure they enter in a number, and after I type in a number and hit the submit
              button, it trys to go to the next page, but displays nothing, the page is
              blank. Where has before, when everything was working fine on Friday, my
              correct.jsp page or my failed.jsp page would be displayed.
              From Friday to Tuesday I had not made any changes to my files. The only
              thing different, that I can think of, would be that on Friday I would have
              stoppped weblogic and this morning I started weblogic again. This is why I
              think this is a weblogic issue or syntax on my part. I have tried to restart
              my computer, restart weblogic, and I even deleted the .java files that
              weblogic creates and places in the weblogic/myserver/classfiles/jsp_servlets
              folder.
              Below is my source code.
              Please help!
              Thanks, jl.
              <% try {
              <%@ include file = "db_conn.jsp"%>
              <%
              // A Statement object is what sends your SQL statement to the db
              Statement stmt = conn.createStatement();
              // Retrieve the user id number from the previous form.
              int EMP_NUM = Integer.parseInt(request.getParameter("EMP_NUM"));
              //SQL prepared statement
              String selectEMP_NUM = "SELECT NAME, COMPANY_KEY FROM WTS_PROFILE WHERE
              EMP_NUM=?";
              PreparedStatement psEMP_NUM = conn.prepareStatement(selectEMP_NUM);
              psEMP_NUM.setInt(1, EMP_NUM);
              ResultSet rsEMP_NUM = psEMP_NUM.executeQuery();
              String NAME = "";
              int CompanyKey = 0;
              while (rsEMP_NUM.next()) {
              NAME = rsEMP_NUM.getString("NAME");
              CompanyKey = rsEMP_NUM.getInt("COMPANY_KEY");
              }// end of while
              psEMP_NUM.clearParameters();
              psEMP_NUM.close();
              conn.close();
              String sEMP_NUM = Integer.toString(EMP_NUM);
              String sCompanyKey = Integer.toString(CompanyKey);
              if (NAME.equals("")) {
              request.setAttribute("EMP_NUM", sEMP_NUM);%>
              <jsp:forward page="failed.jsp">
              <% }// end of if
              else {
              request.setAttribute("NAME", NAME);
              request.setAttribute("EMP_NUM", sEMP_NUM);
              request.setAttribute("CompanyKey", sCompanyKey);%>
              <jsp:forward page="creditcard.jsp">
              <% }// end of else
              }// end of try1
              catch(Exception e) {
              <% if(e.toString().equals("java.lang.NumberFormatException: ")) { %>
              <font face="Arial" size="2" color="red"><center><strong>Please enter in a
              EMPLOYEE ID NUMBER.<br><br></strong></font></CENTER>
              <%}// end of if
              %>
              </TD></TR></TABLE></DIV>
              <font color="red">"<%=e.toString()%>"</font>
              <%
              }// end of catch1
              %>
              

              Sounds like you have some debugging to do. If you didn't reinstall WLS and it worked fine before,
              then I doubt it is a WLS problem.
              Is your page really blank? Try show source in your browser? I think you have some mismatched
              <table> </table>. Try it in both IE and Netscape - one of them forgives you for mismatched table
              tags.
              Add some System.out.println() in your code to see what is being executed.
              "james lorenzen" <[email protected]> wrote:
              > I have a default.htm page that takes in a feild, EMP_NUM. Once the user
              >hits the Submit button, I run a select statement(select.jsp) to see if that
              >number exists. If it does then I forward the contents to correct.jsp, if the
              >number doesn't exist then I forward to failed.jsp.
              > Today is Tuesday, and last Friday I was working on this and everything
              >worked fine, in fact perfect. I came in this morning to do some more
              >testing, specifically catching errors in my try and catch, example - to make
              >sure they enter in a number, and after I type in a number and hit the submit
              >button, it trys to go to the next page, but displays nothing, the page is
              >blank. Where has before, when everything was working fine on Friday, my
              >correct.jsp page or my failed.jsp page would be displayed.
              > From Friday to Tuesday I had not made any changes to my files. The only
              >thing different, that I can think of, would be that on Friday I would have
              >stoppped weblogic and this morning I started weblogic again. This is why I
              >think this is a weblogic issue or syntax on my part. I have tried to restart
              >my computer, restart weblogic, and I even deleted the .java files that
              >weblogic creates and places in the weblogic/myserver/classfiles/jsp_servlets
              >folder.
              >
              >Below is my source code.
              >Please help!
              >Thanks, jl.
              >
              ><% try {
              > <%@ include file = "db_conn.jsp"%>
              ><%
              > // A Statement object is what sends your SQL statement to the db
              > Statement stmt = conn.createStatement();
              >
              > // Retrieve the user id number from the previous form.
              > int EMP_NUM = Integer.parseInt(request.getParameter("EMP_NUM"));
              >
              > //SQL prepared statement
              > String selectEMP_NUM = "SELECT NAME, COMPANY_KEY FROM WTS_PROFILE WHERE
              >EMP_NUM=?";
              > PreparedStatement psEMP_NUM = conn.prepareStatement(selectEMP_NUM);
              > psEMP_NUM.setInt(1, EMP_NUM);
              >
              > ResultSet rsEMP_NUM = psEMP_NUM.executeQuery();
              >
              > String NAME = "";
              > int CompanyKey = 0;
              > while (rsEMP_NUM.next()) {
              > NAME = rsEMP_NUM.getString("NAME");
              > CompanyKey = rsEMP_NUM.getInt("COMPANY_KEY");
              > }// end of while
              >
              > psEMP_NUM.clearParameters();
              > psEMP_NUM.close();
              > conn.close();
              >
              > String sEMP_NUM = Integer.toString(EMP_NUM);
              > String sCompanyKey = Integer.toString(CompanyKey);
              > if (NAME.equals("")) {
              > request.setAttribute("EMP_NUM", sEMP_NUM);%>
              > <jsp:forward page="failed.jsp">
              ><% }// end of if
              > else {
              > request.setAttribute("NAME", NAME);
              > request.setAttribute("EMP_NUM", sEMP_NUM);
              > request.setAttribute("CompanyKey", sCompanyKey);%>
              > <jsp:forward page="creditcard.jsp">
              ><% }// end of else
              >}// end of try1
              >catch(Exception e) {
              ><% if(e.toString().equals("java.lang.NumberFormatException: ")) { %>
              > <font face="Arial" size="2" color="red"><center><strong>Please enter in a
              >EMPLOYEE ID NUMBER.<br><br></strong></font></CENTER>
              ><%}// end of if
              >%>
              > </TD></TR></TABLE></DIV>
              > <font color="red">"<%=e.toString()%>"</font>
              ><%
              >}// end of catch1
              >%>
              >
              >
              

  • Work Item forwarding problem

    Hi All,
    Right now we have a interesting workflow problem. we applied support pack in the month of September after that forwarded work items are getting disppered from the users inbox
    If user A forwarded the work item to User B he is getting it, But it is getting disappered after midnight, It is happening to all the forwarded work items. It didn't happen before the support pack
    If anyone come across the problem please tell me what to do?
    Thanks in advance,
    Rishik.

    Hi all,
    I have same problem. I think there is Job in the background which doing such a refresh and the forwarded work items can't be seen in the inbox. even when I  try to refresh the organizational environment or call swu_obuf the work items are still disappeared.
    have you already found a successful solution for this problem?
    many thx!

  • IP forwarding problem

    Hi all,
    We're having problems getting IP forwarding working in OS X 10.7. What were trying to do is using a Mac Pro with two interfaces getting to act as a router between the two connected networks.
    Setup:
    Network A 192.168.1.0/24
    Network B 192.168.2.0/24
    Mac Pro with en0 in Network A and en1 in Network B
    macpro$ ifconfig en0
    en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
              options=b<RXCSUM,TXCSUM,VLAN_HWTAGGING>
              ether 00:25:00:ef:13:77
              inet6 fe80::225:ff:feef:1377%en0 prefixlen 64 scopeid 0x4
              inet 192.168.1.222 netmask 0xffffff00 broadcast 192.168.1.255
              media: autoselect (100baseTX <full-duplex,flow-control>)
              status: active
    macpro$ ifconfig en1
    en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
              options=b<RXCSUM,TXCSUM,VLAN_HWTAGGING>
              ether 00:25:00:ef:28:32
              inet6 fe80::225:ff:feef:2832%en1 prefixlen 64 scopeid 0x5
              inet 192.168.2.2 netmask 0xffffff00 broadcast 192.168.2.255
              media: autoselect (100baseTX <full-duplex,flow-control>)
              status: active
    IP forwarding enabled:
    macpro$ sysctl net.inet.ip.forwarding
    net.inet.ip.forwarding: 1
    Route added on client in network B:
    sudo route add 192.168.1.0 192.168.2.2 255.255.255.0
    Pinging an IP in network A from client in network B (not working):
    client$ ping 192.168.1.200
    PING 192.168.1.200 (192.168.1.200): 56 data bytes
    Request timeout for icmp_seq 0
    Request timeout for icmp_seq 1
    Routing table on client in network B:
    Destination        Gateway            Flags        Refs      Use   Netif Expire
    default            192.168.2.1        UGSc           26        0     en0
    127                127.0.0.1          UCS             0        0     lo0
    127.0.0.1          127.0.0.1          UH              5   133568     lo0
    169.254            link#4             UCS             0        0     en0
    192.168.1        192.168.2.2      UGSc          0       25   en0
    192.168.2          link#4             UCS             5        0     en0
    192.168.2.1        c8:6c:87:73:57:dd  UHLWIir        27       50     en0   1179
    192.168.2.2        0:25:0:ef:28:32    UHLWIi          5     3069     en0    790
    192.168.2.101      7c:c5:37:e:2:66    UHLWIi          0        0     en0    333
    192.168.2.102      127.0.0.1          UHS             0        0     lo0
    192.168.2.106      f8:1e:df:86:dd:2   UHLWIi          0        2     en0   1024
    192.168.2.255      ff:ff:ff:ff:ff:ff  UHLWbI          0        6     en0
    Are we missing something? How could this be debugged?
    Thanks for any help!

    Yes, but the internet uplink is on network B in our case, so it does not really fit.

Maybe you are looking for

  • HP Envy 5530 - computer won't recognize that the printer is on the same network

    Product Name: HP ENVY 5530 OS: Windows 8.1 No changes made to system before issue occured I bought this wireless printer last week (5-13-14). I have a working printer that was connected to my husband's work laptop via USB cable, but needed one to con

  • How to prorate mid month emp termination

    hey all, i have some employees that are being terminated as of 15th Jan 2009 some as of 20th Jan 2009. How can one handle such situations in the basic salary calculation formulas in payroll. all your comments are welcomed!

  • Old expansion pack loops won't show up

    Installing the new Garageband has been nothing but a headache. My main problem if that I can't get loops from older expansion packs to show up. I believe I've located my current new loops library and they're all .caf files while my old ones are .aif

  • Custom Formatting

    I am creating a form that requires the recipient to enter the first five digits of their SSN. I would like the out come to look like this 123-45-XXXX. How do I go about doing this?

  • Upgrade: PI 7.0 to PI 7.1

    Hi Gurus, We are running with PI 7.0 on Windows 2003 along with MS SQL Server 2005, now are planning to upgrade to PI 7.1 on both MS Windows 2003 & MS SQL Server 2005. I request you all to help me with any good reference Upgrade document and referenc