Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
kkaal
Post subject: Session expires after deployment  PostPosted: Dec 26, 2007 - 10:37 PM
Registered Member
Registered Member


Joined: Sep 15, 2004
Posts: 38

Hi,
I am trying to develop a ICEFaces web-application. My app has a funny behaviour:

Whenever I deploy the application to Tomcat and try to call the first page in the browser, it tells me:
Code:
SCHWERWIEGEND: Servlet.service() for servlet Persistent Faces Servlet threw exception
javax.servlet.ServletException: Session expired
   at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:38)
   at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
   at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
   at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:98)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Unknown Source)


Even if I restart Tomcat and / or the browser, it throws the same exception.

The only way to work with the web-app is to restart the entire MyEclipse workbench.
But the next time, I press the deploy-button, its the same thing again.

I changed in the web.xml the param "javax.faces.STATE_SAVING_METHOD" from "server" to "client" but then, it does not do a proper deployment at all.

Any hints or help?

Thanks
Klaus
 
 View user's profile Send private message  
Reply with quote Back to top
kkaal
Post subject: RE: Session expires after deployment  PostPosted: Jan 03, 2008 - 10:38 AM
Registered Member
Registered Member


Joined: Sep 15, 2004
Posts: 38

Help!! Is there anybody who can help??

Since quite a while (including the holidays), I need to restart MyEclipse anytime when I need to test my app. It is really hard to work that way.

Any thoughts or help on this???

Thank you for any hint.
Klaus
 
 View user's profile Send private message  
Reply with quote Back to top
jimmyt@inkbrains.com
Post subject: RE: Session expires after deployment  PostPosted: Jan 07, 2008 - 12:30 AM
Registered Member
Registered Member


Joined: Aug 20, 2006
Posts: 1

Having same problem...lol, I don't see faces ;->
 
 View user's profile Send private message  
Reply with quote Back to top
kkaal
Post subject: RE: Session expires after deployment  PostPosted: Jan 07, 2008 - 07:37 AM
Registered Member
Registered Member


Joined: Sep 15, 2004
Posts: 38

I am really keen on seeing what the reason is (besides to saving A LOT of time). In my mind, killing tomcat and restarting the browser should stop ANY session.

Anyway: I would like to look into faces as well ;-o
 
 View user's profile Send private message  
Reply with quote Back to top
kkaal
Post subject: RE: Session expires after deployment  PostPosted: Jan 07, 2008 - 10:53 PM
Registered Member
Registered Member


Joined: Sep 15, 2004
Posts: 38

... would be nice, if a guru would say: ok, looking at it - or: that is not an issue...
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject: RE: Session expires after deployment  PostPosted: Jan 09, 2008 - 04:47 PM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23348

Guys sorry about not getting back to you quicker, I googled around for this and it looks like an ICEfaces bug:
http://www.icefaces.org/JForum/posts/list/3305.page

You might want to followup on that page.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
kkaal
Post subject: RE: Session expires after deployment  PostPosted: Jan 09, 2008 - 06:55 PM
Registered Member
Registered Member


Joined: Sep 15, 2004
Posts: 38

Hi Riyad,

thanks for your reply. But that does not even touch my problem except for the message "Session expired".

I have no fault in the running code. It is in the deploy process. And it has to do with the MyEclipse environment. When I want to re-deploy my app to TOMCAT, I need to do the re-deploy (no error), close the MyEclipse programm, restart MyEclipse, start TOMCAT and then can use my application.
If I do not do this process, I would get the "Session expired" Error. Permanently, no escape.

So, I tried to any combination of just restart TOMCAT, restart Browser, deploy on a shutdown TOMCAT and so forth. The only thing that helps, is getting out of MyEclipse.

I thought, when I stop TOMCAT, all sessions are closed and I would start a new session afterwards. But that is obviously that is not the case. My feeling is that there is a thread still living, when TOMCAT is stopped and only killed when the JRE is stoped too. That would imply a design-fault in IECfaces.

