PDK portlet. New session being created.
Hi,
I have an existing struts/BC4J based application which runs fine
local as webapplication. After portletizing it with PDK and deploying
it to portal for some strange reason a new http session is created a few
steps into the application resulting in losing the existing session data.
I thought of switching to using portlet provider session but this is just
stored in the http session object.
Anybody experienced this problem as well ?.
Thanks,
Kenneth
Hi Natalie,
I'm more maintaining/finishing an existing application. So I didn't develop it initially.
The version or oracle portal we're using is 9.0.4.1.0. As for portletizing a struts application, oracle pdk has been used. Instructions for portletizing a web app can be found in "Oracle Application Server Portal Handbook". Further you have to replace struts-html:form tags in your JSPs with pdk-struts-html:form tags.
Some tips can be found here.
http://www.it-eye.nl/weblog/2005/07/13/easy-publishing-of-a-struts-application-as-a-portlet-in-oracle-portal/
As for losing session I post to a servlet from struts/jsp page which writes pdf to the output stream Running in local container it works fine. However when running in portal I lose the session before hitting the servlet. I notice at various other times that session is lost for no apparant reason.
HTH
Kenneth
Similar Messages
-
New Session getting created(!)
Hi All,
I am facing a wierd behavior. I have an application with a
login page(jsp). User submits his authentication details,
is authenticated in a servlet, and some of his information is
put in the session. Later he gets "redirected" to another
jsp(just like any other app).
This is working fine most of the times. But randomly it is
so happening that the jsp being redirected to does not get the
values put in the session.
Some more debugging showed that from login jsp to servlet, same
session continued till the very last step(just before
redirection). Just after
response.sendRedirect(response.encodeRedirectURL(url));
a new session gets created(!!). Any pointers?
Please note I am testing all this out in a browser which is
accepting cookies.
Urgent!!
We have the same problem on WLS5.1.
Any suggestions would be fine
Regards
Osman
"Bijay Kumar" <[email protected]> schrieb im Newsbeitrag
news:3d0ed20f$[email protected]..
>
> Hi All,
> I am facing a wierd behavior. I have an application with a
> login page(jsp). User submits his authentication details,
> is authenticated in a servlet, and some of his information is
> put in the session. Later he gets "redirected" to another
> jsp(just like any other app).
>
> This is working fine most of the times. But randomly it is
> so happening that the jsp being redirected to does not get the
> values put in the session.
>
> Some more debugging showed that from login jsp to servlet, same
> session continued till the very last step(just before
> redirection). Just after
> response.sendRedirect(response.encodeRedirectURL(url));
> a new session gets created(!!). Any pointers?
>
> Please note I am testing all this out in a browser which is
> accepting cookies.
>
-
A new row being created while Editing the existing one.
Hi All,
I have a custom page, where i need to edit the existing Data. I have initialized my EOVO in PR. There is also a Lov which is used to search the existing data. Then i edit the field and Save it. Everything works fine and the existing row is being updated. But there creates a new row also with only one field is being populated which is the attribute which i have set on my LOV.
how can i stop this new row from being created.Hi,
Close your previous thread's if answered. One of which is
Explicitly setting the value in my MessageChoice & MessageTextInput
Regards,
Anand -
How to keep old session id when a new session is created in web site
Hi,
I have a question about HttpSession in a Struts framework based project development.
I have a web page "a.jsp" in public site (no need login) which can navigate to other pages/links. There is a button on "a.jsp" to popup a new window "pop.jsp" and create a session (session1). Usually, when I navigate to other pages/links from "a.jsp", it doesn't affect this "pop.jsp" and its session1. However, if I try to goto a secure site - a login page "login.jsp" from "a.jsp", since the "login.jsp" needs to kill current session before the login, the current session1 within the "pop.jsp" is killed at that time. When I go back to "pop.jsp", it will create a new session2 and the original session1 attributes does not exist any more. Therefore, I need to save the session1 id in somewhere to compare it with new session2 id when session is changed, and display some message in "pop.jsp".
Do anyone know how/where to keep session1 id? Any sample/suggestion would be appreciated.
Hannacheck reply 2 of [http://forum.java.sun.com/thread.jspa?threadID=5279453&tstart=0|http://forum.java.sun.com/thread.jspa?threadID=5279453&tstart=0]
like that you can comapre -
New session is creating in ECC on each new window open
Hi Experts,
I have configured Transaction iViews to call the t-codes in ECC. I have only one portal user logged in one machine, but on right clicking on the link opening the new window without re login.
But in the AL08 transaction I could see number of sessions created (equivalent to number of windows opened) which is creating the memory bottleneck .
Is there any way either restricting in opening the new window, or limit the number of sessions per user in EP/ECC.
Thanks
Murthy.Hi Puneet,
Thanks for the reply.
This note says to create service of type Web GUI. So for for what ever the Transaction iView I have, I have to create services first and then service iViews for all.
Instead of that either we can change the standard WebGUI service, so for all the Transaction iView of type Web GUI Html these properties applies, or if we can create a new service and specify the transaction iView to use the newly created service instead of WebGUI. But I don't know where to set this.
For now I have added the below parameter to the WebGUI.
~WEBGUI =1
~THEME = sl
~RECORD= 1
~WEBGUI_SIMPLE_TOOLBAR = 160
~SINGLETRANSACTION= 1.
Through this it will not let me open the window with right click.
I haven't log any OSS message yet.
Thanks
Murthy -
How can I prevent a new tab being created every time I hit the Home Key in Firefox 4?
I recently installed Firefox 4. I have it set to open two tabs, Google and Yahoo, for my homepage. When I open a new site in either of them the tab assumes the name of the new site. At the end of my search I hit the Home Key to return to my two original tabs. My two original tabs appear, but so does an additional tab...a duplicate of one of the original two. Each time I hit the Home Key another tab is created. This is annoying and I would like to know how to prevent it from happening. Thanks.
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do NOT click the Reset button on the Safe Mode start window.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
HT5760 New group being created everytime someone responds to our existing group message.
I have a group message with 8 people in it. We all have iPhones and the new iOS8 software. Once we got the new software someone renamed the group. Ever since the update, randomly it will happen that when someone responds in the group... instead of the response showing up in the group we already have... it creates a new group with all the same people. This does not happen every time it is random. This is very frustrating, someone please help!
Hi Leela,
Are you creating sales order in the same system like
You have created table in Development system in same system your are creating sales order
If you are creating here you just go to V/07 transaction then slect your access sequence go in to the tables detail screen here you select your table 953 then click on fields here you check all the fields are available correctly or not then save the changes.
Now try
or
You transported these confugaration to other system like Quality or Production here and you are creating the sales order,
If you are creating here you need to create condition table again then try.
I hope it will help you,
Regards,
Murali. -
New folders being created... Not by me
How can I stop iTunes from automatically changing the way I organize my folders. For example, I ripped a Johnny Cash greatest hits CD. I edited the songs in the folder and on iTunes to only say Johnny Cash as the artist, instead of Johnny Cash w/ June Carter. But anytime I update my library, it changes it all back and is very annoying and cumbersome to change all my folders back. I checked out the preferences part of iTunes and didnt see anything there to help, maybe I looked over it. Help!
Thanks!Create a new folder on Desktop, open it, CMD+J, set it up the way you want: list view, click on name column, deselect size, click on always open in list view, etc., then click on Use as Defaults. OPTION-click and hold the Finder's Dock icon and select Relaunch. Create a new folder and open it. It should have those settings you just made.
-
New Layer Being Created When Timeline Effect Added
I am working on a Flash file in which I am adding a Timeline
Effect (5 frame fade out). Recently, instead of the transition
being applied to the layer, in the frame length specified, Flash
adds another layer with the standard 30 frames and it deletes the
content from the 5 frames where I'm trying to add the fade out. It
doesn't always do this. I had already successfully created a couple
of fade-ins at the beginning of the timeline, but once it starts
adding and deleting this stuff, it never goes back to normal. On
the layer in question, I have a keyframe with a graphic, the
graphic is stationary for 20 frames, then I inserted another
keyframe and tried to apply the Timeline Effect beginning there.
Help!!Change contentDelivery* of the popup to lazyUncached*. Default is lazy .Refer
http://docs.oracle.com/cd/E21764_01/apirefs.1111/e12419/tagdoc/af_popup.html
Also in addition , you might need to refresh the region (try the above standalone 1st) when you invoke the popup. Use refresh="ifNeeded" in the taskFlowBinding alongwith change of some input param . See why and more here
http://www.adftips.com/2010/11/adf-ui-region-interaction-interaction.html
Example simialr to your usecase here -
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/53-taskflow-in-popup-169196.pdf
Edited by: Sudipto Desmukh on May 9, 2012 5:20 PM -
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,
-AdamI 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 -
How to create a new session in JSP file
Usually a child IE window uses same session with parent window. Dose someone know how to create a new session when creating a new IE window by clicking a URL in parent window? The web page is writen by jsp file.
I am not sure of your question. Are you wanting to have 2 Session objects (one for the parent window and another for the child)?
A session is usually created once per client and is stored on the server the session id is carried around in a cookie or a URL rewrite so that everytime the user submits a page you will be able to store/access information.
// this will create a new session object if one doesn't already exist.
HttpServletRequest.getSession( true );
Hope this helps -
Hello,
I am experiencing the same problem as mr. Rajesh Rajagopalan, only he had it with
WL 6.0:
http://newsgroups2.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.jsp&item=8925&utag=
So when the number of hits increases, it looks like new sessions are created when
the number of hits increases!
Is that a bug in WL 5.1 service pack 10? I would like an answer from a BEA Weblogic
official!
Hello,
I think that the best way is to open a case to the BEA support.
"\"Bogdan Barzu\" Bogdan.Barzu" wrote:
> Hello,
>
> I am experiencing the same problem as mr. Rajesh Rajagopalan, only he had it with
> WL 6.0:
> http://newsgroups2.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.jsp&item=8925&utag=
>
> So when the number of hits increases, it looks like new sessions are created when
> the number of hits increases!
>
> Is that a bug in WL 5.1 service pack 10? I would like an answer from a BEA Weblogic
> official!
-
Fail Over - Back up, create a new session
Two WLS 5.1 SP10 clustering, iPlanet4.1 w/wlproxy plugin, Solaris Box. Everything
works except the following senario:
1. Two servers up, user browses the site. ok!
2. shutdown one server, user continues to browse without losing sessions. ok!
3. down server back up, new session is created in this server and replicated to
the other server, in the mean time the old session still there. Every click cause
the session swithing back and forth. WRONG!
4. close the brower and restart a new session, back to normal. ok!
Any idea?
Only one cookie is created in the whole process. But in step3, when clicking on
the browser, plugin directs the request to app1, app2 back and forth for each
click. I can also see the there are two session ids. one's primary is in app1,
the other's prirmay is in app2.
The other interesting thing is the wlproxy.log, where one app server is down (166.200.148.10
is still up, 166.200.148.11 is down), plugin log shows connecting to 166.200.148.10
fails and finally throught static list connecting to 166.200.148.11 which is down,
and in fact, 166.200.148.10 got hit, browser has the display.
Tue Oct 9 13:40:52 2001 getPref(): primary h=166.200.148.10 p=7008
Tue Oct 9 13:40:52 2001 ===== New Request [main/formdata.jsp?] ====
Tue Oct 9 13:40:52 2001 ....relFile.../main/formdata.jsp?...
Tue Oct 9 13:40:52 2001 trying connect to PRIMARY '166.200.148.10'/7008 at line
611 for '/main/formdata.jsp?'
Tue Oct 9 13:40:52 2001 failed to connect to host 166.200.148.10 port 7008
Tue Oct 9 13:40:52 2001 No good servers left in the general list, reverting back
to the static list
Tue Oct 9 13:40:52 2001 Initializing lastIndex=0 for a list of length=2
Tue Oct 9 13:40:52 2001 general list: trying connect to '166.200.148.10'/7008
at line 679 for '/main/formdata.jsp?'
Tue Oct 9 13:40:52 2001 failed to connect to host 166.200.148.10 port 7008
Tue Oct 9 13:40:52 2001 general list: trying connect to '166.200.148.11'/7008
at line 679 for '/main/formdata.jsp?'
Tue Oct 9 13:40:52 2001 Header from client [accept]=[*/*]
Tue Oct 9 13:40:52 2001 Header from client [accept-language]=[en-us]
Tue Oct 9 13:40:52 2001 Header from client [accept-encoding]=[gzip, deflate]
Tue Oct 9 13:40:52 2001 Header from client [user-agent]=[Mozilla/4.0 (compatible;
MSIE 5.5; Windows NT 4.0)]
Tue Oct 9 13:40:52 2001 Header from client [host]=[167.206.148.202]
Tue Oct 9 13:40:52 2001 Header from client [cookie]=[cookieID=4773; bmTzOff=240;
bmScrRes=1024x768; bmClrDpt=16; bmJava=Yes; WebLo]
Tue Oct 9 13:40:52 2001 WLS info before parseHeaders : 166.200.148.11:7008
Tue Oct 9 13:40:52 2001 Sending header to WLS [accept]=[*/*]
Tue Oct 9 13:40:52 2001 Sending header to WLS [accept-language]=[en-us]
Tue Oct 9 13:40:52 2001 Sending header to WLS [accept-encoding]=[gzip, deflate]
Tue Oct 9 13:40:52 2001 Sending header to WLS [user-agent]=[Mozilla/4.0 (compatible;
MSIE 5.5; Windows NT 4.0)]
Tue Oct 9 13:40:52 2001 Sending header to WLS [host]=[167.206.148.202]
Tue Oct 9 13:40:52 2001 Sending header to WLS [cookie]=[cookieID=4773; bmTzOff=240;
bmScrRes=1024x768; bmClrDpt=16; bmJava=Yes; We]
Tue Oct 9 13:40:52 2001 Sending header to WLS [X-WebLogic-Force-Cookie]=[true]
Tue Oct 9 13:40:52 2001 Sending header to WLS [Proxy-Client-IP]=[166.200.148.21]
Tue Oct 9 13:40:52 2001 Sending header to WLS [X-Forwarded-For]=[166.200.148.21]
Tue Oct 9 13:40:52 2001 Sending header to WLS [Proxy-Path-Translated]=[opt/netscape/server4/docs/main/formdata.jsp]
Tue Oct 9 13:40:52 2001 Sending header to WLS [Proxy-Path-Translated-Base]=[opt/netscape/server4/docs]
Tue Oct 9 13:40:52 2001 Header received from WLS : [HTTP/1.1 200 OK] = []
Tue Oct 9 13:40:52 2001 Header received from WLS : [Server] = [WebLogic 5.1.0
Service Pack 10 07/11/2001 21:04:48 #126882]
Tue Oct 9 13:40:52 2001 Header received from WLS : [Content-Length] = [612]
Tue Oct 9 13:40:52 2001 Header received from WLS : [Content-Type] = [text/html;
charset=ISO-8859-1]
Tue Oct 9 13:40:52 2001 Header received from WLS : [X-WebLogic-Load] = [0]
Tue Oct 9 13:40:52 2001 Header received from WLS : [X-WebLogic-Cluster-List]
= [-3524818015807611228/bungan/6/7008/7008/7002/7002]
Tue Oct 9 13:40:52 2001 Header received from WLS : [X-WebLogic-Cluster-Hash]
= [a0NT9MOQPES4vbUg1fb3g3C6j7U]
Tue Oct 9 13:40:52 2001 Header received from WLS : [Connection] = [Close]
Tue Oct 9 13:40:52 2001 Header to Client [Server]=[WebLogic 5.1.0 Service Pack
10 07/11/2001 21:04:48 #126882]
Tue Oct 9 13:40:52 2001 add content-length to srvhdrs, [Content-Length]=[612]
Tue Oct 9 13:40:52 2001 Header to Client [Content-Length]=[612]
Tue Oct 9 13:40:52 2001 Header to Client [Content-Type]=[text/html; charset=ISO-8859-1]
Tue Oct 9 13:40:52 2001 Initializing lastIndex=0 for a list of length=1
Tue Oct 9 13:40:52 2001 ### Got a new Server List of length 1 ###
Tue Oct 9 13:40:52 2001 ###Response### : Srvr# [1] = [166.200.148.10:7008]
Tue Oct 9 13:40:52 2001 request [main/formdata.jsp?] processed ......
"Mike Reiche" <[email protected]> wrote:
>
>
>A new session should not be created when the down server comes backup.
>The requests
>should continue to be sent to the server that was originally the secondary
>( and
>now the primary ).
>
>In IE, turn on 'prompt for cookies' and note the value of the WebLogicSession
>cookie whenever one is written to the browser. The number in between
>the the first
>and second '/' is the IP address of the WL instance that wlproxy will
>send the
>request to. If there is no WL running there, it will round-robin requests
>to the
>instances that do exist.
>
>You should make sure that both the WebLogic Server and the wlproxy are
>using the
>same cookie name. (sounds like they are).
>
>
>Mike
>
>
>"Rong" <[email protected]> wrote:
>>
>>Two WLS 5.1 SP10 clustering, iPlanet4.1 w/wlproxy plugin, Solaris Box.
>> Everything
>>works except the following senario:
>>
>>1. Two servers up, user browses the site. ok!
>>2. shutdown one server, user continues to browse without losing sessions.
>>ok!
>>3. down server back up, new session is created in this server and replicated
>>to
>>the other server, in the mean time the old session still there. Every
>>click cause
>>the session swithing back and forth. WRONG!
>>4. close the brower and restart a new session, back to normal. ok!
>>
>>Any idea?
>
-
hi,
I wrote some test client for testing my server. I create URL and call URL.getContent(). This open new session. But I want use one session. How I can use request for same session?
<code>
for (int i=0; i<10; i++)
URL url = new URL(BASE_ADDRESS + "/adetail.jsf?fid=" + i);
URLConnection connection = url.openConnection();
// new session is created
Object content = connection.getContent();
</code>As i stated, when i click links from 3rd party applications, such as skype; a youtube link or something similar. Firefox opens a new session however it does not visit the clicked url
-
Huge numbers of sessions being spawned from single session
Hi
I am using Java Hibernate to connect to DB and query for data.
When I am creating a session, I see that there are multiple sessions being created with same username.
I have verified that my program is just creating only one session, but in the database I see multiple sessions.
Understand me???
Can some one please help.
--AdI have taken the output from V$SESSION
I see that the OWNERID of my job is 2147483644, the PROGRAM is null and EVENT is SQL*Net message from client
But for other sessions the OWNERID is 65668, the PROGRAM is oracle@dwhdmdbp1 and EVENT is PX Deq: Execution Msg
Does this signify anything??
I have Hibernate connection pool size: 5
But I see that there are 50 connection sessions Active on the DB.
Now let me tell you the surprising thing.
When I am connecting to a different DB, only one session is being used.
Please HELP!!!!
Maybe you are looking for
-
One feature ide love to see is moving bulk images from a local machine (laptop in this case) to a main image server (or wherever you store you images) from inside lightroom. updating image paths manually for multiple images after editing is REALLY an
-
How do I sync with a shared calendar?
Hi, How do I get a shared calendar on Outlook (2003) to show up on my iPhone (1.1.1)? Thanks in advance! Ben
-
Object Relationship Service 6.10 (BC-SRV-GBT) & Document
New to SAP. I am interested in producing linked business documents. Showing all the different processes end to end. Understand this service will link transactions in a business process? Was wondering if anyone had some examples or advice Regards, Geo
-
Non-Printable Buttons printing unless activated.
I am creating a multi-page interactive pdf that has buttons that I am using to zoom the page to certain sizes; 100%, fit to page, etc. One group of buttons occupy the same location on the page and as such, require that some of them be hidden until ac
-
Dear Experts, In our organization planned orders are getting generated through MD02 for a particular plant, but not getting generated through MDBT. Please suggest what could be the reasons..... Rgds