How to set a context of "/" ??

How can i set a context of either "" or "/" such that when i call the
URL
htpp://localhost:7001/
I go to the location specified for that context ?
Is this possible ?
Srini

<url-pattern>*</url-pattern>
Gene
"Srini Kurella" <[email protected]> wrote in message news:[email protected]..
How can i set a context of either "" or "/" such that when i call the
URL
htpp://localhost:7001/
I go to the location specified for that context ?
Is this possible ?
Srini

Similar Messages

  • How to set portal context using Java/JPDK api.

    Hi,
    I am in the process of converting pl/sql based database provider contect portlets to Java based JPDK. I ran into issue where the database provider portlet users were getting context auto matically. Now with Java/JPDK portlets , I am receiving no data found error, since the context is not set. The pl/sql is setting wwctx_private_api.set_context ('portal') to set the context. From Java if we call this api, it is taking a toll on the performance and the portlet times out.
    Can any help how to set the context for a web provider using JPDK or any other better solution. Any immediate help is highly appreciated.
    Thanks,
    Rav.

    Hi
    We are trying to access content views for e.g portal.wwsbr_all_items s, portal.wwsbr_all_content_areas c,portal.wwsbr_all_folders f, from aweb provider portlet. When we do a select on those objects , we are getting java sql exception saying "ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL.WWCTX_SSO", line 1745
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL.WWCTX_SSO", line 1579
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "PORTAL.WWCTX_SSO", line 1834
    ORA-06512: at "PORTAL.WWCTX_API", line 199
    We need to know how to accesss the above views from a jsp based portlet.
    A

  • How to set a context init parameter

    Hello,
    Can anyone tell me how to set the following context init parameter. "javax.faces.application.CONFIG_FILES" on a windows configuration. I haven't got a clue how to do that and would be very grateful for your help.
    Thanks,
    Alexandre.

    There is no difference on how to set this context init parameter based on OS platform.
    The paramter value should always be a comma-delimited list of context-relative paths under the web application (ex. /WEB-INF/app-config.xml).

  • How to set the Context path to AAA/BBB in Weblogic 5.1?

    Hi folks,
              I want to deploy a web application and set the servlet context as:
              AAA/BBB. Put more simply, my application should be accessible via the
              following:
              http:localhost:7001/AAA/BBB/main.jsp
              where http://localhost:7001/AAA/BBB maps to my document root.
              One work around is to set the context to AAA:
              weblogic.httpd.webApp.AAA=WebAppLocation
              And in the deployment descriptor (web.xml) to register all servlets
              with a BBB/ prepended to the desired alias:
              <servlet-mapping>
              <servlet-name>main</servlet-name>
              <url-pattern>BBB/main.jsp</url-pattern>
              </servlet-mapping>
              But this solution does not work for me. Parts of the application refer
              the context root (AAA) and create URLs relative to that. These URLs
              will not have the BBB part. Searching for it in the code and replacing
              it is not desirable (we do not own the code). Does anyone have any
              suggestions?
              Thanks in advance,
              Musafir
              

    What you have done for changing the context root to "/" is all fine but it is important to know that there is a ROOT.war in the deploy folder of JBoss which by default gets bound to "/" context. You must be getting the error message like "Web mapping already exists for deployment" when you would be starting your JBoss server after changing your context root to "/". So either you can completely remove the ROOT.war from the deploy folder or change the context-root of ROOT.war by updating its web.xml like:
    <web-app>
    <display-name>Welcome to JBoss</display-name>
    <description>
    Welcome to JBoss
    </description>
    *<context-param>*
    *<param-name>context-root</param-name>*
    *<param-value>/jboss-root</param-value>*
    *</context-param>*
    <servlet>
    <servlet-name>Status Servlet</servlet-name>
    <servlet-class>org.jboss.web.tomcat.service.StatusServlet</servlet-class>
    </servlet>
    </web-app>
    and also update the jboss-web.xml of ROOT.war:
    <jboss-web>
    <security-domain>java:/jaas/jmx-console</security-domain>
    *<context-root>/jboss-root</context-root>*
    </jboss-web>
    I hope this serves your purpose.
    There can be a workaround also by modifying the index.html of ROOT.war in the deploy folder of your server and redirect request to your web application using meta refresh like:
    <meta http-equiv="refresh" content="0;URL='/store'">

  • How to set up context parameter of a web application

    Hi,
    I am tring to deploy a ear file to J2EE Engine 7.1
    with the help of import feature of NWDS.
    Is there any option to set the value of the context parameters defined in web.xml inside the ear.
    Regards,
    Chitra

    Thanks for your response.
    Th e version no. of IE Tab is 4.0.20130422 and it is from https://addons.mozilla.org/en-US/firefox/addon/ie-tab/
    Look forward your reply.Thank you in advance.

  • How to set CALC_BREAKDOWN_ID context in a simple FF

    Hi All,
    I am facing an issue when i am trying to call Net_PAY_REL_RUN in FF, when the quickpay or payroll is run , it errors out with  (FORMULA_ERROR_TEXT=Context CALC_BREAKDOWN_ID was not set when used at line 28 of formula
    All i am trying is to handle Negative net pay, when the NET Pay becomes negative, i would offset the amount to make net pay zero and follwoing the FF. This formula is attached to an Information element defined at payroll relationship Level.
    Hope somebody have encountered this issue already and have some resolution available , any pointers would be of great help.
    Thanks
    Sudhir
    DEFAULT FOR NET_PAY_REL_RUN IS 0
    l_net_adjust = 0
    IF NET_PAY_REL_RUN < 0
    THEN
       l_net_adjust = NET_PAY_REL_RUN
       l_mesg = 'Net Pay is adjusted in this period -'
    RETURN l_net_adjust
          ,l_mesg

    Hi,
    an action listener is a server side component that write from a source to a target, whic can be pageflow scope, a session scope or managed bean. The action listener doesn't surface as a UI component on the client but as functionality
    Frank

  • ORDS 3.0 - How to set VPD Context before executing SQL Template?

    I need to set a couple of attributes in an Oracle Session Context before the SQL/PLSQL template handler is executed, as we rely on Oracle VPD/Row-Level-Security for the data access.
    Is there a hook/functionality in ORDS 3.0 where I can register a PL/SQL (e.g. set_security_context(authenticated_user)) procedure, so this 'set_security_context' procedure is executed before and for each execution of a SQL/PLSQL template handler?

    I tried to log the request at Oracle REST Data Services (ORDS) but I could only start a new discussion: Possibility to register Pre-/Post-Procedures for an SQL Template Handler
    As I mentioned there, the PL/SQL handler approach works for me as long as I have no or only little data to send back to the client (e.g. put/post/delete succeeded or an error message why the call failed).
    If I need to return a lot of data from the PL/SQL handler I would need to, as far as I understand, to marshal the data to JSON and write it to the response body in the PL/SQL handler.
    I don't want to do the marshaling, because ORDS does it better.
    However, this works for me:
    I write a pipelined stored procedure that takes as input the attributes I need to set in the session context. I then can reference it in the SQL handler:
    select * from table(my_pipelined_function(:USER, ....)
    Now the JSON/HTTP response is created by ORDS again.
    I still needed to code a couple of lines, but it is way better than duplicating the functionality already existing in ORDS.
    With the hooks it would be perfect because I would not have to write any code (apart from the procedure to set the session context attributes), just configure the REST services in ORDS.

  • How to set jndi context to call EJB?

    Hello!
    install the j2ee sdk 1.4 on a server that has the ip address 211.83.144.48.
    then I deploy a EJB ,but I want to call the method from another pc.
    The problem is that how I initialize the jndi context? How can get the url for "Context.PROVIDER_URL"?
    thks.

    Hi there, I am having what appears to be a very similar problem.
    the code I am using for gaining the initial context is as follows:
    properties.put("java.naming.factory.initial",JNDI_FACT_CLASS_NAME);
    properties.put("java.naming.provider.url", s);
    return new InitialContext(properties);
    where these instantiated variables when pulled out of the hash are :
    java.naming.factory.initial : com.sun.appserv.naming.S1ASCtxFactory
    java.naming.provider.url : iiop://lich.ecs.soton.ac.uk:3700
    this works absolutely fine on the localhost machine, running both client and server, however when
    running on seperate machines I get the same ORB_COMM error as previously stated:
    WARNING: ORBUTIL.connectFailure
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:1739) com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:1757)
    ..etc..
    apparently this is caused by :
    java.net.ConnectException: Connection refused
    at sun.nio.ch.Net.connect(Native Method)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:460)
    at java.nio.channels.SocketChannel.open(SocketChannel.java:146)
    ...etc...
    the server is definately up and running, and can provide all other services to the remote client, using both the IP and the DNS resolved name, and JVT seems to work fine, just not corba look up's of a queue.
    I am using the Sun Application Platform Server 8 and the standard j2EE RI versions of corba , JNDI e.t.c
    if you could suggest any further reason why the localhost may be resolvable, but the remote may not I would drastically appreciate the help, as I have been scouring forums for 2 days now, and exhaused all
    other potential solutions.
    thanks
    Tim

  • How to set multiorg context for Alerts in R12

    Hi Experts,
    Our Client has moved from 11i to R12. We have one  alert in 11i. We migrated that alert to R12.
    However, due to multi org architecture the alert query is not returning any values and hence not working as expected.
    Is there any setup , where we can overcome this roadblock ?
    Alert details :
    Type= Periodic alert
    Application = Custom Payables
    Alert query:
    SELECT   DISTINCT
    hrer.EMAIL_ADDRESS
    ,         hrea.email_address
    ,         hrea.full_name
    ,         pov.vendor_name
    ,         poh.segment1
    ,         poh.comments
    ,         poll.shipment_num
    --,         pol.line_num
    ,         pol.item_description
    ,         msi.segment1
    ,         nvl(msi.description,pol.item_description)
    ,         ltrim(to_char(pol.unit_price,
    '$999,999,999,999.99'))
    ,         pod.req_header_reference_num
    ,         api.invoice_num
    ,         prl.release_num
    ,         pol.unit_meas_lookup_code
    ,         ltrim(to_char(TRUNC(poll.quantity,2),'999,999,999,999.99'))
    ,         ltrim(to_char(TRUNC(poll.quantity_billed,2),'999,999,999,999.99'))
    ,         ltrim(to_char(TRUNC(poll.quantity_received,2),'999,999,999,999.99'))
    ,         ltrim(to_char(TRUNC((poll.quantity_billed - poll.quantity_received),2),'999,999,999,999.99'))
    , api.invoice_date
    , ltrim(to_char(api.invoice_amount,
    '$999,999,999,999.99'))
    , ltrim(to_char((pol.unit_price*TRUNC(poll.quantity,2)),
    '$999,999,999,999.99'))
    INTO      &REQUESTOR_ID
    ,         &AGENT_ID
    ,         &AGENT
    ,         &VENDOR
    ,         &PO
    ,         &PO_DESC
    ,         &POL_NUM
    ,         &POL_DESC
    ,         &ITEM_NUM
    ,         &ITEM_DESC
    ,         &POL_PRICE
    ,         &REQ
    ,         &INVOICE
    ,         &REL_NUM
    ,         &UNIT
    ,         &QTYORD
    ,         &QTYBILL
    ,         &QTYREC
    ,         &QTYUNKNOWN
    ,         &INVOICE_DATE
    ,         &INVOICE_AMOUNT
    ,         &LINE_AMT
    FROM      ap_suppliers pov
    ,         po_headers poh
    ,         po_agents poa
    ,         hr_employees_current_v hrea
    ,         po_lines pol
    ,         po_distributions pod
    ,         ap_invoices api
    ,         po_line_locations poll
    ,         hr_employees_current_v hrer
    ,         ap_holds aph
    ,         po_releases_all prl
    ,         mtl_system_items msi
    WHERE     aph.hold_lookup_code    = 'QTY REC'
    AND       aph.release_lookup_code IS NULL
    AND       api.invoice_id          = aph.invoice_id
    AND       poll.line_location_id   = aph.line_location_id
    AND       pod.line_location_id    = poll.line_location_id
    AND       pol.po_line_id          = poll.po_line_id
    AND       poh.po_header_id        = pol.po_header_id
    AND       hrer.employee_id(+)     = pod.deliver_to_person_id
    AND       pov.vendor_id           = poh.vendor_id
    AND       hrea.employee_id        = poh.agent_id
    AND       poa.agent_id            = poh.agent_id
    AND       pod.po_release_id       = prl.po_release_id(+)
    AND  pol.item_id             = msi.inventory_item_id(+)
    AND pod.destination_organization_id not in(103,102)
    AND poll.ship_to_organization_id not in (103,102)
    AND pov.vendor_name like 'xyz%'
    --and rownum<11
    --and poh.segment1='92143'
    Regards..
    KJ

    Please make sure you have all the patches mentioned in (Event Alert Does Not Fire Or Check Event Alert ( ALECTC ) Concurrent Request Does Not Start (Doc ID 1261925.1)) applied.
    Thanks,
    Hussein

  • How to set a attribute value of a sub node binded to a table.. pls respond.

    Hi friends,
    I have context defined like this.
         Head_node ( table 1)
              Item_node ( table 2, sub node ).  ( now this im saving in global internal table).
    so now when i hit save button, im passing my internal table (it has col1- sales order no, col2 item details(table type, which can have more than one record) to a FM, to create sales order.
    My sales order is getting saved.
    But the function module will return some new values (like sales order number, item number etc).
    Now i want these values to be updated in my context.
    Meaning whenever after that i do get_attribute, i should get these new (sales order no, item no ) also.
    I dont know how to set the context values of sub nodes , so im missing these values.
    kindly respond back to me..
    thanks in advance,
    Niraja

    Its very simple.
    Follow these steps. e.g you want to get the new sales order number. Define a attribute in ur node (or set of attributes in ur case as per reqruirement) say new_so_number.
    Check your FM, if its returning new_so_number then it's fine, otherwise you have to change the FM to return the new_so_number or you have to get from db table somehow, which best suites your req.
    So once you have new_so_number after calling the FM, say in lv_new_so_number field. Then write this code to set the attribute (change the variables as per your context attributes)
    DATA lo_nd_head TYPE REF TO if_wd_context_node.
      DATA lo_el_head TYPE REF TO if_wd_context_element.
      DATA ls_head TYPE wd_this->element_head.
      DATA lv_new_so_number LIKE ls_head-new_so_number.
    * navigate from <CONTEXT> to <HEAD> via lead selection
      lo_nd_head = wd_context->get_child_node( name = wd_this->wdctx_head ).
    * get element via lead selection
      lo_el_head = lo_nd_head->get_element(  ).
    lv_new_so_number = new_so_number. " (You got this as a exporting parameter of FM etc..)
    * get single attribute
      lo_el_head->set_attribute(
        EXPORTING
          name =  `NEW_SO_NUMBER`
          value = lv_new_so_number ).
    Hope it works.

  • How I can set ORG_ID context (for Oracle Apps Views) in ODI designer tool?

    Hi All,
    I want to get data from apps views (like OE_ORDER_HEADER_V) into our data warehouse detination table using ‘Oracle Data Integrator’ tool.
    The issue is that when I reverse Oracle Table or Synonym directly, everything works fine i.e. after 'Interface' execution, I can see how many rows imported into destination table from this source Oracle table/synonym.
    But when I use Apps view as a source then 'Interface' executes fine with ‘no error’ but NO rows imports to the destination table.
    I believe, the only difference is that I am not able to set Org_Id before executing ODI interface so it is not picking the data.
    Please let me know the steps/instructions to set org_id context on apps view then reverse in ODI Designer tool.
    Please note that I can set org_id using SQLPlus successfully as given below (and see data using the same Apps view). What to do in ODI designer tool to achieve similar data:
    begin
    fnd_global.apps_initialize(0, 21623, 660);
    mo_global.init('ONT');
    end;
    -- connect using apps/apps at Vision SQLPlus
    -- User_Id -> 0 (<-- SYSADMIN )
    -- Responsibility_Id-> 21623 (<-- Order Management Super User )
    -- Application_id -> 660 (<-- ONT )
    -- select count(*) from oe_order_headers_v where rownum < = 100
    I would appreciate your quick help in this.
    Thanks in advance.

    Set org context in 11i:
    ===============
    The SQL command to set the ORG_ID prior to running a script is:
    SQL> execute dbms_application_info.set_client_info(&org_id);
    Enter the org_id when prompted.
    If using Toad
    Begin
    fnd_client_info.set_org_context(&org_id);
    End;
    Set org context in R12
    ================
    The SQL command to set the ORG_ID prior to running a script is:
    SQL> exec mo_global.init('AR');
    exec mo_global.set_policy_context('S','&org_id');
    Enter the org_id when prompted.
    The procedure - mo_global.set_policy_context has two parameters
    p_access_mode & p_org_id
    p_access_mode Description
    S In case you want your current session to work against Single ORG_ID
    M In case you want your current session to work against multiple ORG_IDs
    p_org_id: Only applicable if p_access_mode is passed value of "S"
    If using Toad
    Begin
    mo_global.set_policy_context(‘S’, &org_id);
    End;

  • How to set the default context value for flexfield in OAFramework pages

    Hi,
    I have a page which contains a contexxt value field i.e Flexfields
    To select the context value we have to select the value from drop down
    So Here we want to display the context value immediately when the page is called
    How to set the default valu in this case
    Regards,
    Krishna

    You can set the Attribute category view attribute to the Flexfield context value and call prepareforRendering in the flex bean. Check the dev guide for details.
    Regards
    Sumit

  • How to set portal security context for a procedure

    Hi, I have procedure that needs to call some of the PDK APIs (WWSBR_API), but outside the scope of the web browser, i.e, automatically via a DBMS_JOB or queue. There is no HTML outputted, but rather a log entry made to a custom table.
    The schema that this custom pkg belongs has all the necessary grants made to it from provsyns so that it should run.
    How do I programatically set the context of the portal security so as to make the PDK APIs think it has been invoked by a Portal Adminstrator or a user with sufficient privs to perform the actions against the PDK and therefore not bomb out with security exceptions? I have seen this documented quite some time ago, but cannot find the details.
    Regards
    John

    You need to use the wwctx_api.set_context procedure.
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/sdk11scp.htm

  • How to set the servlet context path manually in Tomcat web server.

    I tested some servlets by putting them in the folder , which the tomcats examples application uses (ie Tomcat 4.1\webapps\examples\WEB-INF\classes\) and it appeared to be working fine.
    I was calling the servlet like this : http://localhost:2006/examples/servlet/TestServlet
    But when I installed my own WAR file in the server , the servlet is not working now. now the new location of my servlets is : Tomcat 4.1\webapps\MyApp\WEB-INF\classes\
    and I'm trying to call the servlet like this : http://localhost:2006/MyApp/servlet/TestServlet
    The error , what i'm getting is :
    description :The requested resource (/MyApp/servlet/TestServlet) is not available.
    Some body please tell where I'm making the mistake ? I believe this may have something to do with the servlet context path setting. If anybody has any idea , how to set the path..will be much appreciated.

    Thanx for your reply , at first I was not using any web.xml(since not mandatory) but even after using the web.xml file the error is coming . Please have a look into the contents of the web.xml file and let me know if you find any problem...
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>TestServlet</servlet-name>
    <servlet-class>TestServlet</servlet-class>
    </servlet>
    </web-app>
    one more thing I would like to tell you here. I was just looking into the configuration of Iplanet web server..I found that , there are options to set the servlet container path (like : - Prefix: /servlet
    Servlet Directory: /ecomm/iplanet/nes60/product/docs/container )
    so from here I came to know that "container " is the folder where we should put our servlets and it has URI as "servlet" but yet I'm not able to find any option in the Tomcat Web server to set the servlet container to any different directory.
    If you have any idea please let me know.

  • How to do set apps context in java concurrent program

    Hi,
    Can any body help me in setting apps context in Java Concurrent program. I tried using AppsContext class and methods but did not work.
    Thanks for help in advance
    Pavan

    Go on Unix box at $JAVA_TOP/oracle/apps/iby/scheduler
    You will get class file FDExtractAndFormatting.
    Decompile it to get source code.
    Thanks, Avaneesh

Maybe you are looking for

  • Upload data from excel to oracle table

    Hi, if i'm user and using an application and i want to upload data from excel to oracle table on button click . Is it possible by using sql loader. If yes then please clarify it . is it possible from client end. thanks kam

  • When I turn on my iPhone 4S the apple logo pops up for a split second then the screen goes black but the phone itselfs boots up just fine???

    I tried replacing the screen with no luck. The same thing happened with the new screen. I replaced the backlight coil and the backlight ic and still have the issue. I don't know what else could be the problem. If the battery is completely dead and I

  • AP Down Payment invoice

    Hi what's the trick... customer would like to issue an "AP Down Payment invoice" and it is clearly "TAX" to be calculated, but it does not do it. I tried created a GRPO and the Tax shows, but than I go into AP Down Payment invoice and do a copy from

  • Return to vendor (Excise material)..?

    HI all Can anybody explain me about return delivery to vendor after invoice verification process.. I have created return PO, againsgt that PO I done MIGO but while doing goods receipt for return PO (the material which I m goint return is excisable).

  • Alerts in the Adapter engine

    Hi all I´m working in a BPM scenario, I have raised an alert from the BPM and it arrives to my inbox(alert framework). And also i can see it in the CCMS. But now I trying to configure an alert to be raised in case of an error in the Adapter engine (f