Anyhow, I cannot solve that prob. Some gurus of MyEclipse should check that. The first step would be to check, if you can reproduce my problem.

I hope, I was precise enough. If not, just ask me.

Thanks
Klaus
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject: RE: Session expires after deployment  PostPosted: Jan 10, 2008 - 03:19 PM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23348

Klaus, this is *very* strange indeed. Can you export your project using File > Export > Archive, to a ZIP file for me. Then email it to support@myeclipseide.com ATTN Riyad and tell me exactly how to reproduce the problem? I'll do some testing on my end.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
kkaal
Post subject: RE: Session expires after deployment  PostPosted: Jan 10, 2008 - 03:48 PM
Registered Member
Registered Member


Joined: Sep 15, 2004
Posts: 38

Hi Riyad, thank you for your reply.

I don't need to send you my program. Just do the following (it's reproducible on 2 of my machines):

1) Install ICEfaces TutorialExample from "Examples-on-Demand" (which is a VERY good feature)
2) Start Derby Database
3) Click on project with right mouse and Debug as MyEclipse ServerApplication
4) Click on "Click here"
5) Do a few clicks on the page (table)
6) NOW you redeploy, I do it this way:
7) Click on Button "Deploy MyEclipse J2EE Project to server.."
8) Select projekct and Server and click on Button "Redeploy"
9) In the browsertab, you navigate to the first page of the project: "http://localhost:8080/ICEfacesTutorialExample/"
10) Click on "Click here" link
------ and then it throws the "Session expired" exception.

From point 9) on you can proceed however you want, I allways get the exception, except, I exit MyEclipse, start it and the servers and call the pages.

I have the latest Version of MyEclipse updated.

Can you reproduce this?

Klaus
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject: RE: Session expires after deployment  PostPosted: Jan 10, 2008 - 05:11 PM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23348

Ahhh, you don't even have to reload the page to see the error... just redeploy and watch your server console, Tomcat tries to deallocate the ICEfaces app and reload it, but it cannot, and eventually tries to unload the app and fails.

This is definately an ICE-faces issue, but the good news is that as long as you are deploying your app exploded ( which Run As or Debug As does automatically) every change you make is deployed after you save the file, you don't need to open up the deployment dialog and do it manually.

NOTE: Restarting Tomcat did correct the issue for me. After I stopped the server, I just did a Debug As again and it worked fine as before. I just don't think you can hotsync an entire ICE Faces app right now, so don't try and force the reload which using Redeploy will, or you'll have to restart Tomcat.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
kkaal
Post subject: RE: Session expires after deployment  PostPosted: Jan 10, 2008 - 05:26 PM
Registered Member
Registered Member


Joined: Sep 15, 2004
Posts: 38

:-) Thank you Riyad, I checked it as you suggested. Clever - a automated deployment. Although, when I get the "Session expired" issue, I really have to restart MyEclipse. That is doublechecked as well. But never mind. As long as I can work - who cares?

But another question: I would like to work with the new libraries of ICEfaces. Where do I have to put them, that a project drags the latest version automatically?

Thanks
Klaus
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject: RE: Session expires after deployment  PostPosted: Jan 10, 2008 - 06:55 PM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23348

Quote:

But another question: I would like to work with the new libraries of ICEfaces. Where do I have to put them, that a project drags the latest version automatically?

You can go to Window > Prefs > MyEclipse > Project Capabilities and redefine the contents of the ICEfaces library containers there, that way any project using the "ICEfaces" libraries from MyEclipse, will actually use the updated JARs you specify for them.

I'm glad it's working better now, and I believe you about restarting MyEclipse... I just have no idea why that is :)

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
xuyn2003
Post subject: RE: Session expires after deployment  PostPosted: May 06, 2008 - 03:21 AM



Joined: Apr 03, 2008
Posts: 4

I met the same problem, I just close the web brower and start it again, there would be no problem. I think it is because when you redeploy you appilication to Tomcat, tomcat would close all sessions. but the browser kept an old session if you didn't restart it.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits