|
|
|
Re: Dynamic Web Project with JSF v1.2 & tomcat 6.0.28 [message #548697 is a reply to message #548652] |
Thu, 22 July 2010 16:50 |
|
On 7/22/2010 8:59 AM, ElArbi wrote:
> Excellent tutorial and companion notes. I've managed to finish my first
> app in few minutes. BUT I have the problem refernced as "Millions of
> console nastygrams launching JSP " in the Companion notes. I removed one
> of the two mappings
> </servlet>
> <!-- <servlet-mapping>-->
> <!-- <servlet-name>faces</servlet-name>-->
> <!-- <url-pattern>*.jsf</url-pattern>-->
> <!-- </servlet-mapping>-->
> <servlet-mapping>
> <servlet-name>faces</servlet-name>
> <url-pattern>*.faces</url-pattern>
> </servlet-mapping>
>
> But I still have the same problem:
> SEVERE: Servlet.service() for servlet faces threw exception
> java.lang.StackOverflowError
>
I think web.xml should contain (among other things, see
http://www.javahotchocolate.com/tutorials/jsf-notes.html#web .xml):
..
..
..
<servlet-mapping>
<servlet-name>faces</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-mapping>
<servlet-name>faces</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>.
..
..
..
|
|
|
|
|
|
Re: Dynamic Web Project with JSF v1.2 & tomcat 6.0.28 [message #548906 is a reply to message #548832] |
Fri, 23 July 2010 13:04 |
|
On 7/23/2010 2:37 AM, ElArbi wrote:
> I solved the problem by removing one of the two FacesServlet definition.
> In fact, if the url matches the two FacesServlet mappings in the same
> time (e.g. .../faces.blah.jsf) I have this "Millions of console
> nastygrams launching JSP" problem.
>
> Thanks
> Regards
If you wouldn't mind, please send me both? That way, I can draw some
useful conclusion and add this to my jumble of notes (that will one day
be the foundation of a tutorial).
Russ
|
|
|
Re: Dynamic Web Project with JSF v1.2 & tomcat 6.0.28 [message #548926 is a reply to message #548906] |
Fri, 23 July 2010 13:08 |
|
On 7/23/2010 7:04 AM, Russ Bateman wrote:
> On 7/23/2010 2:37 AM, ElArbi wrote:
>> I solved the problem by removing one of the two FacesServlet definition.
>> In fact, if the url matches the two FacesServlet mappings in the same
>> time (e.g. .../faces.blah.jsf) I have this "Millions of console
>> nastygrams launching JSP" problem.
>>
>> Thanks
>> Regards
>
>
> If you wouldn't mind, please send me both? That way, I can draw some
> useful conclusion and add this to my jumble of notes (that will one day
> be the foundation of a tutorial).
>
> Russ
(Both web.xml files, that is.)
|
|
|
Powered by
FUDForum. Page generated in 0.04724 seconds