Forward Apache environment parameters through mod_jk to servlet

Hi all,
Please help me find out solution for next question. I'm totally stuck :(
Client (rich app) sends HTTP request to web server.
Request comes to webserver Apache with mod_jk enabled. Another Apache mod adds into environment some specific data, namely CERT_ID.
In CGI, it is easy to extract its value , like $ENV{CERT_ID}.
But next, this request forwarding to JAX-WS servlet under Glassfish, ant at this point env attributes disappeared. Parameter CERT_ID seems to be lost :(
I've tried to explore MessageContext, ServletContext, "java:comp/env", HttpRequest - no signs of required attribute.
Plese help me find out, which context I must use to fetch this data? Maybe some httpd.conf parameter cat make this able?
Code shippet will be much appreciated!
Thanks in advance!

OK, it seems that mod_jk isn't getting loaded by Apache and I can't figure out why. No error messages or anything?

Similar Messages

  • Apache Environment variables usage for dispatcher configurations

    I have tried using apache environment variables within dispatcher.any files which doesn't seem to work. Is it feasible?

    Hi Yogesh,
    I want to carry forward certain environment variables which we are using all virtual hosts configured in our apache web server.
    e.g., #1: Virtual hosts used in dispatcher will be same as the ServerName used in our Apache Virtualhost configuration
    e.g.. #2: Using environment variables to identify custom docroot in our web cluster based on VirtualHost configuration.
    Any thoughts?
    Thanks
    Suresh

  • How to set FTP parameters through Module Processor?

    Hi
    We read parameters set in the communication channel of an adapter through method getSupplementalData("module.parameters") of com.sap.aii.af.mp.module.ModuleData.
    I have following question regarding reading/writing configuration data, set in communication channel for a File adapter:
    1) How can I read the FTP Connection Parameters in a module of a module processor?
    2) Is it possible to update FTP parameters at Module Processor level for Receiver Adapter?
    3) If update of parameters through Module Processor is not possible, then is there some other way I can set the FTP parameters?
    Regards
    Vijendra

    HI Vijendra,
    Check out this -
    https://websmp202.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000071155&_SCENARIO=01100035870000000202
    https://media.sdn.sap.com/SDNTV/main.asp?mediaId=130
    <i>2) Is it possible to update FTP parameters at Module Processor level for Receiver Adapter?</i>
    You can not dynamically determine the FTP server etc. In the Receiver Adapter, Module is called first, then control is given XI Adapter to output the file into FileSystems. You can modify the Payload.
    For more~
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cd/5af7c0c994e24fb0d0088443513de2/frameset.htm
    Hope this helps,
    Regards,
    Morothy

  • Passing User Parameters through Run_Report_Object

    hi,
    How to pass multiple user parameters through run_report_object.example i have to pass 20 parameters, have i write 20 statements? is there any way to come in single statement.i am using Forms 6i.
    thks in advance,

    A parameter list can be the second parameter of RUN_REPORT_OBJECT,
    rjob := RUN_REPORT_OBJECT(rep_id,paramlist_id);
    Gerald Krieger

  • Passing Parameters through a URL to a Report..

    I have noticed a lot of message about similar situations where people have had problems sending certain parameters through a URL.. so this is maybe something that's not possible.. but you if you dont ask then you dont know.
    so..
    We have a form that has search options in it
    (its a customized form that replaces the customization bit that you get with a report -> .show_parms - just so we could do different things with it)
    and one of the fields is a combobox populated by an LOV
    - it has usernames in it
    so when you search using a value in the combobox it will show all the records that that person has entered into the table..
    however we are currently getting an error
    Error: An unexpected error occurred: ORA-06502: PL/SQL: numeric or value error (WWV-16016)
    this is the URL with the parameters
    http://portal.somewhere.com/pls/portal30/foldername.RPT_Edit_Request_Old.show?p_arg_names=Request.RID&p_arg_values='||nRID||'&p_arg_names=Request.CID&p_arg_values='||nCID||'&p_arg_names=Request.ATID&p_arg_values='||nATID||'&p_arg_names=Request.REQUEST_NAME&p_arg_values='||nREQNM||'%&p_arg_names=_request_rid_cond&p_arg_values=%3D&p_arg_names=_request_cid_cond&p_arg_values=%3D&p_arg_names=_request_atid_cond&p_arg_values=%3D&p_arg_names=_request_request_name_cond&p_arg_values=LIKE';
    when you remove the condition at the end
    the report is displayed (but not customized obviously)
    however you can see the value has been picked up from the combobox as it's in the URL in the address bar..
    so that bit works fine
    any thoughts/ideas/or even solutions! :) would be much appreciated
    thanks
    Richard

    actually
    nevermind
    i got it to work without even knowing :)
    the condition was causing the error
    and adding a % after the value makes it work

  • Is it possible to pass parameters through eventlisteners?

    Hello everyone!
    Inside a .fla file I have some buttons and each button will tween a different image to the stage. All the images are outside the stage in the same x and y position and I just need to tween the x coordinate.
    Now I'm working with an external document class where I'm trying to hold all my functions and I'm stucked with the Tweens. I'm willing to stay away from the flash tween engine and I'm trying to work with tweenLite.
    My question is: Is it possible to pass parameters through eventListeners so I can use something like this inside my docClass?
         public function animeThis (e:MouseEvent, mc:MovieClip, ep:int):void { //ep stands for endPoint.
         TweenLite.to(mc, 2, {x:ep});
    If this is possible, how am I supposed to write the listeners so it will pass the event to be listened for AND those parameters? And how to build the function so it will receive those parameters and the event?
    If this is not possible, what's the best approach to do this?
    Thanks again!

    So, I understand you need to match buttons with corresponding visuals.
    Here is a suggested approach.
    Since SimpleButton is not a dynamic class, I suggest you have an enhanced base class for these buttons that extends SimpleButton. What is enhanced is that button has reference to the target.
    I wrote code off the top of my head and it may be buggy. But concept is clear:
    This is base class for all the buttons:
    package 
         import flash.display.DisplayObject;
         import flash.display.SimpleButton;
         public class NavButton extends SimpleButton
              public var targetObject:DisplayObject
              public function NavButton()
    Now, this is your doc class that utilizes this new buttons:
    package 
         import flash.display.DisplayObject;
         import flash.display.MovieClip;
         import flash.display.Sprite;
         import flash.events.Event;
         import flash.events.MouseEvent;
         public class DocClass extends Sprite
              private var btnArray:Array;
              private var visuals:Array;
              // references to objects being swapped
              private var visualIn:MovieClip;
              private var visualOut:MovieClip;
              public function DocClass()
                   if (stage) init();
                   else addEventListener(Event.ADDED_TO_STAGE, init);
              private function init(e:Event = null):void
                   removeEventListener(Event.ADDED_TO_STAGE, init);
                   // buttons and MCs shouldn't be in the same array - otherwise it is counterintuitive
                   // assuming all the objects are on stage
                   btnArray = [price_btn, pack_btn, brand_btn, position_btn];
                   visuals = [g19_mc, g16_mc, g09_mc, g04_mc];
                   configObjects();
              private function configObjects():void
                   var currentVisual:MovieClip;
                   var currentButton:NavButton;
                   for (var i:int = 0; i < btnArray.length; i++)
                        currentVisual = visuals[i];
                        // hold original positioin
                        currentVisual.hiddenPosition = currentVisual.x;
                        currentButton = btnArray[i];
                        // set target MC
                        currentButton.targetObject = currentVisual;
                        currentVisual.addEventListener(MouseEvent.CLICK, placeObject);
                        currentButton.addEventListener(MouseEvent.CLICK, placeObject);
              private function placeObject(e:MouseEvent):void
                   // if NavButton is clicked - make new visual targeted for moving in and currently visible object subject for moving out
                   if (e.currentTarget is NavButton) {
                        visualOut = visualIn;
                        visualIn = NavButton(e.currentTarget).targetObject;
                   else {
                        // otherwise - move visual out
                        visualOut = visualIn;
                   swapVisuals();
               * Accompishes visuals swapping
              private function swapVisuals():void {
                   if (visualIn) TweenLite.to(visualIn, .3, { x:0 } );
                   if (visualOut) TweenLite.to(visualOut, .3, { x:visualOut.hiddenPosition } );

  • Need information on Environment Parameters in EH&S

    Hi Friends,
    I am working on an application related to EH&S. I need to create a new environment parameter in EH&S for the Email ID and send the mail from program to that Email ID assigned to the environment parameter. I do not know any thing about the environment parameters in EH&S. Kindly guide me in doing this.
    Thanks in advance,
    Ram

    Hello Ram
    regarding "environment parameters" there might be one "disadvantage". If you would have the need to change the parameter you need a transport. May be there are other useful options which could be of interest:
    As you may be now you can store user dependent parameters on the level of the SAP user. One example is:
    You (as the user) can select  a property tree. This selection of a property tree can be stored on userid level (therefore if you log off and log on once again the selection property is your "default" one,)l. Regarding this option you do not need a customizing parameter. The "cons" of this options are:
    a.) you must prepare this "parameter" like a constant in your program to be read from user profile
    b.) you should make sure that the user can only select from a number of values or if the user is using a value which is not allowed you need some "error" handling routine
    So may be this option is not so "robust" but is used very often in SAP and in SAP EH&S.
    With best regards
    C.B.

  • Passing VM Parameters through Applet Tag

    Is there some way to pass Runtime JVM parameters through the Applet Tag?
    something like -D"java.security.policy="xxx"
    <Applet >
    <Param Name="JVM_PARAM" Value="-D"java.security.policy="xxx"">
    </Applet>

    Is there a way to set JVM parameters directly in the applet tag? i.e., not by passing generic parameters and then calling setProperty, and not by setting the JVM parameters in the Plug-in control panel.
    For some reason, setProperty will not work correctly in my applet. I can set the new property value, immediately do a getProperty and verify that the new value is returned, but the JVM still uses the old value throughout the life of the applet.
    And I don't want to set the parameter in the control panel, because I don't won't this parameter set for all applets that use the plug-in.
    Thanks,
    Ken

  • Apache Environment Variables inside PL/SQL

    How to access Apache Environment Variables inside HTMLDB (PL/SQL block)?

    Hi,
    You can use the owa_util.get_cgi_env packaged function -
    FUNCTION GET_CGI_ENV RETURNS VARCHAR2
    Argument Name                  Type                    In/Out Default?
    PARAM_NAME                     VARCHAR2                INSo, pass in the name of the Env var you want and it will give you back the value.

  • Question about parsing parameters through url

    Hello,
    I have some questions about parsing parameters through a url.
    What I want to build is a page with some text fields and maybe one drop down list. After user enter values into the text fields and select one option in the drop down list, then press the submit button, a report will be opened, which according to the parameters parsed.
    These were what I have done:
    1. create a blank page and a region
    2. create one text field in the region, the name is FIRSTNAME
    3. create one hidden items FN, of which the source value is item FIRSTNAME
    4. create a process. the type is "Set Preference to value of Item" which set PN with the value of FIRSTNAME when the page submitted
    5. create a button "Submit Page and Redirect to URL", in the URL I entered:
    http://dianti.local.net:9704/xmlpserver/~shichao/GuestFolder/orderdetail/orderdetail.xdo?_xpf=&_xpt=0&_xdo=%2F~shichao%2FGuestFolder%2Forderdetail%2Forderdetail.xdo&FIRSTNAME=&FN.&_xt=orderdetail&_xf=pdf&_xmode=4
    My problem is: it seems working for the first time after I entered a value in the FIRSTNAME text field and press submit button, but when I come back to the page (the report was opened in the same page, wondering how to open it in a new window?), the value is saved in the text field and after I enter another value and submit the page again. It still parse the old value to the report. The value of the parameter doesn't change.
    What's the reason? and is this the correct way to build what I want?
    Thank you in advance.
    Best Regards,
    Shichao

    Hi Scott,
    Thank you again for the help.
    But this didn't answer my question exactly. I have tested what you created and the problem remains. When I first time enter a value in the text field and press the button, it goes to page 2, but the parameter didn't parsed. When I go back to page 1 and then click the button again. After that I can see the value I parsed on page 2. Same thing happens when I try to enter a new value. So which means the button has to been pressed twice to parse the parameter.
    Due to the limitation of my knowledge of Apex. I don't know how to fix it. Could you please help me again and hope you understand what the problem is. Thank you very much.
    Shichao

  • Environment Parameters

    Hi all,
    1. Is there any SAP documentation link that provides a comprehensive list of all the Environment Parameters with explanations
    and
    2. How to find what parameters are available for a Release, i guess these are release dependent?
    Thanks
    Praveen

    Hello Praveen
    1.) I do not know a link providing this info; sorry (even on marketplace their is nothing similar to my knowlegde) (keep in mind: now we have the SAP EHS management with a large number of submodules; I would assume that you will get something at least of 200 customizing parameters)
    2.) best option is to use the docu of SPRO (it is quite good)
    3.) next option: most of the parameters are defined in "includes" in EH&S (e.g. in package CBUI and others). But they are not explained in the code (or include),; therefore their use is in some sense "sophisticated" and there are many inlcudes to take a look in (eg. package CBRC does have separate includes ....)
    Regarding: you question:
    2. How to find what parameters are available for a Release, i guess these are release dependent?
    Yes they are release dependent (and may be dependet on activation of business functions). I do not know an overview docu regarding this topic; sometimes in the master data set up documents of SAP EH&S they are mentioned (especially if changes have occured
    With best regards
    C.B.
    PS: by hazard I found these reports in internet:
    RC1A1F01 SAP Report - EHS: Constants for Environment Variables
    RC1A1F02 SAP Report - EHS: Constants for Environment Variables
    RC1A1F03 SAP Report - EHS: Constants for Environment Variables
    RC1A2F05 SAP Report - EHS: Constants for Environment Variables
    RC1A2F06 SAP Report - EHS: Constants for Environment Variables
    As I have never used these reports; may be they are useful; don't know
    Here are examples of docus which are available regarding env. parameters:
    http://help.sap.com/saphelp_470/helpdata/ru/4d/7d0a3aec6f3b42e10000000a11402f/content.htm
    Edited by: Christoph Bergemann on Jun 13, 2011 9:43 PM
    Edited by: Christoph Bergemann on Jun 13, 2011 9:43 PM
    Edited by: Christoph Bergemann on Jun 13, 2011 9:44 PM
    Edited by: Christoph Bergemann on Jun 13, 2011 9:45 PM
    Edited by: Christoph Bergemann on Jun 13, 2011 9:50 PM
    Edited by: Christoph Bergemann on Jun 13, 2011 9:54 PM
    Edited by: Christoph Bergemann on Jun 13, 2011 9:55 PM

  • How can i forward msges to mails through wifi

    how can i forward msges to mails through wifi

    It's simple... You just need access the email that you have already in your inbox (and whish to forward), press and hold it and then select forward.

  • Tomcat 4  +  Apache 1.3.2  + mod_jk.dll?

    Ok, I've installed Apache and Tomcat both, and I'm able to get them running separately fine, Now i'm trying to get them to run together.
    My problem lies in that Tomcat 4 doesn't generate the .conf files that you generally modify and include in apache's .conf file in order to get them to run together.
    I'm running on windows 98, but any help from anyone on how to get these 3 working together would be appreciated.

    I found this in the server.xml file in tomcat:
    The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
    as its servlet container. This is built by following these steps:
    - cd {TOMCAT-SRC-HOME}/connectors
    - make
    - (Edit "Makedefs" as needed for your installation)
    - make
    - su root
    - cp connectors/apache-1.3/mod_webapp.so {APACHE_HOME}/libexec
    - exit
    To configure the Apache side, you must ensure that you have a
    "ServerName" directive defined in "httpd.conf". Then, lines like
    these to the bottom of your "httpd.conf" file:
    LoadModule webapp_module libexec/mod_webapp.so
    WebAppConnection warpConnection warp localhost:8008
    WebAppMount examples warpConnection /examples/
    Finally, modify the "defaultHost" attribute in the "Engine" directive
    below to match the "ServerName" setting defined in "https.conf". The
    next time you restart Apache (after restarting Tomcat, if needed)
    the connection will be established, and all applications you make
    visible via "WebAppMount" directives can be accessed through Apache.
    Here's the problem.. there is no /connectors directory, and I can't find a precompiled version of mod_webapp.so either (plus It doesn't tell me how to compile in windows..)
    Anyway, if anyone has a precompiled mod_webapp.so file (if that will work) I guess that's all I need? I'm still lost as to how mod_jk.dll fits in though. I thought I read in a few places that tomcat4 used this instead of jserv.
    Anyone able to help me out more?

  • Issue with passing parameters through Java-JSP in a report with cross tab

    Can anyone tell me, if there's a bug in Java SDK in passing the parameters to a report (rpt file) that has a cross tab in it ?
    I hava report that works perfectly fine
       with ODBC through IDE and also through browser (JSP page)
    (ii)    with JDBC in CR 2011 IDE
    the rpt file has a cross tab and accpts two parameters.
    When I run the JDBC report through JSP the parameters are never considered. The same report works fine when I remove the cross tab and make it a simple report.
    I have posted this to CR SDK forum and have not received any reply. This have become a blocker and because of this our delivery has been postponed. We are left with two choices,
       Re-Write the rpt files not to have cross-tabs - This would take significant effort
    OR
    (ii)  Abandon the crystal solution and try out any other java based solutions available.
    I have given the code here in this forum posting..
    CR 2011 - JDBC Report Issue in passing parameters
    TIA
    DRG
    TIA
    DRG

    Mr.James,
    Thank you for the reply.
    As I stated earlier, we have been using the latest service pack (12) when I generated the log file that is uploaded earlier.
    To confirm this further, I downloaded the complete eclipse bundle from sdn site and reran the rpt files. No change in the behaviour and the bug is reproducible.
    You are right about the parameters, we are using  {?@Direction} is: n(1.0)
    {?@BDate} is: dt(d(1973-01-01),t(00:00:00.453000000)) as parameters in JSP and we get 146 records when we directly execute the stored procedure. The date and the direction parameter values stored in design time are different. '1965-01-01' and Direction 1.
    When we run the JSP page, The parameter that is passed through the JSP page, is displayed correctly on the right top of the report view. But the data that is displayed in cross tab is not corresponding to the date and direction parameter. It corresponds to 1965-01-01 and direction 1 which are saved at design time.
    You can test this by modifying the parameter values in the JSP page that I sent earlier. You will see the displayed data will remain same irrespective of the parameter.
    Further to note, Before each trial run, I modify the parameters in JSP page, build them and redeploy so that caching does not affect the end result.
    This behaviour, we observe on all the reports that have cross-tabs. These reports work perfectly fine when rendered through ODBC-ActiveX viewer and the bug is observable only when ran through Java runtime library. We get this bug on view, export and print functionalities as well.
    Additionally we tested the same in
        With CR version 2008 instead of CR 2011.
    (ii)   Different browsers ranging from IE 7 through 9 and FF 7.
    The complete environment and various softwares that we used for this testing are,
    OS      : XP Latest updates as on Oct 2011.
    App Server: GlassFish Version 3 with Java version 1.6 and build 21
    Database server ; SQL Server 2005. SP 3 - Dev Ed.
    JTds JDBC type 4 driver version - 1.2.5  from source forge.
    Eclipse : Helios along with crystal libraries directly downloaded from SDN site.
    I am uploading the log file that is generated when rendering the rpt for view in IE 8
    Regards
    DRG

  • Problem with OWA_UTIL.IDENT_ARR parameters through mod_plsql in 9iAS

    Hi!
    We discovered very strange bug in our Oracle environment. We're using the following configuration: Oracle8i (8.1.6), OWA-packages (from 9iAS), 9iAS (Release 1).
    Suddenly some procedures stopped working. mod_plsql reports the following
    ---start-------------------------------------------------------------------------
    Thu, 27 Jun 2002 04:42:32 GMT
    ORA-06550: line 7, column 2:
    PLS-00306: wrong number or types of arguments in call to 'INDICATORS_REPORT1'
    ORA-06550: line 7, column 2:
    PL/SQL: Statement ignored
    DAD name: owh8i
    PROCEDURE : htm_client_indicators_leshik.indicators_report1
    USER : dwh
    URL : http://ntw:80/pls/owh8i/htm_client_indicators_leshik.indicators_report1?monthes_=200206&monthes_=200205&monthes_=200204&client_id_=8175682&division_id_=0&type_balance_=morning&mail_=N&rs_without_rs_=on&rs_without_deposit_=on&rs_without_credit_=on&rs_without_veksel_=on
    PARAMETERS :
    ============
    monthes_:
    200206
    client_id_:
    8175682
    division_id_:
    0
    type_balance_:
    morning
    mail_:
    N
    rs_without_rs_:
    on
    rs_without_deposit_:
    on
    rs_without_credit_:
    on
    rs_without_veksel_:
    on
    ENVIRONMENT:
    ============
    PLSQL_GATEWAY=WebDb
    GATEWAY_IVERSION=2
    SERVER_SOFTWARE=Oracle HTTP Server Powered by Apache/1.3.19 (Unix) mod_perl/1.25 mod_oprocmgr/1.0
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PORT=80
    SERVER_NAME=ntw
    REQUEST_METHOD=GET
    QUERY_STRING=monthes_=200206&monthes_=200205&monthes_=200204&client_id_=8175682&division_id_=0&type_balance_=morning&mail_=N&rs_without_rs_=on&rs_without_deposit_=on&rs_without_credit_=on&rs_without_veksel_=on
    PATH_INFO=/pls/owh8i/htm_client_indicators_leshik.indicators_report1
    SCRIPT_NAME=/pls
    REMOTE_HOST=
    REMOTE_ADDR=172.16.1.36
    SERVER_PROTOCOL=HTTP/1.1
    REQUEST_PROTOCOL=HTTP
    REMOTE_USER=
    HTTP_CONTENT_LENGTH=
    HTTP_CONTENT_TYPE=
    HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
    HTTP_HOST=ntw
    HTTP_ACCEPT=*/*
    HTTP_ACCEPT_ENCODING=gzip, deflate
    HTTP_ACCEPT_LANGUAGE=en-us
    HTTP_ACCEPT_CHARSET=
    HTTP_COOKIE=
    Authorization=Basic ZHdoOnlmbGp2eWp1aiQ=
    HTTP_IF_MODIFIED_SINCE=
    HTTP_REFERER=
    HTTP_SOAPACTION=
    ---end---------------------------------------------------------------------------------
    here you can see that URL contains substring "monthes_=200206&monthes_=200205&monthes_=200204" but in "parameters" section there's only one "monthes_".
    This procedure is part of a package. I tried to create empty package with this procedure alone. And it works. But the original package doesn't work.
    Similar things has happened in some other packages. It seems that the problem is somehow connected with IDENT_ARRs.
    I can send you configuration files for app server and the problem package.

    Check for procedure name overloading for the procedure you
    are trying to run
    If you still have problems, please provide a simple testcase
    which shows the procedure signature and how you are attempting
    to call it

Maybe you are looking for

  • Delete Button in SRM Administration Role

    Hello All, We have implemented the SRM7.0 (Extended Classic) and we have a requirement where the Delete button in the Shopping Cart Monitor to be hided only for the end users. The Delete(Button to delete the Shopping Cart row when we do the search) h

  • Cost assignment search help not working

    Hi, I have looked in to the SD thread already, but none of the notes seems to be of interest as we are on support package of the notes!. Here is the problem, when trying to select cost assigment values, cost center and GL account search helps/f4 func

  • Where Load Balancing Takes Place

    Hi guys: I've seen a post by Todd Little. http://www.oracle.com/technetwork/middleware/tuxedo/overview/ld-balc-in-oracle-tux-atmi-apps-1721269.pdf In section "Where Load Balancing Takes Place" It said Whereas for /WS clients, the tpcall/tpacall/tpcon

  • How do I undue the pop-up block screen

    How do I clear the pop-up screen in order to allow me to view other web sites

  • Searching in the Forum

    HI, Lately I haven't been able to search in the forums. I've tried searching on words I know are listed and I still get zero results. What's going on? Thanks, Laura