You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Karr, David" <da...@wamu.net> on 2008/01/23 05:00:40 UTC

Tomcat blew up (stack overflow error) deploying an app with MyFaces/RichFaces

Tomcat 5.5.25, JDK 1.5.0_11, WinXPSP2.

I copied a war file to webapps and it auto-deployed it, but it failed
autodeploy, which I expected.  I then copied in several jars into the
exploded WEB-INF/lib directory.  At that point, in a fraction of a
second the log file was filled up with a stack overflow error.

The original WAR file uses RichFaces, but it was originally deployed to
WebLogic, which implicitly uses its own JSF implementation, so the JSF
implementation isn't in WEB-INF/lib.  When I copied it into Tomcat's
webapps dir, it failed because of the missing JSF implementation.  I
then copied in all the jars from the MyFaces 1.1.5 distro, as an attempt
to provide the JSF implementation.  That's when it blew up.

In the log file, there were two exceptions.  The first one had a
"normal" stack trace, and the second one was the big one.  I'll paste
some of both of them here.  For the second one, the two stack entries
there repeated forever.

SEVERE: Exception starting filter richfaces
java.lang.NoClassDefFoundError: javax/faces/FacesException
	at org.ajax4jsf.webapp.BaseFilter.init(BaseFilter.java:146)
	at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFi
lterConfig.java:221)
	at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applicatio
nFilterConfig.java:302)
	at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilte
rConfig.java:78)
	at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.jav
a:3635)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4222
)
      ... More

SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.StackOverflowError
	at
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletReque
stWrapper.java:216)
	at
org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHt
tpRequest.java:545)
	at
javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletReque
stWrapper.java:216)
	at
org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHt
tpRequest.java:545)
      ... More

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org