New session id from tomcat

I have .jsp page.I use tomcat server .When session is valid and i print sessionid in jsp using function session.getId() it print session id but when session is expire then new session id is printed .I didn't understand why this behavior.I set session timeout to 5 sec fro debugging perpose .what i expect is
that session becomes null.My code is
<%     
     UserData ud=null;
     if(session == null){
     }else{
          if(session != null){
               out.println("BEFORE :" + session.getId() + "<BR>");
               //ud=(UserData) session.getAttribute("ClientObject");
               out.println("AFTER :" + session.getId() + "<BR>");
          if(ud == null){
               //response.sendRedirect("../ServletLogout");
               //response.sendRedirect("www.google.com");
               out.println("UD==NULL" + session.getId() + "<BR>");
     out.println("Welcome to tracking page");
%>
Thanks
Vijay

I imagine that /test and /TestSession/test/test.jsp fall under different web app context paths.
When the Servlet container creates a JSESSIONID cookie to track the session, it includes a path attribute. The path attribute controls in which requests the browser will send the cookie. By default, the path attribute is set to the web app context path. If the context path is /TestSession, the path attribute will be set to /TestSession and the browser won't include the cookie when it makes requests to /test.
You can override the cookie path with a sun-web.xml deployment descriptor:
<sun-web-app>
  <session-config>
    <cookie-properties>
      <property name="cookiePath" value="/"/>
    </cookie-properties>
  </session-config>
</sun-web-app>You could also rewrite the outbound Set-cookie: header with an Output directive in obj.conf.
A simpler, less brittle solution would be to redirect requests for /test instead of restarting them.

Similar Messages

  • Logon_time in v$session gives old date for new session

    Hi,
    I have a unique issue whenever I run v$session for username='A' and status= active I see logon_time as old date in this its '12-MAY-2008'. Now there are total 150 sessions for username='A'. 2 are status= Active, 1 is status=Killed and 147 are status=INACTIVE.
    So whenever a new session comes from application side it activates the INACTIVE session and date remains 12-May-2008 instead of current date.
    Also when you logon directly to Oracle using user 'A' , again same logon_time in v$session, rather than current date in logon_time. We are using Oracle 9.2.0.6 on Unix.
    Any way I can resolve this issue?
    Regards,
    Tushar Kathe

    Hi,
    select username,logon_time,machine,terminal from v$session where status='ACTIVE';
    USERNAME LOGON_TIM MACHINE TERMINAL
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    04-MAY-08 prod1.test.com UNKNOWN
    SYS 22-MAY-08 prod1.test.com
    pts/4
    TEST 12-MAY-08 app20.test.com
    SYS 22-MAY-08
    16 rows selected.
    You can see the schema test shows logon_time as 12-May-08 but he has infact logon in the system today so should have today's date. The Toad time output I don't have.
    Regards,
    Tushar Kathe

  • How to call a transaction (in a new session) from a program

    Hi ,
    I need to call a transaction from my report on the click of a button in toolbar.
    But the transaction should open in a new session.
    This is the code that i have written, MM03 is getting opened in the same session.
    call transaction 'MM03' and skip first screen.
    Hope that my question is clear.
    Thanking you in advance..
    Shankar

    check this
    <b>CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'TEST'
      DESTINATION 'NONE'
      EXPORTING
          TCODE = 'SM59'
      EXCEPTIONS
        COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT
        SYSTEM_FAILURE        = 2 MESSAGE MSG_TEXT.
      IF SY-SUBRC NE 0.
        WRITE: MSG_TEXT.
      ELSE.
        WRITE: 'O.K.'.
      ENDIF.</b>
    <b>u can avoid such errors thru this FM
    check FI_DUPLICATE_INVOICE_SHOW program for sample code.</b>
    regards
    Prabhu
    Message was edited by: Prabhu Peram

  • Calling an URL/Hyperlink in new session on browse from button.

    Dear experts!
    I created a Z program on SAP GUI, and configured the logical link for this program and call it from Web UI Client. In component BTCUSTOMER_H, i redefined DO_PREPARE_OUTPUT to maintained a button called 'FORWARD'. I create method EN_ONFORWARD to process. My problem is: on component BTCUSTOMER_H, when i click on FORWARD button, a new session on browse appear and display the Z program above or navigate to my Z program ( i can navigate to a standard transaction for example: from an Opportunity, i can maintain a button and navigate to a SaleOrder by click to this button). When i searched on forum, i found some thread said about this problem but i still can not resolve my problem. Can any one show me the details, how i configure for the Z program and processing code in method EH_ONFORWARD to resolve my problem.
    Can anyone help me, please!
    Longnd.

    Hi,
    Please follow the steps for calling you logical link.
    When you create a Logical Link, you also should give the Target ID.
    Now In the Naivigation Bar Profile you will have some thing called as Define Geniric OP Mapping
    Here add a entrty with any Name , and give your target ID here.
    For eg : ZCall_ZREPORT :Target Id ; Given in the step 1.
    And in you even handler of the button write the followng code.
      DATA: lr_nav_descr    TYPE REF TO if_bol_bo_property_access.
      DATA:  lr_navigation  TYPE REF TO if_crm_ui_navigation_service.
      DATA: lr_col          TYPE REF TO cl_crm_bol_bo_col.
      cl_crm_ui_descriptor_obj_srv=>create_ui_object_based(
        EXPORTING iv_ui_object_type   = ZCall_ZREPORT
                  iv_ui_object_action = 'B'
        RECEIVING rr_result           = lr_nav_descr ).
      CHECK lr_nav_descr IS BOUND.
      lr_navigation = cl_crm_ui_navigation_service=>get_instance( ).
      CHECK lr_navigation IS BOUND.
    Check whether navigation is supported
      IF lr_navigation->is_dynamic_nav_supported( lr_nav_descr ) NE abap_true.
        RETURN.
      ELSE.
        CREATE OBJECT lr_col.
        lr_col->if_bol_bo_col~add( iv_entity = lr_nav_descr ).
        lr_navigation->navigate_dynamically( lr_col ).

  • How to revoke everything from a user when opening a new session.

    HI,
    I am using oracle 10g Express Edition and SQL Developer.
    I have 2 user, 2 database connections in my SQL Developer.
    First user is Oracle and its database connection is called TCF.
    Second user is SMITH and its database connection is called TCF_SMITH.
    Oracle user has privileges to do anything.
    SMITH user has no privileges except for CREATE SESSION.
    What I am trying to achieve is assign a user to a role (this role will have grants to select, insert , update from tables) for the current session (this step is successful), and then revoke
    The role from that user (set it back to its default/or revoke everything from it) if opening another session, or session has been terminated (what I am trying to achieve).
    From TCF I was able to do the following:
    CREATE synonym SMITH.EMP_IOD FOR EMP_IOD;
    CREATE ROLE TCF_I;
    GRANT SELECT, INSERT, UPDATE ON EMP_IOD TO TCF_I;
    GRANT TCF_I TO SMITH;In TCF_SMITH
    SMITH has the same privileges as TCF_I.
    so, smith now can select, insert , and update from EMP_IOD table.
    If I open another TCF_SMITH session, and select * from EMP_IOD I should not be able to see any of the records.
    I am trying to make this session base only. Unfortunately when opening another session I am able to select, update and insert records in the new session.
    Is there a way to make this session based ?
    How can I revoke everything from user SMITH from TCF connection ?
    Thanks,

    Oh My Good Lord!
    Rooney,
    What are you attempting to do ?
    In programming anything can be achieved, but there are speicifc tools to solve specific problems .
    I think you are trying to use fork to paint a wall* (If painting the wall indeed is your requirement).
    The "need" as you say...
    +The need for this is to grant the user different roles each time the user logs in.
    for example I can log in 5 different time in one week with different role each time.
    Moday I could have access to X,Y,Z,
    Tuesday I could have access to X,A,B
    Wednesday I could have access to A,B,C.+
    ... is to solve WHAT PROBLEM?
    Please describe your original requirement , not what you think should be the solution/tool to satisfy the requirement.
    In your previous thread you "solved" privilege/role problem by creating SYNONYM. That does not compute at all.
    Re: database roles seems like its not working for me - your help is appreciated
    Think about it. We are here to help each other as best we can.
    Please read more* about Oracle capabilities and "tools" it provides.
    http://tahiti.oracle.com/
    Especially the Oracle Concepts Guide ...
    http://download.oracle.com/docs/cd/B14117_01/server.101/b10743.pdf
    Also, please take time to respond as "helpfully" as possible. each response from you should take you closer to the solution.
    Hopefully, your original requirement will be solved.
    vr,
    Sudhakar B.

  • Installing Firefox 4 changed my tabs options so when I start load it starts a new session. I want to recover my tabs from my previous session. How?

    Installing Firefox 4 changed my tabs options so when I loaded, it has started a new session and not loaded the tabs I had open when I closed my last session.
    I want to recover my tabs from my previous session. Possible?
    My previous session had been open for over a week so this history is basically useless as it's cluttered with thousands of pages.

    # Press Alt+T
    # Click on Options
    # Go to General Panel
    # Under the category When Firefox Starts select "Show my windows and tabs from last time"
    ''<hr>Note: If anyone's reply has solved your problem, then please mark that reply as "Solved It" to the right of that reply after logging in your account. It will help us to concentrate on new questions.''

  • Adoption of CFID/CFTOKEN from request for new session

    Hi
    We've noticed that ColdFusion automatically uses CFID/CFTOKEN
    from the request, if there's no session available for this token
    combination and ColdFusion creates a new session. Is there a way to
    tell ColdFusion that it shouldn't use the values from the request
    but generate a pair of its own?
    Regards
    Sargon

    10.12 is the latest and greatest SW version for the device (from mid-2010). 
    I'm sad to say, but this device model has been out of production already for a long while and no new SW releases can be expected. Also some of the things you listed are such, which would not even be fixable by new SW version, but would require other changes.
    you could probably try updating e.g. the browser app to a newer version via http://download.browser.ovi.com.
    http://www.microsoft.com/en/mobile/nokia-x-updates/
    http://www.microsoft.com/en/mobile/nokia-x2-update/
    http://www.microsoft.com/en/mobile/asha-software-update/
    http://www.microsoft.com/en/mobile/support/software-update/wp8-software-update/
    http://www.developer.nokia.com/Community/Wiki/Nokia_firmware_change_logs
    https://twitter.com/LumiaSWUpdates

  • SAPGUI iview from SAP Portal = create new session  results in empty screen

    we use ep700 sp10 and sapgui 6.40 compilation 5 . we have a sapgui iview which starts the login to the R/3 system and shows the user menu with some transactions.
    if the user now creates a new session  with the buttom "create new session" in the sapgui screen he gets a new but empty session  ==> i expected , that he gets the normal sap entry screen with the user and sap menu.
    does anybody now how to get that ?
    many thanks hannes toefferl

    Hi,
    Go to the file .../irj/root/WEB-INF/portal/portalapps/com.sap.portal.appintegrator.sap/property/Transaction/WinGuiRenderLayer.properties
    In this file, change -wp=true to -wp=false and also Workplace=true to Workplace=false.
    Restart the portal for the change to take effect.
    Hope this helps.
    Cheers,
    Sunil
    PS: Reward points for helpful answers.

  • Accidentally pushed "start new session" after crash. Tabs are gone from history.

    After one of the ten crashes per day since I upgraded, I accidentally pushed, "Start New Session" instead of "restore". So, my '''closed window/tab records were wiped out''', and in my history, it only has those tabs that I opened anew this morning - NOT the ones I had saved so I could look at them later. A lot of these I had not bookmarked yet.

    If you haven't closed Firefox then see if you still can restore that session via Firefox > History > Restore Previous Session.
    You should update the Flash and Java plugin to the latest versions
    * http://www.mozilla.com/plugincheck/
    See also:
    * http://kb.mozillazine.org/Firefox_crashes
    * [[Firefox crashes]]

  • How to prevent Spaces from creating a new session after logging out

    Hi,
    I'm using WebCenter Spaces (11.1.1.4), and I notice that the user is redirected to the landing page after logging out which causes a new HTTP session to be created. I'd like to avoid this behavior, and I was told that this could be done by creating a custom logout page with pure HTML and redirect the user there upon logout. How do I go about doing this? I couldn't find anything related to this in the documentation.
    Thanks,
    Robert

    What's wrong with a new session?
    When you logout, the current session will be destroyed so it's just normal that he creates a new webcenter that does not contain a user credential.

  • [SOLVED] KDE Start New Session doesn't work from lock screen

    On my laptop, if I lock the KDE 4 session and then click Switch Users > Start New Session, I get a login screen and can log in as a different user. All good.
    If I do the same thing on my desktop, it doesn't work. When I click Switch Users > Start New Session, it doesn't start a new session or switch VTs. Instead, I just get reprompted for the existing user's password.
    Both machines are running fully updated Arch. Anyone know how I can troubleshoot this? The only difference I can think of between the laptop and desktop is that the desktop has nomodeset specified as a kernel boot parameter. (It won't boot without it.) Could this be interfering with automatic VT switching? Manual VT switching (e.g. Ctrl+Alt+F1) works fine.
    Last edited by Rob_H (2014-12-27 14:28:06)

    Little more detail. Checking the journal, I can see Xorg is failing to start on display :1. If I compare Xorg.0.log with Xorg.1.log, it appears that it's not finding the proprietary NVIDIA driver in the second case. Don't know why it would be any different for :1, though. See?
    Xorg.0.log (good):
    [ 10.219] (II) LoadModule: "glx"
    [ 10.220] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 10.293] (II) Module glx: vendor="NVIDIA Corporation"
    [ 10.293] compiled for 4.0.2, module version = 1.0.0
    [ 10.293] Module class: X.Org Server Extension
    [ 10.294] (II) NVIDIA GLX Module 343.36 Mon Dec 1 15:50:02 PST 2014
    [ 10.294] (II) Applying OutputClass "nvidia" to /dev/dri/card0
    [ 10.294] loading driver: nvidia
    [ 10.294] (==) Matched nvidia as autoconfigured driver 0
    [ 10.294] (==) Matched nouveau as autoconfigured driver 1
    [ 10.294] (==) Matched nv as autoconfigured driver 2
    [ 10.294] (==) Matched nouveau as autoconfigured driver 3
    [ 10.294] (==) Matched nv as autoconfigured driver 4
    [ 10.294] (==) Matched modesetting as autoconfigured driver 5
    [ 10.294] (==) Matched fbdev as autoconfigured driver 6
    [ 10.294] (==) Matched vesa as autoconfigured driver 7
    [ 10.294] (==) Assigned the driver to the xf86ConfigLayout
    [ 10.294] (II) LoadModule: "nvidia"
    [ 10.294] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
    [ 10.300] (II) Module nvidia: vendor="NVIDIA Corporation"
    [ 10.300] compiled for 4.0.2, module version = 1.0.0
    [ 10.300] Module class: X.Org Video Driver
    Xorg.1.log (bad):
    [ 2153.825] (II) LoadModule: "glx"
    [ 2153.825] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 2153.833] (II) Module glx: vendor="NVIDIA Corporation"
    [ 2153.833] compiled for 4.0.2, module version = 1.0.0
    [ 2153.833] Module class: X.Org Server Extension
    [ 2153.833] (II) NVIDIA GLX Module 343.36 Mon Dec 1 15:50:02 PST 2014
    [ 2153.833] (==) Matched nouveau as autoconfigured driver 0
    [ 2153.833] (==) Matched nv as autoconfigured driver 1
    [ 2153.833] (==) Matched modesetting as autoconfigured driver 2
    [ 2153.833] (==) Matched fbdev as autoconfigured driver 3
    [ 2153.833] (==) Matched vesa as autoconfigured driver 4
    [ 2153.833] (==) Assigned the driver to the xf86ConfigLayout
    [ 2153.833] (II) LoadModule: "nouveau"
    [ 2153.833] (WW) Warning, couldn't open module nouveau
    Any idea what would cause it to work for :0 but fail for :1?

  • New session created with every request

    Hi there,
    I have an web application that we used to deploy on tomcat, websphere and bea without any trouble. We are trying to move to support OAS and the application gives this peculiar behavior:
    A new session is created with every single request by the client browser. I have searched these forums for the better part of today and read some interesting similar cases but none of the fixes seem to have any effect on my problem.
    Is there a different way I need to request the session object from the request in the app for OAS? Or is there a configuration that I should have? I am deploying the app as a .war file. Is there a better way to deploy on OAS, should I stick the war in a .ear?
    Any help on this would be most greatly appreciated!
    Thanks,
    -Adam

    I have a problem that matches with this subject line but its somewhat different. This original posting wants to create new session and invalidate the existing one but my problem is to keep the session invalide if it has expired for the browser.
    Anyways, here is my problem. I have JSP named entity_actions.jsp which has 3 pop-up links that opens up with code like:
    window.open('restaurantentry.do?entityName=restaurant')
    window.open('districtentry.do?entityName=district')
    window.open('baseentry.do?entityName=base')
    My web.xml has this tag:
    <session-config>
    <session-timeout>5</session-timeout>
    </session-config>
    And the way forward the response for each request is:
    context.getRequestDispatcher(urlString).forward(request, response);
    The code I check for session timeout is:
    private void checkForSessionTimeOut(HttpServletRequest request)
    throws SessionTimeoutException
    HttpSession current_session = request.getSession(false);
    logger.info(CLASS_OBJECT, "Session in checkForSessionTimeOut(): "+current_session);
    if (current_session == null)
    logger.error(CLASS_OBJECT, "SessionTimeOutException has thrown.");
    throw new SessionTimeoutException("sessionTimeOut");
    Now lets say I want to show the end user session expiry page after 5 mins of idle time. Now from entity_actions.jsp when I click/open any one popup first time after 5 mins of idle time/session expire,
    logger.info(CLASS_OBJECT, "Session in checkForSessionTimeOut(): "+current_session);
    this loggers shows current_session as 'null' and I can display session exp mesg on the popup page. But when I click/open any other popup or any other link on the page it DOES WORK instead of having current_session = null, it creates new one. And I can see the sessionid which is different than fist session created on the same base page/browser.
    The same pattern of code used to work on Tomcat and JRun before for showing consistant session expiry on all the clicks being made on the same browswer after session gets expire.
    Why OC4J / JDev 10.1.3 is creating new session on the same browser even after session has expired?
    How can I fix this?
    Thanks

  • Problems moving app from tomcat 321 to 4.0

    I have serious problems moving an old app from tomcat 321 to 4.0. I tried just moving the entire webapps/<myApp> to the new server, and also using a war-file, but I get a message saying that one of my Beans doesn't exist.
    Its a bean in the /WEB-INF/classes subdir, so its in an annonymous package. The jsp-page accessing it uses the
    <jsp:useBean id="dateBean" class="DateBean" scope="session" />
    tag.
    Error message from jsp-page says: org.apache.jsp.DateBean not found.
    Seems my tomcat4 doesn�t use the web-inf/classes in its classpath???
    regards
    Markus

    I don't believe the current Servlet specs allow for anonymous packages. Try moving your class into its own package (under WEB-INF/classes/packagename/) and see if that fixes the problem. Also be sure to change the <jsp:useBean> tag to give the full classname in the class attribute.

  • Upgraded from Tomcat 3.3.1 to Tomcat 4.0.4 receiving Stack

    I moved my war file into my new Tomcat 4.0.4 webapps directory since I
    need to upgrade in order to use some 'other' tags and I'm receiving
    the following stacktrace when I try to hit the first page in my
    application....
    Any ideas as to why this is occurring?
    StackTrace Below:
    Application Error
    javax.servlet.ServletException: Invalid request - request handler
    "VoyagerLogin"
    not found
    at
    com.iplanet.jato.ApplicationServletBase.onRequestHandlerNotFound(Appl
    icationServletBase.java:1153)
    at
    com.iplanet.jato.ApplicationServletBase.fireRequestHandlerNotFoundEve
    nt(ApplicationServletBase.java:977)
    at
    com.iplanet.jato.ApplicationServletBase.getViewBeanInstance(Applicati
    onServletBase.java:717)
    at
    com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationSer
    vletBase.java:429)
    at
    com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase
    .java:312)
    at
    com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.
    java:282)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:247)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:193)
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:243)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:566)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:472)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:190)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:566)
    at
    org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve
    .java:246)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:564)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:472)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at
    org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
    2347)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:180)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:566)
    at
    org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
    rValve.java:170)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:564)
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:170)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:564)
    at
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
    468)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:564)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:472)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:174)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:566)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:472)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at
    org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
    r.java:1027)
    at
    org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
    va:1125)
    at java.lang.Thread.run(Thread.java:536)

    There's definitely something wrong with my application directory or
    the .war file because I can run the JatoSample and the JatoTutorial
    applications fine from within Tomcat-4.0.4.....
    --- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...>
    wrote:
    Send me the war file with source. I'll see if I can run it on mymachine
    or figure out what the issue is.
    send to: craig.conover@s...
    craig
    chubbykidd wrote:
    Total disaster. My application will not work. I've closed all
    instances of Netscape and even logged off the SunRay I'm working on
    and I still get the same error. I then took your advice and
    downloaded
    Resin and installed it. Now when I hit the following URL...
    http://localhost:8080/Voyager/voyagermodule/VoyagerLogin I receivean
    'Application Error' page which states "Invalid request - request
    handler VoyagerLogin not found"
    I don't know what to do, I'm running out of possiblities...
    Help :-/
    --- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...>
    wrote:
    This will happen if the browser was already running, but you say
    you
    closed your browsers first. Make sure all instances of the browser
    are
    closed. For IE, when you launch one IE instance from another
    (Ctrl-N),
    they share the same process space.
    For Netscape, all instances always share the same process space.
    This
    includes the Mail client, so be sure all of them have been closed.
    I might suggest test running in Resin from Caucho (www.caucho.com)
    to
    make sure it's not a Tomcat bug or setup/install issue. Resin
    installs
    with just an unzip, and drop the war file in the webapps dir, and
    start
    the server.
    c
    chubbykidd wrote:
    I deleted my jakarta-tomcat-3.3.1 directory and now I'm getting a
    different error when I try to hit the first page in my
    application:
    >>>>
    The URL of my app is:
    http://localhost:8080/Voyager/voyagermodule/VoyagerLogin
    StackTrace below.... I've restarted tomcat after this stack was
    thrown
    and I've also closed my browsers and started over and I keep
    getting
    the same outcome....
    javax.servlet.ServletException: This session has timed out
    at
    com.iplanet.jato.ApplicationServletBase.onSessionTimeout(ApplicationServletBas\
    e.java:1075)
    >>>
    >>>
    at
    com.iplanet.jato.ApplicationServletBase.fireSessionTimeoutEvent(ApplicationSer\
    vletBase.java:941)
    >>>
    >>>
    at
    com.iplanet.jato.ApplicationServletBase.fireSessionEvents(ApplicationServletBa\
    se.java:649)
    >>>
    >>>
    at
    com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.\
    java:427)
    >>>
    >>>
    at
    com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:312\
    >>>
    >>>
    at
    com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:282)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi\
    lterChain.java:247)
    >>>
    >>>
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai\
    n.java:193)
    >>>
    >>>
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java\
    :243)
    >>>
    >>>
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566\
    >>>
    >>>
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java\
    :190)
    >>>
    >>>
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566\
    >>>
    >>>
    at
    org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246\
    >>>
    >>>
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564\
    >>>
    >>>
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at
    org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566\
    >>>
    >>>
    at
    org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.ja\
    va:170)
    >>>
    >>>
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564\
    >>>
    >>>
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564\
    >>>
    >>>
    at
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564\
    >>>
    >>>
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:1\
    74)
    >>>
    >>>
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566\
    >>>
    >>>
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at
    org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:10\
    27)
    >>>
    >>>
    at
    org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
    at java.lang.Thread.run(Thread.java:536)
    [85] wb138834@s...:
    --- In SunONE-JATO@y..., Todd Fast <Todd.Fast@S...> wrote:
    This error means the page/ViewBean you requested was not found.
    What is the
    URL you are using? Also make sure everything is compiled.
    Todd
    ----- Original Message -----
    From: "chubbykidd" <bacon33@o...>
    Sent: Thursday, August 29, 2002 11:13 AM
    Subject: [SunONE-JATO] Upgraded from Tomcat 3.3.1 to Tomcat
    4.0.4
    >>>>>
    >>>>>
    >>>>>
    >>>>>
    receiving
    Stack
    I moved my war file into my new Tomcat 4.0.4 webapps directory
    since I
    need to upgrade in order to use some 'other' tags and I'm
    receiving
    the following stacktrace when I try to hit the first page in my
    application....
    Any ideas as to why this is occurring?
    StackTrace Below:
    Application Error
    javax.servlet.ServletException: Invalid request - request
    handler
    "VoyagerLogin"
    not found
    at
    com.iplanet.jato.ApplicationServletBase.onRequestHandlerNotFound(Appl
    icationServletBase.java:1153)
    at
    com.iplanet.jato.ApplicationServletBase.fireRequestHandlerNotFoundEve
    nt(ApplicationServletBase.java:977)
    at
    com.iplanet.jato.ApplicationServletBase.getViewBeanInstance(Applicati
    onServletBase.java:717)
    at
    com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationSer
    vletBase.java:429)
    at
    com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase
    .java:312)
    at
    com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.
    java:282)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:247)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:193)
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:243)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:566)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:472)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:190)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:566)
    at
    org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve
    .java:246)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:564)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:472)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at
    org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
    2347)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:180)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:566)
    at
    org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
    rValve.java:170)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:564)
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:170)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:564)
    at
    org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
    468)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:564)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:472)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:174)
    at
    org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
    .java:566)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
    a:472)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at
    org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
    r.java:1027)
    at
    org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
    va:1125)
    at java.lang.Thread.run(Thread.java:536)
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

  • New session id with hosts or CNAME entry

    I am hoping someone can help me out with a problem I am having with host names and session ids. This may be something simple that I have forgotten about, so here it goes.
    Going through the jsp's below give different results, depending on the URL you use.
    If you use http://localhost:8080 or http://machine_name:8080
    The same session id will be seen on each page.
    If you use http://test_01:8080
    A different session id is displayed on each page.
    What would cause this to happen?
    Add the following files under the ROOT webapp of the default Tomcat 4.1.30 installation. Of course, I understand that storing data in servlet context like this is not a good idea, but for testing purposes it will do what is needed.
    index.html:
    Test_01
    <br><br><br>
    Call 1
    index.jsp:
    <html>
    <center>
    <%= request.getSession().getId() %>
    <% application.setAttribute( "session1", request.getSession().getId() ); %>
    <h1>Tomcat 1 Call 1</h1>
    Call 2
    </body>
    </html>
    index2.jsp:
    <html>
    <center>
    <%= request.getSession().getId() %>
    <h1>Tomcat 1 call 2</h1>
    Call 3
    <br><br>Session 1 ID:
    <%= getServletContext().getAttribute( "session1" ) %>
    <% application.setAttribute( "session2", request.getSession().getId() ); %>
    </body>
    </html>
    index3.jsp:
    <html>
    <center>
    <%= request.getSession().getId() %>
    <h1>Tomcat 1 call 3</h1>
    <br><br>Session 1 ID:
    <%= getServletContext().getAttribute( "session1" ) %>
    <br><br>Session 2 ID:
    <%= getServletContext().getAttribute( "session2" ) %>
    </body>
    </html>
    Add the following entry to your host file:
    127.0.0.1 test_01
    or
    <your ip> test_01
    or
    add a CNAME entry
    Thanks for any/all help.

    No, it has nothing to do with host names, CNAME, DNS or anything.
    The session ID is sent to the server from the browser in either a cookie header or as part of the "extra info" part of a URL with the request. If there is no session ID in either place, the server creates a new session. If there is a session ID, then it gets the session object (if it's not expired). Then it sends the session ID back to the browser with the response to that request (either as a cookie or encoded into the URLs in the page, which you have to do explicitly do for each URL). Click on a link, then the process starts again. The first time you go to a site, you have no session ID. The server just makes a new one.
    The only thing that domain names have any affect on is cookies. Cuz cookies are name/value data associated with a domain name of the server (amongst other things). The browser, for security reasons, only sends cookies in requests to servers that set the cookie in the first place. The server can't get cookies that it didn't set.
    So if you have a server running on your local machine, you can access that server in 3 ways:
    1) localhost
    2) network name
    3) domain name
    The browser can know quite easily that 1 and 2 are the same thing, and send cookies for either interchangably (not that it has to, but it seems you are seeing this happen, so...). But the browser will probably not make any assumption about 3's relation to 1 or 2. The association is generally to domain name, not necessarily IP address.
    And it's really a moot point anyway. You should not typically be accessing a server from those 3 different means within the same session. Someone connecting to your server isn't going to use anything but #3 anyway, the other 2 (definitely #1 and #2 only works on the same LAN) wouldn't make much sense. So there's not going to be this issue at all. The session ID itself has no relation whatsoever to a client's domain name.

Maybe you are looking for

  • Captivate 6 keeps crashing on launch.

    So I haven't used Captivate 6 in a couple weeks, but now it crashes soon after I launch it. The Captivate 6 loading image pops up for a couple seconds and then the whole thing crashes without an error. Any ideas?

  • Need Dropdownbykey and Index code completely in webdynpro ABAP

    Hi Experts, I want to populate the data into drop down by key and drop down by indexes ,but I am getting error while binding in DdbIndex property text as type compatible If any one knows  send me the complete code to populate values into Ddbkey and 

  • How do I edit a form I imported made by another user?

    I am trying to import a form off my computer to edit, but I am unsure how to get into editing mode.

  • GridView collapses when continuing $$$ (dollar signs) string is in a cell.

    Dear anyone who concerns, I have made a GridView defining Columns -> Item Width to be fixed 110 px. But when continuing $$$ (dollar signs) string is in a cell, the string does not wrap and make the cell wider than 110 px so that GridView table's layo

  • XSLStylesheet object and C++

    It seems that the C++ version of XML kit does not support the XMLStylesheet object as it does in the Java version. Documentation points out that the XSLT Processor is comprised of 2 objects, XSLStylesheet and XSLProcessor, yet in the C and C++ only t