I have a simple app using the default JSF 1.1 implementation in WebLogic
9.2.2, which also uses RichFaces 3.1.3. It works at this point.
I installed Tomcat 5.5.25. I copied all the jars from the MyFaces 1.1.5
lib directory to the "/shared/lib" directory of Tomcat.
I copied the myfaces-example-simple-1.1.6 app to the webapps dir. I
started up Tomcat and tested this app, and it appeared to be ok.
I then copied the war file from my WebLogic-deployed app (exported from
Eclipse) into the webapps dir. At this point, Tomcat basically went
insane. It hit a stack overflow error very quickly.
The first exception I saw in the catalina log file was this:
java.lang.NullPointerException
at
org.ajax4jsf.context.AjaxContextImpl.getSubmittedRegionClientId(AjaxCont
extImpl.java:574)
at
org.ajax4jsf.context.AjaxContextImpl.isAjaxRequest(AjaxContextImpl.java:
474)
at
org.ajax4jsf.context.AjaxContextImpl.isAjaxRequest(AjaxContextImpl.java:
466)
at
org.ajax4jsf.event.AjaxPhaseListener.afterPhase(AjaxPhaseListener.java:7
8)
at
org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAf
ter(PhaseListenerManager.java:92)
at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:134
)
at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:307)
This is just the beginning of the stack trace. It essentially went on
forever.
The localhost log file had the following exception:
Jan 21, 2008 4:24:09 PM org.apache.catalina.core.ApplicationDispatcher
invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.StackOverflowError
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(Application
HttpRequest.java:210)
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(Application
HttpRequest.java:222)
at
org.apache.catalina.core.ApplicationHttpRequest.getAttribute(Application
HttpRequest.java:222)
The last entry repeated forever.
Any ideas on where to go from here?