Messages posted by Kraderif
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
Messages posted by: Kraderif  XML
Profile for Kraderif -> Messages posted by Kraderif [6]
Author Message
Mmm... any other clue?

I have checked the web.xml many times but it seems fine to me. And I don't know if the faces-config.xml should have any navigation rule, cause it is just one page with a data table with a paginator. I just wanted to see the paginator work.

As I said earlier, the first time the page loads, it shows the data on the table, but when I click on the "next page" button, I get the error I have already mentioned.

Seems to me like the session is being lost at some point.


Anyway, here are the web.xml and faces-config.xml files.

web.xml
Code:
 <?xml version="1.0"?>
 
 <!DOCTYPE web-app PUBLIC
   "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
   "http://java.sun.com/dtd/web-app_2_3.dtd">
 
 <web-app>
 
 	<context-param>
 		<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
 		<param-value>server</param-value>
 	</context-param>
 
 	<context-param>
 		<param-name>javax.faces.application.CONFIG_FILES</param-name>
 		<param-value>/WEB-INF/faces-config.xml</param-value>
 	</context-param>
 	
     <context-param>
       <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
       <param-value>.jspx</param-value>
     </context-param>
 	
 
 	<!-- Faces Servlet -->
     <servlet>
         <servlet-name>Faces Servlet</servlet-name>
         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
         <load-on-startup> 1 </load-on-startup>
     </servlet>
 
     <servlet>
         <servlet-name>Persistent Faces Servlet</servlet-name>
         <servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
         <load-on-startup> 1 </load-on-startup>
     </servlet>
 
     <servlet>
         <servlet-name>Blocking Servlet</servlet-name>
         <servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
         <load-on-startup> 1 </load-on-startup>
     </servlet>
 
 	<!-- extension mapping -->
     <servlet-mapping>
         <servlet-name>Persistent Faces Servlet</servlet-name>
         <url-pattern>*.iface</url-pattern>
     </servlet-mapping>
 
     <servlet-mapping>
         <servlet-name>Persistent Faces Servlet</servlet-name>
         <url-pattern>/xmlhttp/*</url-pattern>
     </servlet-mapping>
 
     <servlet-mapping>
         <servlet-name>Blocking Servlet</servlet-name>
         <url-pattern>/block/*</url-pattern>
     </servlet-mapping>
 
 </web-app>
 


faces-config.xml
Code:
 <?xml version='1.0' encoding='UTF-8'?>
 <!DOCTYPE faces-config PUBLIC
         "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
         "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
 
 <faces-config>
     
     <managed-bean>
         <description>My bean for table paginator example.</description>
         <managed-bean-name>inventoryList</managed-bean-name>
         <managed-bean-class>russell.icefaces.table.paginator.TableBean</managed-bean-class>
         <managed-bean-scope>session</managed-bean-scope>
     </managed-bean>
 
 </faces-config>
 
This sounds like a navigation-rule issue. Can you post your navigation-rules from the faces-config.xml file? 


Well, since it is just one JSP with a paginator, I don't have any navigation rules, I just have the managed bean.
Hello, my name is Russell.
I have been trying to run a little ICEFaces example, it is just a table paginator, but can not make it work properly.

I downloaded the ICEfaces v1.6.0 DR#5 binaries, added all the necessary jars, and followed the steps of the tutorial. When I run the application, the page shows the initial table just fine, but when I click on a "next page" button, the table does not update and after a while I get the message "Session expired. Click on the reload button".

I have checked the web.xml file over and over again but the application still doesn't work. The weird thing is that I installed the the components-showcase and the address samples that come with the ICEFaces jar and they work smooth. I tried with the DR#4 and the v1.5.3 but my paginator still doesn't work.

Then I downloaded the DR#5 source code, I compiled it with no problems (except with the one mentioned [url=http://www.icefaces.org/JForum/posts/list/4036.page]here[url]). I set up the logging with log4j and I got the next error:

Code:
 exception
 
 javax.servlet.ServletException: Session expired
 	com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:69)
 	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 
 root cause
 
 javax.servlet.ServletException: Session expired
 	com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:38)
 	com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
 	com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
 	com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:65)
 	javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 



The logger says this:
Code:
 17:55:38,613 DEBUG MainServlet:56 - entering main servlet
 via Attributes - via Methods
 javax.servlet.include.context_path: null - /JSF - ICEFaces
 javax.servlet.include.path_info: null - null
 javax.servlet.include.query_string: null - null
 javax.servlet.include.request_uri: null - /JSF%20-%20ICEFaces/paginatorTable.iface
 javax.servlet.include.servlet_path: null - /paginatorTable.iface
 
 via getAttributeNames():
 
 17:55:38,613 DEBUG PathDispatcher:23 - path: /JSF%20-%20ICEFaces/paginatorTable.iface
 



By the way, I am using Tomcat 5.0.25 with the JVM 1.4.2_04-b05.


Any help will be really appreciated. Thank you.
I am so sorry, I am not using JBoss, I am using Tomcat 5.025. I arrived here using the search tool and I just saw the "User Session Expired" thread title, didn't notice this was a JBoss section :(

I was a bit unclear on my first message, I will try to explain it better:

- I tried to create my own paginator example (and some others too) with DR4. They didn't work.
- I installed the component-showcase and the address demo that come with DR4 zip file. Those worked fine.
- I changed my own paginator to 1.5.3 release. Didn't work either.

I am using Mozilla Firefox 2, but also tested with Internet Explorer 6 and the same thing happens.
I forgot ... on ICEfaces 1.6.0 DR4, on the Javascript consolse of Mozilla, the next error appears:

Code:
 Error: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]"  nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: http://localhost:8080/JSF%20-%20ICEFaces/xmlhttp/1179173110078/icefaces-d2d.js :: anonymous :: line 1106"  data: no]
 Source File: http://localhost:8080/JSF%20-%20ICEFaces/xmlhttp/1179173110078/icefaces-d2d.js
 Line: 1106
 


That line is this one:
Code:
if(this.isComplete()){
 this.logger.debug("["+this.identifier+"] : receive ["+this.request.status+"] "+this.request.statusText);
 }



Hope that helps for something.
Hello everyone,

I have the same problem.

I was trying some of the tutorial samples with ICEfaces v1.6.0 DR#4, but they did absolutely nothing. (For example, a table with a paginator never reloaded after clicking on the "next page" button.) No error message appeared on the browser but on the server output file there was the next:
Code:
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$2 run
 WARNING: [1] views have accumulated updates



After trying many things, I noticed that when the context parameters com.icesoft.faces.concurrentDOMViews and om.icesoft.faces.synchronousUpdate are set to false, I get the next error message: "Network Connection Interrupted
To reconnect click the Reload button on the browser or click the button below".
There is no stacktrace but I get the next messages on the server output file:
Code:
 com.icesoft.faces.webapp.http.core.ReceivePing service
 WARNING: could not get a valid queue for 1
 



Then I downloaded the last release (ICEfaces v1.5.3) and the "User Session Expired" message appears.

I deployed the component-showcase and the address sample that comes with the ICEfaces v1.6.0 DR#4 package and those applications worked just fine.

I have checked the code and the xml config. files (web, faces-config) over and over and don't know what is happening.

I am using Tomcat 5.0.25 with Java 1.4.2_04-b05.

Can anyone help me please?
Thank you.
 
Profile for Kraderif -> Messages posted by Kraderif [6]
Go to:   
Powered by JForum 2.1.7ice © JForum Team