Amavisd.conf forward method

greetings
i am using amavis to forward to an internal relay.
$forward_method = 'smtp:10.10.10.1'
I have recently setup 2 new smtp relays running SSL only port 465
i have setup round robin DNS names
can i use a this config ?
$forward_method = 'smtp:smtp.example.com:465'
or do I have to use an IP address ?

okay,.. solved problem. ( well work around )
posting this for the good of the community.
to keep the ssl available for clients and accept relay from my amavis host I had to create another port on the smtp relays to accept incoming mail without ssl.
on amavisd host:
amavis.conf
$forward_method = 'smtp:smtp.example.com:2525';
smtp1
master.cf
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
2525 inet n - n - - smtpd
-o mynetworks=10.10.1.6
-o smtpdclient_restrictions=permitmynetworks,reject
-o smtpdenforcetls=no
-o smtpdsasl_authenable=no
smtp2
master.cf
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
2525 inet n - n - - smtpd
-o mynetworks=10.10.1.6
-o smtpdclient_restrictions=permitmynetworks,reject
-o smtpdenforcetls=no
-o smtpdsasl_authenable=no
where 10.10.1.6 is the address of the amavisd host.
then create a DNS record for SMTP1 & SMTP2
work great

Similar Messages

  • How to use RequestDispatcher.forward method  in a portlet

    I have a servlet (HelloServlet2) that acts as the controller. This is a very simplified example. This servlet calls the dispatcher.foward(req, res) method to foward to a JSP page for displaying. At this point I get a FileNotFoundException. The HelloServlet2 is in the standard location WEB-INF/classes/com/a2i/industrial/servlet/HelloServlet2.java.
    How come it's looking in Industrial/servlet/HelloServlet2 instead of Industrial/WEB-INF/classes/..? If I access the servlet by http://host:port/Industrial/HelloServlet2, it works fine. I have another portlet (servlet) that doesn't call the forward method and it works fine too. Thanks for your help.
    Here is the web.xml:
    <servlet>
    <servlet-name>HelloServlet2</servlet-name>
    <display-name>HelloServlet2</display-name>
    <servlet-class>com.a2i.industrial.servlet.HelloServlet2</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloServlet2</servlet-name>
    <url-pattern>/HelloServlet2/*</url-pattern>
    </servlet-mapping>
    Here is the calling code from HelloServlet2:
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    RequestDispatcher dispatcher= getServletContext().getRequestDispatcher("/hello.jsp");
    dispatcher.forward(req, res);
    Here is the portlet definition:
    <portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
    <id>2</id>
    <name>HelloServlet2</name>
    <title>Hello Servlet2</title>
    <shortTitle>Hello Servlet2</shortTitle>
    <description>This is the "hello world" sample implemented using Java Servlets and the extensible renderer architecture.</description>
    <timeout>10000</timeout>
    <timeoutMessage>Hello Servlet timed out</timeoutMessage>
    <acceptContentType>text/html</acceptContentType>
    <renderer class="oracle.portal.provider.v2.render.RenderManager">
    <contentType>text/html</contentType>
    <autoRedirect>true</autoRedirect>
    <showPage>/servlet/HelloServlet2</showPage>
    </renderer>
    </portlet>
    Here is the stack trace:
    7/15/03 10:43 AM industrial: JspServlet: unable to dispatch to requested page: java.io.FileNotFoundException: C:\ora9iasp\j2ee\OC4J_Portal\applications\_industrial\industrial\servlet\HelloServlet2 (The system cannot find the path specified)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:64)
         at oracle.jsp.provider.JspFilesystemResource.fromStream(JspFilesystemResource.java:153)
         at oracle.jsp.provider.JspFilesystemResource.fromReader(JspFilesystemResource.java:169)
         at oracle.jsp.runtimev2.JspPageCompiler.fromReader(JspPageCompiler.java:345)
         at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:250)
         at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:171)
         at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:338)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:481)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:219)
         at com.a2i.industrial.servlet.HelloServlet2.doGet(HelloServlet2.java:21)
         at com.a2i.industrial.servlet.HelloServlet2.doPost(HelloServlet2.java:14)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:283)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:108)
         at oracle.portal.provider.v2.render.http.ResourceRenderer.renderBody(Unknown Source)
         at oracle.portal.provider.v2.render.RenderManager.render(Unknown Source)
         at oracle.portal.provider.v2.DefaultPortletInstance.render(Unknown Source)
         at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showPortlet(Unknown Source)
         at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source)
         at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    7/15/03 10:43 AM industrial: ERROR: ResourceRenderer.renderBody - Resource "/servlet/HelloServlet2" returned HTTP Status: 404. Error message: OracleJSP:
    java.io.FileNotFoundException: C:\ora9iasp\j2ee\OC4J_Portal\applications\_industrial\industrial\servlet\HelloServlet2 (The system cannot find the path specified). Content returned follows....

    Thanks for you help David. I changed my code from getServletContext().getRequestDispatcher(jspPage).forward(req, res) to getServletContext().getNamedDispatcher(jspPage).forward(req, res). It worked but I run into the same problem with jsp:include.
    I am using the July 2003 of the PDK. I followed the direction for installing version 2 but I did not redeploy with the new jpdk.ear since one was already deployed. After redeploying with the new jpdk.ear, it fixed the jsp:include problem I was having. The problem with using getServletContext().getRequestDispatcher(jspPage).forward(req, res) STILL exist. I am not sure what the deal is.
    Oh, I also tried the code below and it doesn't work.
    path = req.getContextPath() + jspPage
    getServletContext().getRequestDispatcher(path).forward(req, res)
    In any case, using getNamedDispatcher() is working fine. I am still curious about getRequestDispatcher() though.

  • Which socket to use in amavisd.conf for clamav??

    Hi!
    I just updated clamav and amavisd with the help of Alex' excellent tutorials.
    Everything worked as expected, mails also get received, but regarding the logfiles there is an error with the clamav socket in the amavisd.conf file.
    Jul 28 09:41:20 knserver amavis[28447]: (28447-01) (!)ClamAV-clamd: Can't connect to UNIX socket /var/clamav/clamd.sock: Connection refused, retrying (2)
    Jul 28 09:41:26 knserver amavis[28447]: (28447-01) (!)run_av (ClamAV-clamd, built-in i/f): Too many retries to talk to /var/clamav/clamd.sock (Can't connect to UNIX socket /var/clamav/clamd.sock: Connection refused) at (eval 43) line 310.
    Jul 28 09:41:26 knserver amavis[28447]: (28447-01) (!!)ClamAV-clamd av-scanner FAILED: CODE(0x1801470) Too many retries to talk to /var/clamav/clamd.sock (Can't connect to UNIX socket /var/clamav/clamd.sock: Connection refused) at (eval 43) line 310. at (eval 43) line 511.
    I looked in the original amavisd.conf file, there has been the same entry!
    What to do?

    I once again read the whole tutorial. I also tried the tip with switching from clamscan to clamd. So I replaced the the socket entry "/var/clamav/clamd.sock" with "/tmp/clamd". Sadly I still get the same errors. Of course I also tried "/var/amavis/clamd" with no luck...
    Rebooting has been done, reloading the processes with the launchctl tool also.
    Jul 28 11:22:55 knserver amavis[285]: (00285-02) (!)ClamAV-clamd: Can't connect to UNIX socket /tmp/clamd: No such file or directory, retrying (2)
    Jul 28 11:23:01 knserver amavis[285]: (00285-02) (!)run_av (ClamAV-clamd, built-in i/f): Too many retries to talk to /tmp/clamd (Can't connect to UNIX socket /tmp/clamd: No such file or directory) at (eval 43) line 310.
    Jul 28 11:23:01 knserver amavis[285]: (00285-02) (!!)ClamAV-clamd av-scanner FAILED: CODE(0x1801470) Too many retries to talk to /tmp/clamd (Can't connect to UNIX socket /tmp/clamd: No such file or directory) at (eval 43) line 310. at (eval 43) line 511.
    Jul 28 11:23:01 knserver amavis[285]: (00285-02) (!!)WARN: all primary virus scanners failed, considering backups
    Please help! Thx.

  • Problem with forward method of jsp

    am having problem with the requestDispatcher.forward method in my jsp + wml , the forward method gets executed but the new page is not displayed in the wap browser,
    code snippet
    small.jsp
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
    <%@ page language="java" %>
    <%@ page contentType="text/vnd.wap.wml; charset=UTF-8" %>
    <%@ page import="java.lang.*,java.io.*,java.util.*,java.util.Vector,java.util.Properties "%>
    <%
    System.out.println("in small");
    RequestDispatcher rd = request.getRequestDispatcher("small1.jsp");
    rd.forward(request,response);
    %>
    small1.jsp
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
    <%@ page language="java" autoFlush="false"%>
    <%@ page contentType="text/vnd.wap.wml; charset=UTF-8" %>
    <%@ page import="java.net.*,java.lang.*,java.io.*,java.util.*,java.util.Vector,java.util .Properties"%>
    <%
    String sm = "small1";
    System.out.println("in small1");
    %>
    <wml>
    <card id="two">
    <p>
    <small><%=sm%></small>
    </p>
    </card>
    </wml>
    i get the following output in the log
    in small
    in small1
    but i dont get to see the small1.jsp' content , also the response.sendRedirect method works fine ,,
    pls give me the soln
    Thnk u in advance

    thank u very for the repl this is the message which i get in the nokia wap browser...
    cannot load small1.jsp(HTTP Error 500 Server Error)
    and i use IBM WebSphere as the web server....
    and i have found that using response.reset in the small2.jsp overcomes this problem but the card title and the anchor tag is not displayed !!!!
    what could be this problem?

  • Amavisd.conf vs. X-Spam-Status

    Hello, all--
    I'm seeing lots of spam come through with a 'negative' score
    (X-Spam-Status: No, hits=-5.541, for example.)
    I have amavisd.conf configured to tag at 1.4 and kill at 5.
    1.4 seems quite aggressive, and I wouldn't feel comfortable going much lower. How is spam going to get caught when most of it is scoring way under 1.4---way under zero, for that matter? Any tips/insights greatly appreciated.
    BTW, I am training SA nightly, using spamtrainer.
    Thanks very much--
    Xserve   Mac OS X (10.4.8)  

    Hi Pterobyte--
    The symlink issue is fixed, and I'm not using virtual domains. Here are some headers:
    Return-Path: <[email protected]>
    Received: from murder ([unix socket])
    by ourdomain.com (Cyrus v2.2.12-OS X 10.4.8) with LMTPA;
    Sat, 30 Dec 2006 13:15:08 -0800
    X-Sieve: CMU Sieve 2.2
    Received: from localhost (localhost [127.0.0.1])
    by mail.ourdomain.com (Postfix) with ESMTP id 82DB1A2DA15;
    Sat, 30 Dec 2006 13:15:08 -0800 (PST)
    Received: from mail.ourdomain.com ([127.0.0.1])
    by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
    id 08580-01; Sat, 30 Dec 2006 13:15:00 -0800 (PST)
    Received: from aapu115.neoplus.adsl.tpnet.pl (aapu115.neoplus.adsl.tpnet.pl [83.5.154.115])
    by mail.ourdomain.com (Postfix) with ESMTP id B40E2A2D9ED;
    Sat, 30 Dec 2006 13:14:58 -0800 (PST)
    Received: from 65.254.254.51 (HELO mx.yemenia.com)
    by ourdomain.com with esmtp (AA?,0+/HNBS .3)56.)
    id -A1/A3--,LS-H-=.
    for [email protected]; Sat, 30 Dec 2006 21:16:47 -0060
    Date: Sat, 30 Dec 2006 21:16:47 -0060
    From: "Hallie Coffey" <[email protected]>
    X-Mailer: The Bat! (v3.5) UNREG / CD5BF9353B3B7091
    X-Priority: 3 (Normal)
    Message-ID: <[email protected]>
    To: [email protected]
    Subject: Best prices for you
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="----------2CBD3AE925FF8BD"
    X-Spam: Not detected
    X-Virus-Scanned: by amavisd-new at ourdomain.com
    X-Spam-Status: No, hits=-0.377 tagged_above=-999 required=1.3 tests=BAYES_05,
    HTML4050, HTML_MESSAGE
    X-Spam-Level:
    #########Another Header:###########
    Return-Path: <[email protected]>
    Received: from murder ([unix socket])
    by ourdomain.com (Cyrus v2.2.12-OS X 10.4.8) with LMTPA;
    Mon, 01 Jan 2007 04:50:27 -0800
    X-Sieve: CMU Sieve 2.2
    Received: from localhost (localhost [127.0.0.1])
    by mail.ourdomain.com (Postfix) with ESMTP id 0F5A5A337B9
    for <[email protected]>; Mon, 1 Jan 2007 04:50:27 -0800 (PST)
    Received: from mail.ourdomain.com ([127.0.0.1])
    by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
    id 28204-07 for <[email protected]>;
    Mon, 1 Jan 2007 04:50:19 -0800 (PST)
    Received: from mail.mycommail.com (unknown [58.38.72.51])
    by mail.ourdomain.com (Postfix) with ESMTP id 29157A33798
    for <[email protected]>; Mon, 1 Jan 2007 04:50:16 -0800 (PST)
    Received: from 211.238.198.67 (HELO mail.080flower.com)
    by ourdomain.com with esmtp (FF.7LH,RM1L O/PE,)
    id 6-23/4-C(YT(/-9*
    for [email protected]; Mon, 1 Jan 2007 12:50:31 -0480
    Message-ID: <01c72da3$6be30df0$6c822ecf@flower>
    From: "Kirk Ayala" <[email protected]>
    To: <[email protected]>
    Subject: Ideal Refinance approved
    Date: Mon, 1 Jan 2007 12:50:31 -0480
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="----=NextPart_000_000701C72DE6.7A064DF0"
    X-Priority: 3
    X-MSMail-Priority: Normal
    X-Mailer: Microsoft Outlook Express 5.50.4133.2400
    X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
    X-Virus-Scanned: by amavisd-new at ourdomain.com
    X-Spam-Status: No, hits=-1.625 tagged_above=-999 required=1.3 tests=BAYES_00,
    DATEIN_FUTURE_0306, HTML5060, HTML_MESSAGE, MIMEQP_LONGLINE
    X-Spam-Level:
    #########One More Header:###########
    Return-Path: <[email protected]>
    Received: from murder ([unix socket])
    by ourdomain.com (Cyrus v2.2.12-OS X 10.4.8) with LMTPA;
    Fri, 29 Dec 2006 01:52:03 -0800
    X-Sieve: CMU Sieve 2.2
    Received: from localhost (localhost [127.0.0.1])
    by mail.ourdomain.com (Postfix) with ESMTP id CBCBEA244A3
    for <[email protected]>; Fri, 29 Dec 2006 01:52:03 -0800 (PST)
    Received: from mail.ourdomain.com ([127.0.0.1])
    by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP
    id 03710-09 for <[email protected]>;
    Fri, 29 Dec 2006 01:51:56 -0800 (PST)
    Received: from SpeedTouch.lan (unknown [85.101.255.39])
    by mail.ourdomain.com (Postfix) with ESMTP id 88DACA2447E
    for <[email protected]>; Fri, 29 Dec 2006 01:51:55 -0800 (PST)
    Received: from 213.221.253.152 (HELO spam.redmouse.ch)
    by ourdomain.com with esmtp (SM25),)YX3 M0V)NJ)
    id D+@=(5-4HM@TB-..
    for [email protected]; Fri, 29 Dec 2006 09:51:58 -0120
    From: "Eric White" <[email protected]>
    To: <[email protected]>
    Subject: Get our medications at a special Christmas price.
    Date: Fri, 29 Dec 2006 09:51:58 -0120
    Message-ID: <01c72b2e$fb4a9ed0$6c822ecf@barnolde>
    MIME-Version: 1.0
    Content-Type: multipart/alternative;
    boundary="----=NextPart_000_000601C72B3F.BED36ED0"
    X-Mailer: Microsoft Office Outlook, Build 11.0.6353
    X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
    Thread-Index: Aca6Q>>'23)36GM'./=2,LV-0K@9A.==
    X-Virus-Scanned: by amavisd-new at Our-Server1.local
    X-Spam-Status: No, hits=-2.559 tagged_above=-999 required=1.7 tests=BAYES_00,
    HTML_MESSAGE, MIMEQP_LONGLINE
    X-Spam-Level:
    Thanks for your assistance.
    Xserve   Mac OS X (10.4.8)  
    Xserve   Mac OS X (10.4.8)  

  • How to verify Nexus 3548P forwarding method?

    Greeting!
    Is there a way , or a command to verify the forwarding method of Nexus3548P?
    Thanks in advance.

    What do you mean mean by "forwarding method"?  Could you give some examples?

  • PowerShell-EWS How to use .Forward Method of EmailMessage Class

    Hello, 
    im new to PowerShell and EWS and would like to know how to forward an E-Mail with the .Forward Method of the EmailMessage Class.
    Is it possible to also forward an Email with an FileAttachment?
    I already have access to the Messages i want to forward but i cant figure out how to .Forward these Messages.
    Thank you for your help
    Greetings 
    Ingo

    >> Is it possible to also forward an Email with an FileAttachment?
    Yes doing a normal forward is EWS should maintain the attachment on the message eg the following would forward the last email in the Mailbox
    $folderid= new-object Microsoft.Exchange.WebServices.Data.FolderId([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::Inbox,$MailboxName)
    $Inbox = [Microsoft.Exchange.WebServices.Data.Folder]::Bind($service,$folderid)
    $ivItemView = New-Object Microsoft.Exchange.WebServices.Data.ItemView(1)
    $fiItems = $null
    $fiItems = $service.FindItems($Inbox.Id,$ivItemView)
    $messageBodyPrefix = "This is message that was forwarded by using the EWS Managed API";
    $addresses = New-Object Microsoft.Exchange.WebServices.Data.EmailAddress[] 1
    $addresses[0] = "[email protected]";
    $fiItems.Items[0].Forward($messageBodyPrefix, $addresses);
    If your looking to forward the actual message as an attachment you can use something like
    http://gsexdev.blogspot.com.au/2013/07/forwarding-message-as-attachment-using.html
    Cheers
    Glen

  • L2 and L3 Forwarding Method in the Same WAE

          Hi Everyone,
          Is possible to use simultaneously L2 and L3 Forwarding Method (WCCPv2) in the same WAE.
          I wanna to design a cluster with 2 WAE using the same service group in a DC and I wanna support both the L2 and L3
          Forwarding Method at the same time..
          If yes, is there any link when I can get a documentation showing some example configuration
         Thanks in Advanced,
         My Best Regards,
             Andre Lomonaco

    Hi Andrej,
             If I understand this correctly, then your best option is to use G-GRE (Generic GRE) as egress method, and use GRE redirection and MASK assignment. See an Example below.
    wccp router-list 1 172.16.10.1
    wccp tcp-promiscuous service-pair 61 62 router-list-num 1 mask-assign
    wccp version 2
    egress-method generic-gre intercept-method wccp
    For more details, please follow below CCO URL.
    http://www.cisco.com/en/US/docs/app_ntwk_services/waas/waas/v441/configuration/guide/traffic.html#wp1041742
    Ahsan

  • Trouble with forward() method in a Servlet

    I am new to Servlets and am having trouble with one that queries a database and forwards the data to a JSP. A portion of the code is below (The <i> are really , but are being displayed wrong).
                   for(int i = 0; i < numberOfRows; i++)
                        data2[0] = rs.getString("REIMBUR_DATE");
                        data2[i][1] = occupancyPCT;
                        data2[i][2] = rs.getString("RMBR_RATE_REVENUE");
                        data2[i][3] = rs.getString("RMBR_ROOM_TAX");
                        data2[i][4] = "reimbur total";
                        data2[i][5] = rs.getString("BOOK_RATE_REVENUE");
                        data2[i][6] = rs.getString("BOOK_ROOM_TAX");
                        data2[i][7] = "rebate";
                        data2[i][8] = "tax rebate";
                        rs.next();
                   request.setAttribute("CERT_INFO", data);
                   request.setAttribute("OTHER_INFO", data2);
                   request.setAttribute("NUMBER_ROWS", new Integer(numberOfRows));
                   ServletContext context = getServletContext();
                   RequestDispatcher dispatcher = context.getRequestDispatcher("/certdetails.jsp");
                   dispatcher.forward(request, response);
              catch(Exception ee)
                   PrintWriter out = null;
                   response.setContentType("text/html");
                   out = response.getWriter();
                   out.println("<html>");
                   out.println("<body>");
                   out.println("Exception !!<br>");
                   out.println(ee.getMessage());
                   out.println("</body>");
                   out.println("</html>");
    When I include the line with the forward() method, I get an exception and the message is "1998-08-20", the contents of data2[numberOfRows - 1][0]. I don't know why an exception is being generated or how it is getting this database value as its message. What's going on?

    Nevermind, I found the problem. There was an error in my JSP. I don't know how it affected the Servlet as it did, but...who cares!!

  • TS3456 amavisd.conf - file to change behavior of bounced mail

    I found useful to know that from 10.8 is this file located here: /Library/Server/Mail/Config/amavisd/amavisd.conf and you can modify it in the same way.

    I deleted " /private/var/clamav/daily.inc/daily.mdb" and the other files that were created at the same time. Restarted the machine. Seems this fixed the problem. Somehow this file became corrupted.
    I hope this resolved my problem! I'll watch everything for a few days and see.

  • [URGENT] WCCPv2 + L2 rewrite packet forwarding method.

    Hi All!
    I have few doubts and questions for you people on WCCPv2
    1. Wont routers support L2 rewrite packet forwarding feature?
    2. Is it true that all switches only support L2 rewrite and not GRE? (switch 3550 as an e.g.)
    3. While configuring WCCP, Normally on router side we dont select the mode forwarding method, we only specify this option on cache engines to negotiate the required mode of forwarding( l2-rewrite option on cache engine as an e.g.)
    4. routers 2811 and 3640 routers supports GRE mode of packet forwarding by default, is there a way out to make it do a L2 redirect. Note: i will deploy 2811/3640 not as a cache engine but as a WCCP router redirector.
    5. Let me explain my problem here. I have a 2811 and 3640 router configured(separately) for WCCP. i intend to use L2 rewrite packet forwarding method of WCCPv2 spec, but these routers looks like they only support GRE method. Can anyone suggest a way to enable L2 rewrite feature by either adding some addon hardware or by issuing some commands.
    -Ananth

    L2 redirection takes place on the switch, and is not visible to the Multilayer Switch Feature Card (MSFC). The WCCP L2 PFC redirection feature requires no configuration on the MSFC.

  • Generic forwarding methods with recursive bounds.

    Hello all,
    I'm attempting to create a forwarding class assoicated with an interface. The interface has a generic method with recursive bounds. The problem relates to ambiguous method calls as the following code segment should demonstrate:
    interface TestInterface
        //generic method with recursive bounds. (use of Comparable<T> is
        // not relevant, any generic class/interface could have been used.)
        <T extends Comparable<T>> T testMethod(T bob);
    //Concrete implementation of the TestInterface.
    class TestClass implements TestInterface
        public <T extends Comparable<T>> T testMethod(T bob)
           return bob;
        public static void main(String[] args)
            TestInterface bob = new TestClass();
            bob.testMethod("blah"); //Works fine.
    class ForwardingClass implements TestInterface
        //Forwarding class composed of a TestClass object. All methods forward calls to this object.
        private final TestClass test;
        public ForwardingClass(TestClass test)
            this.test = test;
        //forwarding method.
        public <T extends Comparable<T>> T testMethod(T bob)
            return test.testMethod(bob);   //Ambiguous testMethod call. Both testMethod (T) in TestClass
                                           //and testMethod (T) in TestInterface match. Very annoying...
        }Therefore, if you could assist with the following issues, it would be greatly appreciated.
    Firstly, I don't think I fully understand why this error is given, so any explanation would be greatly appreciated.
    Secondly, is there any way to get around the problem?
    Thanks in advance,
    Matt.

    My bad. This appears to be an issue with Intellij 8.0M1. I'll create post on the Intellij forums. It compiles absolutely fine from the command line, and using Intellij 7.04. (Probably should have checked that before my initial post...)
    Apologies for wasting your time. Cheers for the replies.
    Matt.

  • JSP page and the pageContext.forward() method

    I am running JSP pages on a coldfusion site so that a CF page (i.e. login.cfm) hosts my login.jsp page. I want to reload the JSP page without having to reload the cfm page each time. pageContext.forward() does do this, however, it only forwards on to a new page. I want to be able to reload a page with the new URL parameters (e.g. when there is an error, login.jsp will reload and give the user an error). What is a method to reload the page with the proper URL variables?
    The following code does not work:
    pageContext.forward("login.jsp?operation=user_edit&jsessionid=" + f_URLEncode(session.getId()));
    Because it runs from the login.jsp page (the forward command only goes to a new page)

    Just to clarify...
    I log into your site. The first page shown is the CF page. The CF page automatically redirects me to the JSP page. Then what, exactly?
    Does the login page automatically determine my URL, attempt to validate it, and if it doesn't work, it reloads the page?
    The reason I ask is because there is a difference between the resulting HTML page and the JSP class file that generates that HTML page. Generally speaking, most web servers, particularly Tomcat, do not recompile the JSP class file, they just simply pass the parameters to the existing class file, and a new HTML page is generated.
    So technically speaking, every time you visit the login.jsp page, you will get a brand new HTML page. The contents of that page are the same because you presumably pass the same parameters to the class which hasn't changed. But in other words, no, you can't forward to an "old" page that was previously generated by the class - each time the web server calls that class, it creates a "new" page.
    Or are you saying that every time you attempt to forward to the login.jsp page, the system erronously calls the CF page instead?

  • About forward method

    Hi,
    I observed that include() method in jsp includes the output generated by the calling and called resource also.But forward metho discards the output generated by the calling resource.Why this is done?

    Because forward() has nothing to do with "including"
    content? That seems to be it. Whan a sevlet has an include() statement in the code, the servlet is saying, "I've grown weary of dealing with this response. I need some help. Could you please stop in at this other jsp or servlet and add its output to the response. Then come back here so I can finish up."
    When a servlet has a forward() statement in the code, the servlet is saying, "My God! I can't deal with the pressure! Please send the response object on to this other jsp or servlet and let them decide how to respond to the client browser. I want nothing to do with it!"
    See here:
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/Servlets9.html

  • Forward method

    hi friends,
    this is part of my frist jsp --
    System.out.println("prevPageUrl@@@@@@@@@@@@@@@@@2222"+prevPageUrl); %>
         <jsp:forward page="../errorPages/subscriptionbounce.jsp">
              <jsp:param name="docassembid" value="<%= contentViewerHelper.getDocassembid() %>" />
              <jsp:param name="previouspage" value="<%=prevPageUrl%>"/>
              <jsp:param name="message" value="User <%= userProfile.getUserId() %> is traying to access to publication <%= contentViewerHelper.getPublication() %>"/>
         </jsp:forward>
    i am getting "prevPageUrl" value as null. After forwarding this "subscriptionbounce.jsp" , i tried to get parameter "prevPageUrl" using request.getParameter("previouspage") method. the value i got is not null. instead its a empty string . i got this valuse using s.o.p(request.getParameter(previouspage). any suggestions here.
    Message was edited by:
    bobz
    Message was edited by:
    bobz
    Message was edited by:
    bobz
    Message was edited by:
    bobz

    this is my second jsp .
    <%@ taglib uri="breadcrumbs_copyright.tld" prefix="bc" %>
    <%@ page import="com.wolterskluwer.atlas.crn.CRNSearcherConst" %>
    <%@ page import="com.wolterskluwer.eip.crn.PortalHelper" %>
    <%
    String previousPageUrl = request.getParameter("previouspage");
    String pre= request.getParameter("previouspag");
           System.out.println("previousPageUrl@@@@@@@@@@@@@@@@@@"+previousPageUrl);
           System.out.println("pre@@@@@@@@@@@@@@@@@@"+pre);
           int i = previousPageUrl.length();
           System.out.println(i);
    if (previousPageUrl == null ) {
            out.println("previousPageUrl@@@@@@@@@@@@@@@@@@"+previousPageUrl);
         previousPageUrl = request.getHeader("Referer");
         out.println("Referer@@@@@@@@@@@@@@@@@@@@@@@@@@@"+previousPageUrl);
         if (previousPageUrl == null) {
              previousPageUrl = CRNSearcherConst.JSPFILES.PROTECTED_PREFIX_URL + CRNSearcherConst.JSPFILES.HOME_PAGE; // redirect to the home page
    if (!previousPageUrl.startsWith("javascript:"))
         previousPageUrl = PortalHelper.getPortalRootURL(session) + previousPageUrl;
    String docassembid = request.getParameter("docassembid");
    // TODO: implement more sophisticated handling of docassembid equals null
    if (docassembid == null)
         docassembid = "not_specified";
    %>
    <bc:getBreadcrumbs id="publication" format="html" docassembid="<%= docassembid %>" />
    <div id="module-error">
         <div id="subscriptionbounce">
         <h2 class="subscriptionbounce_header">Thank you for your interest in:</h2>
         <div id="subscriptionbounce_mainarea"><%= publication %></div>
         <div class="subscriptionbounce_context">
              You currently do not have access to this product because it is not part of your current subscription.
         </div>
         <div class="subscriptionbounce_context">
              To learn more about this product and about adding it to your subscription, please contact Customer Support at 800-449-6435.
         </div>
         <div class="subscriptionbounce_context">
              <a href="<%=previousPageUrl%>" >Return to the previous page </a>
         </div>
         </div>
    </div>

Maybe you are looking for

  • Is it possible to add Attachments or Attachments link in Discoverer Report?

    Hi, I am trying to create a discoverer report , in my report i need to view the attachments from FND_LOBS table. Please guide me how it will be possible . Thanks in Advance, Priyanka

  • Force creation of new segment

    Hello all, I have a problem with a map. In the ORIGIN schema, I have fields : ShipmentStatus LOCCode DeliveryCode In the DESTINATION Schema : LOC (with it's several child fields) I'm creating 1 LOC based in the values of ShipmentStatus and LOCCode an

  • [ANN] Oracle JDeveloper 10g production is now available for download.

    It's probably worth a mention in this forum too ;-) In case you haven't notice we have just released Oracle JDeveloper 10g production with a many new features that makes it the ideal Java tools for Oracle Application Server users. Check it out at: ht

  • Populate Combo in matrix

    Hi,      I have a Matrix.      In Each row i want like to populate matrix with values based on the row.      My problem is once a combo gets populated in one row, the same value      gets populated for other rows also(inspite of changing values)     

  • Charts with Multiple Data Series in One Color

    I am trying to create a pie chart to reflect the different areas of my budget in four categories. However, my budget is divided into several smaller categories across several columns and I can only get the cells in the first column to register even t