Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » Infinite recursion when deploying jsf-project to JBOSS 4.2
Infinite recursion when deploying jsf-project to JBOSS 4.2 [message #612078] Sun, 01 July 2007 16:37
Florian Reiser is currently offline Florian ReiserFriend
Messages: 25
Registered: July 2009
Junior Member
Hello,

I'm using eclipse 3.3 with wtp 2.0 to create some simple jsf-pages.
The project simply consists of login.jsp and welcome.jsp following the JSF
tutorial here on eclipse.org.

I've added the web.xml and faces-config.xml generated for my JBOSS 4.2
installation below.

When I deploy the application and request the login.jsp from my browser
(firefox) then JBOSS gets in an infinite loop. The server.log shows these
entries:

2007-07-01 18:05:30,859 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localho st].[/JBossTestWeb].[Faces
Servlet]] Servlet.service() for servlet Faces Servlet threw exception
java.lang.StackOverflowError
at
javax.servlet.http.HttpServletRequestWrapper.getSession(Http ServletRequestWrapper.java:216)
at
org.apache.catalina.core.ApplicationHttpRequest.getSession(A pplicationHttpRequest.java:545)
at
javax.servlet.http.HttpServletRequestWrapper.getSession(Http ServletRequestWrapper.java:216)
at
org.apache.catalina.core.ApplicationHttpRequest.getSession(A pplicationHttpRequest.java:545)

... The two last lines repeating itself.

What have I done wrong?

With kind regards
Florian Reiser
http://www.ra-bc.de


web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID" version="2.5">
<display-name>JBossTestWeb</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<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>*.jsp</url-pattern>
</servlet-mapping>
</web-app>

faces-config.xml:

<?xml version="1.0" encoding="UTF-8"?>

<faces-config
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-facesconfig_1_2.xsd"
version="1.2">
<managed-bean>
<managed-bean-name>
loginBean</managed-bean-name>
<managed-bean-class>
com.tutorial.LoginBean</managed-bean-class>
<managed-bean-scope>
session</managed-bean-scope>
</managed-bean>
<navigation-rule>
<display-name>
login</display-name>
<from-view-id>
/login.jsp</from-view-id>
<navigation-case>
<from-outcome>
login</from-outcome>
<to-view-id>
/welcome.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<validator>
<display-name>
Validate Password</display-name>
<validator-id>
com.tutorial.ValidatePassword</validator-id>
<validator-class>
com.tutorial.ValidatePassword</validator-class>
</validator>

</faces-config>
Previous Topic:[Fwd: Re: Announcing Webtools 2.0]
Next Topic:Infinite recursion when deploying jsf-project to JBOSS 4.2
Goto Forum:
  


Current Time: Thu Dec 18 08:34:25 GMT 2014

Powered by FUDForum. Page generated in 0.21459 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software