Thanks. But the problem has been solved.

And (as useual) there was a stupid reason for this.
( simply the login action is associated with an actionForm in the struts
config at the session scope, given that we are not using actionForm for
this action)


thnx


Amjad Shahrour
Application Developer
Tel: +966.2.653.3334 ext 213
[EMAIL PROTECTED]
www.labbaik.com
 
 
 

-----Original Message-----
From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 09, 2003 5:21 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: Re: Have to re open browser each time

Accoring to me nothing going wrong in this process..
Amjad please give me few moments I want to test and run the same senario
out
here on my end and will get back to you ASAP

----- Original Message -----
From: "Amjad Shahrour" <[EMAIL PROTECTED]>
To: "'Gurpreet Dhanoa'" <[EMAIL PROTECTED]>; "'Struts Users
Mailing
List'" <[EMAIL PROTECTED]>
Sent: Tuesday, December 09, 2003 7:30 PM
Subject: RE: Have to re open browser each time


> Ok , lets consider the following use senario:
>
>
> 1. user opens the system login screen ( JSP ).
>
> 2. user submits login pair to an authentication Action. ( struts).
>
> 3. the authentication action authenticate the user from the back end,
> and set a cookie that contains the login info that we need to share it
> with the ASP part. Then forward to the system main page ( ASP)
>
> 4. the main page (ASP) reads the cookie and get the needed information
> then destroy the cookie immediately.
>
>
> By now we have our user authenticaed on both ASP and JSP parts ( we
have
> two sessions)
>
>
> 5.  if the session times out, or explicitly invalidated or even still
> alive [ not timed out] and the user tries to re login again ( starting
> again from step1) that exception is thrown. And the only work around
is
> to close the browser and start again.
>
>
>
>
>
>
>
>
>
>
>
>
> Amjad Shahrour
> Application Developer
> Tel: +966.2.653.3334 ext 213
> [EMAIL PROTECTED]
> www.labbaik.com
>
>
>
>
> -----Original Message-----
> From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, December 09, 2003 4:44 PM
> To: [EMAIL PROTECTED]; 'Struts Users Mailing List'
> Subject: Re: Have to re open browser each time
>
> i am not able to get the problem.
> Please explain me in breif when you are getting this type of error .
> Are you getting it when you are coming back from ASP to the Action
>
> Please exlapin it
>
>
> ----- Original Message -----
> From: "Amjad Shahrour" <[EMAIL PROTECTED]>
> To: "'Gurpreet Dhanoa'" <[EMAIL PROTECTED]>; "'Struts Users
> Mailing
> List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, December 09, 2003 7:07 PM
> Subject: RE: Have to re open browser each time
>
>
> > Who said that I am trying to access session variables?
> >
> >
> > Amjad Shahrour
> > Application Developer
> > Tel: +966.2.653.3334 ext 213
> > [EMAIL PROTECTED]
> > www.labbaik.com
> >
> >
> >
> >
> > -----Original Message-----
> > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, December 09, 2003 4:28 PM
> > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > Subject: Re: Have to re open browser each time
> >
> >
> > Got it.
> >
> >
> > This may be the reason. AS ypur actions are running on Tomcat Server
> and
> > when you declare the session variable it will be declared inthe
memory
> > of
> > Tomcat . When you forward the request to ASP (IIS server) there you
> > cannot
> > access the server variables of TOmcat. This is due to the Security
of
> > Web
> > servers.
> >
> >
> >
> >
> >
> > ----- Original Message -----
> > From: "Amjad Shahrour" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> > Sent: Tuesday, December 09, 2003 6:56 PM
> > Subject: RE: Have to re open browser each time
> >
> >
> > > Both are using the SAME IIS server. ( ofcource jsp requests will
be
> > > forwarded to be handled by tomcat)
> > >
> > >
> > >
> > > Amjad Shahrour
> > > Application Developer
> > > Tel: +966.2.653.3334 ext 213
> > > [EMAIL PROTECTED]
> > > www.labbaik.com
> > >
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, December 09, 2003 4:12 PM
> > > To: [EMAIL PROTECTED]; 'Struts Users Mailing List'
> > > Subject: Re: Have to re open browser each time
> > >
> > > hmm....
> > > AMjad are the JSp and ASP part of the same application or they are
> > using
> > > different we servers
> > >
> > > ----- Original Message -----
> > > From: "Amjad Shahrour" <[EMAIL PROTECTED]>
> > > To: "'Gurpreet Dhanoa'" <[EMAIL PROTECTED]>; "'Struts
Users
> > > Mailing
> > > List'" <[EMAIL PROTECTED]>
> > > Sent: Tuesday, December 09, 2003 6:42 PM
> > > Subject: RE: Have to re open browser each time
> > >
> > >
> > > > I see.
> > > >
> > > > I want to add one more thing,
> > > > After executing the login action, if the user is authenticated
the
> > > user
> > > > is forwarded to an ASP page ( the main page is written uding
ASP).
> > > >
> > > > Could this be the reason??? If yes, why is this happening?
> > > >
> > > >
> > > >
> > > > ( we have done integration between ASP and jsp coz we have
modules
> > > > written in asp.)
> > > >
> > > >
> > > > anyhow, the application works greate with full functionality
with
> no
> > > > problems except this one.
> > > >
> > > >
> > > >
> > > > Thank you very much for your presouce time.
> > > >
> > > > Regards,
> > > >
> > > >
> > > > Amjad Shahrour
> > > > Application Developer
> > > > Tel: +966.2.653.3334 ext 213
> > > > [EMAIL PROTECTED]
> > > > www.labbaik.com
> > > >
> > > >
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED]
> > > > Sent: Tuesday, December 09, 2003 4:02 PM
> > > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > > Subject: Re: Have to re open browser each time
> > > >
> > > > Amjad
> > > >
> > > > I have not faced such a problem as even we are handling the
> sessions
> > > in
> > > > the
> > > > same way as you are.
> > > > Which version of Tomcat you are using. Try to use it with 4.12
> > > > This may also be the reason
> > > > ----- Original Message -----
> > > > From: "Amjad Shahrour" <[EMAIL PROTECTED]>
> > > > To: "'Struts Users Mailing List'"
<[EMAIL PROTECTED]>
> > > > Sent: Tuesday, December 09, 2003 6:04 PM
> > > > Subject: RE: Have to re open browser each time
> > > >
> > > >
> > > > > Sessions are handled from Actions.
> > > > >
> > > > > Amjad Shahrour
> > > > > Application Developer
> > > > > Tel: +966.2.653.3334 ext 213
> > > > > [EMAIL PROTECTED]
> > > > > www.labbaik.com
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED]
> > > > > Sent: Tuesday, December 09, 2003 3:26 PM
> > > > > To: [EMAIL PROTECTED]; 'Struts Users Mailing List'
> > > > > Subject: Re: Have to re open browser each time
> > > > >
> > > > > Are you handling the sessions from Actions or from Views
> > > > > ----- Original Message -----
> > > > > From: "Amjad Shahrour" <[EMAIL PROTECTED]>
> > > > > To: "'Gurpreet Dhanoa'" <[EMAIL PROTECTED]>; "'Struts
> > Users
> > > > > Mailing
> > > > > List'" <[EMAIL PROTECTED]>
> > > > > Sent: Tuesday, December 09, 2003 5:33 PM
> > > > > Subject: RE: Have to re open browser each time
> > > > >
> > > > >
> > > > > > I have tried and put " struts-legacy.jar" at WEB-INF\lib\
> > > > > > Also I have thrown a copy of it in many other places wher
> tomcat
> > > can
> > > > > see
> > > > > > it.
> > > > > >
> > > > > > But the problem still exist.
> > > > > >
> > > > > >
> > > > > > Amjad Shahrour
> > > > > > Application Developer
> > > > > > Tel: +966.2.653.3334 ext 213
> > > > > > [EMAIL PROTECTED]
> > > > > > www.labbaik.com
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Gurpreet Dhanoa [mailto:[EMAIL PROTECTED]
> > > > > > Sent: Tuesday, December 09, 2003 2:36 PM
> > > > > > To: Struts Users Mailing List; [EMAIL PROTECTED]
> > > > > > Subject: Re: Have to re open browser each time
> > > > > >
> > > > > > You need to put struts-legacy.jar in the lib of tomcat
> > > > > >
> > > > > > Try with it
> > > > > > ----- Original Message -----
> > > > > > From: "Amjad Shahrour" <[EMAIL PROTECTED]>
> > > > > > To: <[EMAIL PROTECTED]>
> > > > > > Sent: Tuesday, December 09, 2003 4:34 PM
> > > > > > Subject: Have to re open browser each time
> > > > > >
> > > > > >
> > > > > > > I am facing this problem that I couldn't figure out the
> cause.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > We have an web based application  (built using struts
1.0).
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > After login to the application for the first time, if you
> > > relogin
> > > > > > again
> > > > > > > OR the session times out and you try to re login again
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > I have the following exception thrown to the client:
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > java.lang.ClassCastException
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.struts.action.ActionServlet.processActionForm(ActionServlet.j
> > > > > > >
> > > > > > > ava:1674)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1563)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > > >
> > > > >
> > >
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
> > > > > > >
> > > > > > >         at
> > > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > > > > > >
> > > > > > >         at
> > > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> > > > > > >
> > > > > > > tionFilterChain.java:247)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> > > > > > >
> > > > > > > erChain.java:193)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
> > > > > > >
> > > > > > > e.java:260)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > > > > > >
> > > > > > > nvokeNext(StandardPipeline.java:643)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> > > > > > >
> > > > > > > 80)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > > >
> > > > >
> > >
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
> > > > > > >
> > > > > > > e.java:191)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > > > > > >
> > > > > > > nvokeNext(StandardPipeline.java:643)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> > > > > > >
> > > > > > > 80)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > > >
> > > > >
> > >
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
> > > > > > >
> > > > > > > 5)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> > > > > > >
> > > > > > > :180)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > > > > > >
> > > > > > > nvokeNext(StandardPipeline.java:643)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
> > > > > > >
> > > > > > > lve.java:170)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > > > > > >
> > > > > > > nvokeNext(StandardPipeline.java:641)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> > > > > > >
> > > > > > > :172)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > > > > > >
> > > > > > > nvokeNext(StandardPipeline.java:641)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509
> > > > > > >
> > > > > > > )
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > > > > > >
> > > > > > > nvokeNext(StandardPipeline.java:641)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> > > > > > >
> > > > > > > 80)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > > >
> > > > >
> > >
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
> > > > > > >
> > > > > > > java:174)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
> > > > > > >
> > > > > > > nvokeNext(StandardPipeline.java:643)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
> > > > > > >
> > > > > > > 80)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > > >
> > > > >
> > >
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > > >
> > > > >
> > >
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > > >
> > > >
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > > >
> > > org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:
> > > > > > >
> > > > > > > 590)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > > >
> > > >
> org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707)
> > > > > > >
> > > > > > >         at
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
> > > > > > >
> > > > > > > .java:530)
> > > > > > >
> > > > > > >         at java.lang.Thread.run(Thread.java:536)
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > So the user is forced to close and re open the browser
> inorder
> > > to
> > > > > > login
> > > > > > > again to the system successfully.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Any ideas??
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Amjad Shahrour
> > > > > > >
> > > > > > > Application Developer
> > > > > > >
> > > > > > > Tel: +966.2.653.3334 ext 213
> > > > > > >
> > > > > > > [EMAIL PROTECTED]
> > > > > > >
> > > > > > > www.labbaik.com
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > > > >
> > > > >
> > > > >
> > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > > > >
> > > >
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail:
[EMAIL PROTECTED]
> > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail:
[EMAIL PROTECTED]
> > >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to