Exception Management in web apps(SEAM + ICEFACES)
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Exception Management in web apps(SEAM + ICEFACES)  XML
Forum Index -> JBoss Seam Integration
Author Message
mnigrelli

Joined: 10/01/2007 00:00:00
Messages: 9
Offline


This message looks similar to the one that I have posted few mins ago. Sorry.

I am working on building a web application based on SEAM and ICEFACES under JBossAS.

This is what I am using:
JBossAS 4.0.5(with jboss-EJB-3.0_RC9_Patch_1)
Seam 1.1.0 GA
IceFaces 1.5.1(with facelets support)

The problem is that when I logout from the application, ICEFACES(??) shows me a popup with an error message thus blocking the redirect set up on the exceptions.xml file(seam configuration file for exception management)

Is there anybody who have faced the same problem?
Is it a bug or am I forgotting something in the configuration files(web.xml or components.xml)?

Here is the web.xml:

<?xml version="1.0" encoding="utf-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/navigation.xml</param-value>
</context-param>

<!-- JSF -->
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>

<!-- Seam -->
<listener>
<listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
</listener>

<!-- ICE FACES
<listener>
<listener-class>com.icesoft.faces.util.event.servlet.ContextEventRepeater</listener-class>
</listener>
-->

<!-- MyFaces -->
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
</listener>

<!-- JSF RI -->
<!--
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
-->

<filter>
<filter-name>Seam Exception Filter</filter-name>
<filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>Seam Exception Filter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>

<!-- Code that preserves the Seam conversational state is executed by introspection in the ICEfaces framework
<filter>
<filter-name>Seam Redirect Filter</filter-name>
<filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>Seam Redirect Filter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
-->

<!--
<context-param>
<param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
<param-value>true</param-value>
</context-param>

<context-param>
<param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
<param-value>false</param-value>
</context-param>

<context-param>
<param-name>org.apache.myfaces.PRETTY_HTML</param-name>
<param-value>true</param-value>
</context-param>

<context-param>
<param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
<param-value>true</param-value>
</context-param>
-->
<!-- Facelets Config -->
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>

<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>

<!-- IceFaces Config -->
<context-param>
<param-name>com.icesoft.faces.actionURLSuffix</param-name>
<param-value>.jsf</param-value>
</context-param>

<context-param>
<param-name>com.icesoft.faces.synchronousUpdate</param-name>
<param-value>true</param-value>
</context-param>

<!--- ice -->
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>

<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>true</param-value>
</context-param>

<context-param>
<param-name>com.icesoft.faces.concurrentDOMViews</param-name>
<param-value>true</param-value>
</context-param>

<context-param>
<param-name>com.icesoft.faces.doJSFStateManagement</param-name>
<param-value>true</param-value>
</context-param>

<!-- Faces Servlet - org.apache.myfaces -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>org.apache.myfaces.webapp.MyFacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<!-- Faces Servlet - javax.faces
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
-->
<!--
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
-->

<!-- Blocking 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>

<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-mapping>
<servlet-name>Persistent Faces Servlet</servlet-name>
<url-pattern>/xmlhttp/*</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>Persistent Faces Servlet</servlet-name>
<url-pattern>*.iface</url-pattern>
</servlet-mapping>

<!-- Blocking Servlet Mapping -->
<servlet-mapping>
<servlet-name>Blocking Servlet</servlet-name>
<url-pattern>/block/*</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>Persistent Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>

<session-config>
<session-timeout>15</session-timeout>
</session-config>
</web-app>

And this is the components.xml:
<?xml version="1.0" encoding="UTF-8"?>
<components xmlns="http://jboss.com/products/seam/components"
xmlns:core="http://jboss.com/products/seam/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.1.xsd
http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.1.xsd">

<component name="org.jboss.seam.core.init">
<property name="debug">true</property>
<property name="jndiPattern">seamapp/#{ejbName}/local</property>
</component>

<component name="org.jboss.seam.core.manager">
<!-- half second wait for conversation lock on concurrent requests -->
<property name="concurrentRequestTimeout">500</property>
<!-- 120 second conversation timeout -->
<property name="conversationTimeout">120000</property>
<property name="conversationIdParameter">cid</property>
<property name="conversationIsLongRunningParameter">
clr
</property>
</component>

<component name="entityManager"
class="org.jboss.seam.core.ManagedPersistenceContext">
<property name="persistenceUnitJndiName">
java:/seamappEntityManagerFactory
</property>
</component>

<component name="hibernateSessionFactory" class="org.jboss.seam.core.HibernateSessionFactory" />
<component name="hibernateSession" auto-create="true"
class="org.jboss.seam.core.ManagedHibernateSession">
<property name="sessionFactoryJndiName">
java:/seamappSessionFactory
</property>
</component>

</components>

Thanx in advance to everybody.

Max
philip.breau


Joined: 08/05/2006 00:00:00
Messages: 2691
Offline


Hi,

Just add an <ice:outputConnectionStatus/> to the page.

Thanks,
Philip

.
mnigrelli

Joined: 10/01/2007 00:00:00
Messages: 9
Offline


Another issue dealing with exception management:
when i try to intercept an exception via using the exceptions.xml from SEAM, IceFaces seems to "freeze" the redirect set on that file, thus refreshing the page.

Is there any setting I have to do or is it a IceFaces/Seam bug???

Thank you in advance.
 
Forum Index -> JBoss Seam Integration
Go to:   
Powered by JForum 2.1.7ice © JForum Team