Problem with Server-Side InitialContext

The Weblogic 5.1 documentation states that to create a context from within a
server-side object, all you need to do is issue the following statement:
Context ctx = new InitialContext();
That you do not need to specify a factory, or a provider URL; by default,
the context will be created as a WebLogic context and will connect to the
local naming service.
I only get this to work when I am running from within an EJB. When I try
this from a servlet, it doesn't work.
I am running Weblogic 5.1 SP9 with JDK 1.3.1_02. Any ideas about what I may
be doing wrong???

Hi,
runtime->session_id indicates the browser session not a windows session so as such there is nothing to prevent that except from preventing to open the app in the same browser again by eg testing on the session id
Eddy

Similar Messages

  • Problem with server side state saving ,JSF 1.1.1

    Hello,
    In my web.xml  the.STATE_SAVING_METHOD setting is s server
    <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>server</param-value>
        </context-param>
    for measurement of application security isn't not allow to change this parameter to client , so the problem  when i access for application and i open a new page via linker for print for example and i would access for my initial page to make change or modify my initial page it s no possible to make any modification because i have a empty bean , but if the state saving is a client i haven't a problem because a tree map is stored in client browser, so my version of JSF is 1.1.1 ,
    So can you explain the cause for his problem
    and what's the solution for my problem ?
    NB:i can't change the parameter for STATE_SAVING_METHOD for a client
    Thank you

    did you search this form, there were lot of discussions in the past about server side cookies, you may find an answer to your problem.
    alternate approache for sending a value from parent page to the pop up window.
    1. when opening the pop up pass the values along with the url (if the size of variable is small)
    alternatively you can store the value in a hidden form field in parent window and access the same from poup window using
    you can simple access the page one form field value in page 2 (pop up) by using the following code.
    window.opener.document.getElementById('hiddenformfieldid').value

  • Problem with server side cookie

    Hi, I have a problem with a server side cookie. I'm trying to store a cookie trough the  cl_bsp_server_side_cookie=>set_server_cookie method in the OnInitialitation event handler of a bsp (my bsp application is non mvc) and then to retrieve this cookie trough the  cl_bsp_server_side_cookie=>get_server_cookie method in the OnInputProcessing event handler of the same bsp. In this cookie i'm storing a internal table but i'm not getting it when i invoke the get_server_cookie method.
    This is the source code that i'm implementing:
    OnInitialitation:
    wa_comunnication_data-mobile = wa-mobile.
              wa_comunnication_data-telefono = wa-tel_number.
              wa_comunnication_data-email = wa-email.
              APPEND wa_comunnication_data to comunnication_data.
               cl_bsp_server_side_cookie=>set_server_cookie(
                  EXPORTING
                   name = 'cook_comunnication_data'
                   application_namespace = 'NONE'
                   application_name = 'NONE'
                   username = 'NONE'
                   session_id = runtime->session_id
                   data_value = comunnication_data
                   data_name = 'comunnication_data'
                   expiry_time_rel = 720 ).
    OnInputProcessing:
    cl_bsp_server_side_cookie=>get_server_cookie(
          EXPORTING
           name = 'cook_comunnication_data'
           application_namespace = 'NONE'
           application_name = 'NONE'
           username = 'NONE'
           session_id = runtime->session_id
           data_name = 'comunnication_data'
          CHANGING
           data_value = comunnication_data ).
         READ TABLE comunnication_data INDEX 1 INTO wa_comunnication_data.
    regards, marcel.

    Why do you need to use cookies in the same BSP Application?
    Try to use below:
        username              = sy-uname
        application_name      = runtime->application_name
        application_namespace = runtime->application_namespace
    <i>*reward each useful answer</i>
    Raja T
    Message was edited by:
            Raja Thangamani

  • Problem with server side includes

    Hi - I have a page with two php includes which no longer display properly. They were fine when I set them up, and I haven't changed anything.  They don't display online - and also don't display on my local server (Apache).  I have identical code on other sites which does display properly, both on my server and online.  There's nothing wrong with the file paths as they display correctly on the DW display screen, and also on live display, so I'm completely baffled.
    Can anyone shed any light?
    Here's a sample page - http://www.lucidinsight.com/travelprev.shtml
    The includes should both be displaying on the right side of the page (hence the two error messages)
    Thanks!

    Hi...contrary to all logic and expectations, shtml pages DO process php includes.  I appreciate that this seems very strange but I have several examples on my sites, with identical code to that already posted, and they work.  I have to use a .php file extension rather than .asp as this is required for the file to be read by an online CMS site - rather than change the page to a php file and have to amend the site navigation, I have gone with just changing the file extension.  This works for every single one of my sites except this one, and I can't see why, hence this question...
    SW

  • Problem in Server side includes using Tomcat

    Problem in Server side includes using Tomcat:
    I am trying out small programs in servlet.
    I get one example program for server side includes from net.
    The code is:
    <HTML>
    <HEAD><TITLE>Times!</TITLE></HEAD>
    <BODY>
    <P>
    The current time in London is!!! :
    <SERVLET CODE="CurrentTime" codebase="../servlet">
    <PARAM NAME="zone" VALUE="GMT">
    </SERVLET>
    </P>
    </BODY>
    </HTML>
    I placed this test.shtml file in tomcat-home/webapps/ROOT folder and i kept the servlet in WEB-INF/classes folder.
    I renamed the servlets-ssi.jar and i removed the comments for SSI in web.xml file.
    When i run the servlet separately, i am getting the correct result. But if i run shtml file with the URL : http://localhost:8080/Test.shtml,
    i am getting the result as:
    The current time in London is!!! :
    It is not invoking servlet program.
    CAN ANYONE HELP ON THIS!
    Thanks.

    Thanks...as u said I tried putting dir & found that
    my file was saved as Ch1Servlet.java.txt instead for
    Ch1Servlet.java......So that was a problem.Now I'm
    able to compile.Oh, yeah. Notepad will do that to you. I think when you save in Notepad if you put quotes around the name "Whatever.java" then it won't add the .txt.
    But on compiling I'm getting the following error
    package java.servlet.* does not exist
    package java.servlet.http.* does not exist
    package java.io.* does not exist
    Do u the reason for this??? The servlet stuff is java[b]x.servlet. For the io stuff, I don't know, I'd have to see your code. Either you have a typo or a corrupt installation.

  • Acrobat form with server side submit, posting blank data

    Read more
    Acrobat form with server side submit, posting blank data,
    thanh xả tràn
    I have a PDF form which gets submitted to the server using a submit (server-side) button. The data is then received in XML format by a ColdFusion component which does some validation and stores it into the database.
    This PDF form is usually filled in by our clients using Adobe Reader 8 or below. While most of the times(and I mean like 96-97% of the times) everything goes well, at times we receive blank data into our database!! This renders couple of other features in our application useless as they try to parse an XML which does not exist.
    I do believe that this is not a problem at the ColdFusion side because all it does is trim(ToString(toBinary(GetHttpRequestData().content))).
    Does anyone has a clue as to why the data will be lost upon form submission?? I have done a lot of googling around it but in vain!

    There is an outside chance someone is just playing with you and submitting a blank form. Not uncommon if someone is not too familiar with forms.

  • Updating form with server-side scripts

    Hi
    For security reasons, we want to do a web service call with only server side scripts. That way we have full control over the access to the wsdl and no problems with the security.
    However, if I try to run the scripts on server-side I get no update of the data in the form... so what to do to solve that problem? Anybody with experience from that?

    To make a small update I've been messing around with various different things to be able to achieve the goal. One of the initial problems was that the Designer actually manages to create two different SOAP addresses, one of them is the correct and secure way and the other one is direct to the data source, which would be an unsecure and blocked route. That changed things a bit when I realized that.
    But still, the problem remains. If I run the script Client-Side, it works but is not an acceptable solution. If I run it Server-Side, it can't read the data and doesn't recognize the call to SOAP.connect()...
    Does anybody have any experience in webb service connection with server side scripts?

  • How to handle Back button, Browser Refresh problem at server side.

    Hi Friends,
    How to handle Back button, Browser Refresh problem at server side in java?.
    I am able to trace that,
    request.getHeader("ACCEPT") is returning value- */*
    when the browser was refreshed and returning different MIME types
    for all other actions from browser.
    I have doubt, will the above solution works always for all servers,browsers?.
    Please also specify any solution to handle back button at server side?.
    Thanks in Advance.
    Venkat..

    I'm sorry I don't think tht's the right solution for
    the above question....
    We must be aware that whatever scripting methdologies
    we either javascript/vbscript would executed @
    client(browser) side not @ server side....
    Dud If U get a good solution keep me updated.....
    THANKS & REGARDS,
    RAHULMy dear friend ...
    the bad news is that u simply cant disable or add any listener to the back button of the browser.
    When u hit the back button of ur browser the URL gets re-executed. So in case u have a JSP then the history.forward() is the best solution. [only if the page doesnt get expired similar to secure https sites]
    Now dont say that user can have javascript disabled ...those users will have a pretty touch time browsing websites since javascripts r used extensively by almost all websites.
    But in case u have an action.do or servlet call then u need to manage it using a session variable since the request will be sent to the server rather than client.
    For multiple form submittion issues read the following article in javaworld...
    Client vs. server solutions
    Different solutions can solve this multiple form submission situation. Some transactional sites simply warn the user to wait for a response after submitting and not to submit twice. More sophisticated solutions involve either client scripting or server programming.
    In the client-only strategy, a flag is set on the first submission, and, from then on, the submit button is disabled based on this flag. While appropriate in some situations, this strategy is more or less browser dependent and not as dependable as server solutions.
    For a server-based solution, the Synchronizer Token pattern (from Core J2EE Patterns) can be applied, which requires minimal contribution from the client side. The basic idea is to set a token in a session variable before returning a transactional page to the client. This page carries the token inside a hidden field. Upon submission, request processing first tests for the presence of a valid token in the request parameter by comparing it with the one registered in the session. If the token is valid, processing can continue normally, otherwise an alternate course of action is taken. After testing, the token resets to null to prevent subsequent submissions until a new token is saved in the session, which must be done at the appropriate time based on the desired application flow of control.
    for more details refer :
    http://www.javaworld.com/javaworld/javatips/jw-javatip136.html
    Hope u got the idea.
    FYI I have been using both these ideas in my credit card payment gateway project. This concept has worked really well.

  • Tabbed with Server Side Include

    Has anyone had any problems adding Server Side Include to the Spry Tabbed Pannels, everytime the I add a SSI to the tabbed content is locks up the tabs.
    Where the hell are to get support is this an interAKT, ADOBE or your on your own.

    Hello,
    I don't have an answer to your problem, because I've never tried this approach.
    However, I can tell you that this is an USER-TO-USER forum. If you need to request technical support from Adobe, you need to go here:
    http://www.adobe.com/go/support/
    regards,
    Ionut

  • WHEN or HOW to fix the problem with Thunderbolt/Side screen problems

    WHEN or HOW to fix the problem with Thunderbolt/Side screen problems (Cinema screen). Keeps blinking on & off then eventually completely off. Would have thought Apple would have fixed the problem by now as it is apparently to do with the Thunderbolt connector!.

    Hello, might it be Video card related?
    See if yours is on the recall list...
    iMac (27in): AMD Radeon 6970M Video Card Replacement Program (del 'mid 2011')
    http://xlr8yourmac.com/
    http://support.apple.com/kb/TS5167?

  • Tried opening Firefox and got error code 502 - problem with server - how do i fix please

    i tried to open internet through Firefox as usual and got repeated error message 502 (problem with server - try again in 30 seconds) - but no joy. is there a problem with the server or is there a problem at my end somehow?
    tks Paul

    Thanks for the suggestion Rhonda. You're correct in saying this is impractical though. The fact is, I can't open a tab to keep it open. After doing some online research, I was able to locate a site where I could download a previous Firefox version (6.0). Problem solved! Google: "''How can I find a previous version of Firefox''. As I stated in my original question, Mozilla should not update w/o making certain it doesn't create these issues. I spent hours on this. I also turned off auto updates. I appreciate your suggestion. Thank you!

  • I cannot sign in to icloud because of problems with server

    I have Lost It All!
    I cannot find all of my iTunes info.
    I tried signing into iCloud due to a message "problem with server".

    I have used the solution below to fix mine and others that have run into this issue.
    Start --> Programs --> Accessories (Right Click on Command Prompt) --> Run as Administrator
    then type in:  "Netsh winsock reset"  (-without the quotes-)
    Hit enter, restart PC, iCloud For PC should now connect without any server errors
    (This solutions will work in some instances when trying to fix errors associated when you are unable to connect to iTunes also.)

  • Why my Ipod send a message like "a problem with server bloq connection of ID Apple"

    Hi i just buy an Ipod Touch 8GB is my second one the last one have lost in the street, i Know my Apple ID and my password but when Itry to setup the new one send that message i am from mexico and my message is in spanish more less like this Impossible start session A problem with server is bloking the connection with the ID Apple . Try to connect again.

    What is the error message you are receiving and it is from iTunes or your iPod Touch?
    B-rock

  • Poriblems with Server Side Include

    I amtrying to convert to Spry Menus using SSI. into a template.  been beating my head against the wall on what can go in and what can't in an include fil but that turns out not be my big problem
    when in using Dredamweaver CS5   and  do a server side I have major issues at the differeent levels
    i have the file in a directory off the site root called  Includes
    the file i am trying to include
    using a page at the root level my statement using document relation is
    <!--#include file="Includes/Navbar.html" -->
    works fine   channg to site relation does not work   Ok so far so good
    however a page in a lower level director gets the dreaded
    [an error occurred while processing this directive]
    and i get an error
    [Sat Sep 01 16:51:42 2012] [error] [client 174.57.220.98] unable to include file "../Includes/Navbar.html" in parsed file /usr/local/www/kasdivi.com/blog/beachguide.html
    and also
    Warning - PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/memcache.so' - Cannot open &quot;/usr/local/lib/php/20100525-debug/memcache.so&quot;
    Unknown(0) : Warning - PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/apc.so' - Cannot open &quot;/usr/local/lib/php/20100525-debug/apc.so&quot;
    Unknown(0) : Warning - PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/pdf.so' - Cannot open &quot;/usr/local/lib/php/20100525-debug/pdf.so&quot;
    Unknown(0) : Warning - PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/memcache.so' - Cannot open &quot;/usr/local/lib/php/20100525-debug/memcache.so&quot;
    Unknown(0) : Warning - PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/apc.so' - Cannot open &quot;/usr/local/lib/php/20100525-debug/apc.so&quot;
    Unknown(0) : Warning - PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/pdf.so' - Cannot open &quot;/usr/local/lib/php/20100525-debug/pdf.so&quot;
    the php errors don't seem mahor although they seem to have i have another iisue or are the related
    but that aside
    If I move the include file to the same level as the pade with approprirate include statement no problem it works
    if i move it to a subditrectory  then it doesn't work
    summary
    i can get SSI to work for page on the root level using Includes from a subdirectory
    but on other level I must have the include in the same directory with the page
    any thoughts??

    Your menu links are inside an include file.  There should be nothing else inside that file except the list tags, classes & hyperlinks.  Links are relative to the parent page(s) in which they will occur.
    All supporting scripts and CSS go inside the parent page -- in your case, the Template.dwt file.
    Local Files Panel:
         -Includes
              menu.html
              footer.html
         +Styles
         +SpryAssets
         -Templates
              main.dwt
         about.shtml
         contact.shtml
         index.shtml
         services.shtml
    Problems will occur if you use document relative link paths with pages that are located inside sub and sub-sub folders. Obviously, you want to avoid doing that.  For best results, keep all your site pages at root level.
    Hope this helps,
    Nancy O.

  • Having problem with client side Authentication.

    Hi,
    I am haveing a problem enabling client side authentication with SSL on
    weblogic 5.1.
    I have set up the .properties files as explained, however it appears
    my client is not sending a certificate back to the server. The same
    client however works perfectly (using the same keystore file) with a
    sample ClassFileSErver webserver from the jsse distribution. (the
    client is a very slightly modified version of
    SSLSocketClientWithClientAuth sample that comes with Jsse)
    Below I've included a section of the debug dump from the interactions.
    The only other difference I can see is the cipher suites offered by
    the servers.
    Weblogic offers type 0 or 9, and agrees on type 9
    (SSL_RSA_WITH_DES_CBC_SHA), whereas ClassFileServer offer type 0 or 5
    and settles on type 5 (SSL_RSA_WITH_RC4_128_SHA).
    I am using the same keystore for both examples. Both servers request
    an RSA client cert.... I'm out of ideas.
    Any help would be greatfully received.
    Cheers,
    Keith
    Debug dump information
    =====================================
    1/Weblogic server.
    *** CertificateRequest
    Cert Types: RSA,
    Cert Authorities:
    <CN=K H, OU=itsmobile, O=itsmobile, L=Dublin, ST=Dublin, C=ie>
    <[email protected], CN=Demo Certificate Authority,
    OU=Security, O=BEA WebLogic, L=San Francisco, ST=California, C=US>
    <CN=Thawte Test CA Root, OU=TEST TEST TEST, O=Thawte Certification,
    ST=FOR TESTING PURPOSES ONLY, C=ZA>
    [read] MD5 and SHA1 hashes: len = 427
    0000: 0D 00 01 A7 01 01 01 A3 00 67 30 65 31 0B 30 09
    .........g0e1.0.
    0010: 06 03 55 04 06 13 02 69 65 31 0F 30 0D 06 03 55
    ..U....ie1.0...U
    0020: 04 08 13 06 44 75 62 6C 69 6E 31 0F 30 0D 06 03
    ....Dublin1.0...
    0030: 55 04 07 13 06 44 75 62 6C 69 6E 31 12 30 10 06
    U....Dublin1.0..
    0040: 03 55 04 0A 13 09 69 74 73 6D 6F 62 69 6C 65 31
    .U....itsmobile1
    0050: 12 30 10 06 03 55 04 0B 13 09 69 74 73 6D 6F 62
    .0...U....itsmob
    0060: 69 6C 65 31 0C 30 0A 06 03 55 04 03 13 03 4B 20
    ile1.0...U....K
    0070: 48 00 AC 30 81 A9 31 0B 30 09 06 03 55 04 06 13
    H..0..1.0...U...
    0080: 02 55 53 31 13 30 11 06 03 55 04 08 13 0A 43 61
    .US1.0...U....Ca
    0090: 6C 69 66 6F 72 6E 69 61 31 16 30 14 06 03 55 04
    lifornia1.0...U.
    00A0: 07 13 0D 53 61 6E 20 46 72 61 6E 63 69 73 63 6F ...San
    Francisco
    00B0: 31 15 30 13 06 03 55 04 0A 13 0C 42 45 41 20 57
    1.0...U....BEA W
    00C0: 65 62 4C 6F 67 69 63 31 11 30 0F 06 03 55 04 0B
    ebLogic1.0...U..
    00D0: 13 08 53 65 63 75 72 69 74 79 31 23 30 21 06 03
    ..Security1#0!..
    00E0: 55 04 03 13 1A 44 65 6D 6F 20 43 65 72 74 69 66 U....Demo
    Certif
    00F0: 69 63 61 74 65 20 41 75 74 68 6F 72 69 74 79 31 icate
    Authority1
    0100: 1E 30 1C 06 09 2A 86 48 86 F7 0D 01 09 01 16 0F
    .0...*.H........
    0110: 73 75 70 70 6F 72 74 40 62 65 61 2E 63 6F 6D 00
    [email protected].
    0120: 8A 30 81 87 31 0B 30 09 06 03 55 04 06 13 02 5A
    .0..1.0...U....Z
    0130: 41 31 22 30 20 06 03 55 04 08 13 19 46 4F 52 20 A1"0
    ..U....FOR
    0140: 54 45 53 54 49 4E 47 20 50 55 52 50 4F 53 45 53 TESTING
    PURPOSES
    0150: 20 4F 4E 4C 59 31 1D 30 1B 06 03 55 04 0A 13 14
    ONLY1.0...U....
    0160: 54 68 61 77 74 65 20 43 65 72 74 69 66 69 63 61 Thawte
    Certifica
    0170: 74 69 6F 6E 31 17 30 15 06 03 55 04 0B 13 0E 54
    tion1.0...U....T
    0180: 45 53 54 20 54 45 53 54 20 54 45 53 54 31 1C 30 EST TEST
    TEST1.0
    0190: 1A 06 03 55 04 03 13 13 54 68 61 77 74 65 20 54
    ...U....Thawte T
    01A0: 65 73 74 20 43 41 20 52 6F 6F 74 est CA Root
    main, READ: SSL v3.0 Handshake, length = 4
    *** ServerHelloDone
    [read] MD5 and SHA1 hashes: len = 4
    0000: 0E 00 00 00 ....
    main, SEND SSL v3.0 ALERT: warning, description = no_certificate
    main, WRITE: SSL v3.0 Alert, length = 2
    And below is a sample when I used the ClassFileServer.
    This time the client (same src) returned a certificate.
    2/ClassFileSErver (from Sun Jsse distribution)
    *** CertificateRequest
    Cert Types: DSS, RSA,
    Cert Authorities:
    <CN=K H, OU=itsmobile, O=itsmobile, L=Dublin, ST=Dublin, C=ie>
    [read] MD5 and SHA1 hashes: len = 114
    0000: 0D 00 00 6E 02 02 01 00 69 00 67 30 65 31 0B 30
    ...n....i.g0e1.0
    0010: 09 06 03 55 04 06 13 02 69 65 31 0F 30 0D 06 03
    ...U....ie1.0...
    0020: 55 04 08 13 06 44 75 62 6C 69 6E 31 0F 30 0D 06
    U....Dublin1.0..
    0030: 03 55 04 07 13 06 44 75 62 6C 69 6E 31 12 30 10
    .U....Dublin1.0.
    0040: 06 03 55 04 0A 13 09 69 74 73 6D 6F 62 69 6C 65
    ..U....itsmobile
    0050: 31 12 30 10 06 03 55 04 0B 13 09 69 74 73 6D 6F
    1.0...U....itsmo
    0060: 62 69 6C 65 31 0C 30 0A 06 03 55 04 03 13 03 4B
    bile1.0...U....K
    0070: 20 48 H
    *** ServerHelloDone
    [read] MD5 and SHA1 hashes: len = 4
    0000: 0E 00 00 00 ....
    matching client alias : rsakey
    *** Certificate chain

    Matt,
    Did you read this article:
    https://wiki.sdn.sap.com/wiki/display/BSP/Using%20Proxies
    This explains how to properly setup the HTTPURLLOC table.
    In your case you should have entries that look something like this:
    40 HTTP   * <internal host name> <https port>
    50 HTTPS * <external host name> <https port>
    In addition you need to run the report to determine if the proxy configuration is setup properly.  The URL should be run with the
    https://<externalhostname>/sap/bc/bsp/sap/system_test/test_proxy.htm
    Take care,
    Stephen

Maybe you are looking for

  • IOS Remote Desktop App resolves hostname but throws Host is not reachable error.

    Hello, I am trying to use the Remote Desktop app on my iPad running iOS 7.0.2 to connect to a server through our Juniper VPN. When I type the hostname or IP address I get an error that say "Host is not reachable". If I connect through my Mac I have n

  • The problem is the media or the driver ?

    I have a MATSHITA DVD-R UJ-846 in my iMac G5 iSight and recently, after a year, the driver starts misbehaving: in some cases (not always) while burning DVDs it almost stops at about one third of the DVD making various noises, but after a while it res

  • Retrieve files from MAC BOOK HD

    Hello, Could anyone refer me to some instructions for recovering some files from a MAC BOOK Hard Drive? The laptop will no longer start up after Installed some updates. When it boots up it reverts to a UNIX style command prompt. Before it gets to thi

  • BAPI / FM for payment proposal

    Hi, Can somebody tell me what is the BAPI/FM to Payment Proposal for Vendors only (I am talking interms of F110 transaction as you know there are 2 tasks 1 is payment proposal and the other one is Payment run per my requirement i have to do only Paym

  • BI and Reporting

    A few years ago I managed a development shop that created many custom applications for the company. We also used Crystal Reports that ran stand alone or we embedded them into our .NET apps. With the demand of users wanting to see their data easier an