users@glassfish.java.net

Re: Problems with JSF's 'links'

From: Gilberto Müller <kenpozeiro_at_yahoo.com.br>
Date: Tue, 25 Jul 2006 13:40:58 -0700 (PDT)

I did some tests...

By typing those urls i've got the respective error, just to let you know (I don't know if it's normal, just though that it was a bit strange, is this correct?)

500-faces-faces:
http://localhost:8080/testenviroment/faces/faces/welcomeJSF.jsp

500-faces-faces-faces:
http://localhost:8080/testenviroment/faces/faces/faces/welcomeJSF.jsp

404-faces-justtest:
http://localhost:8080/testenviroment/faces/justtest/welcomeJSF.jsp

500-faces-justtest-faces:
http://localhost:8080/testenviroment/faces/justtest/faces/welcomeJSF.jsp

* All files are .htm

----- Original Message ----
From: Gilberto Müller <kenpozeiro_at_yahoo.com.br>
To: users_at_glassfish.dev.java.net
Sent: Tuesday, 25 July, 2006 5:21:00 PM
Subject: Re: Problems with JSF's 'links'

No, that's because I send you with <to-view-id>/index.faces</to-view-id> in faces.config, I'm sorry, the correct is
<to-view-id>/index.jsp</to-view-id>

I tried and it worked once but again it crashes.

I've seen that the URL point the second time for:
http://localhost:8080/testenviroment/faces/faces/welcomeJSF.jsp

This URL doesn't show 404 error, but a 500 as attached.

The 'secont test' just refresh the screen...


----- Original Message ----
From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
To: users_at_glassfish.dev.java.net
Sent: Tuesday, 25 July, 2006 4:47:10 PM
Subject: Re: Problems with JSF's 'links'

Gilberto Müller wrote:
> The answer for all questions is yes.
>
> Here is my Netbeans project, it's small and maybe it could help!
>
By not working do you mean you're getting a 404 error when you select
the link?

> Thanx,
>
> Gilberto Müller
>
>
>
> ----- Original Message ----
> From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
> To: users_at_glassfish.dev.java.net
> Sent: Monday, 24 July, 2006 4:31:27 PM
> Subject: Re: Problems with JSF's 'links'
>
> A few questions:
>
> - Is Javascript enabled in your browser? If not, enable it.
> The the command link uses it.
> - If Javascript is enabled, are there any javascript errors
> appearing in your browser's JS console?
> - You do have a navigation case set up for this right?
>
>
>
> Gilberto Müller wrote:
>
>> Hi there,
>>
>> I'm trying to use 'links' in my web application but it doesn't work.
>> I don't know if I'm doing something wrong, it used to work at JBoss AS:
>>
>> I've tried this (both are not working properly):
>>
>> ----------------------------------
>>
>> <%@taglib prefix="f" uri="http://java.sun.com/jsf/core";;;%>
>> <%@taglib prefix="h" uri="http://java.sun.com/jsf/html";;;%>
>>
>> <html>
>> <head>
>> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
>> <title>JSP Page</title>
>> </head>
>> <body>
>> <f:view>
>> <h1><h:outputText value="Java Server Faces" /></h1>
>> <h:form>
>> <h:commandLink action="index" value="First test"/>
>>
>> </h:form>
>> </f:view>
>> </body>
>> </html>
>>
>> ----------------------------------
>>
>> Can anyone give me a hand?
>>
>>
>> Thank you in advance,
>>
>> Gilberto Müller
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net




Sun Java System Application Server Platform Edition 9.1 - Error reportHTTP Status 500 - type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: PWC1232: Exceeded maximum depth for nested request dispatches: 20
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
        com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:410)
        com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:112)
        com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:108)
        com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:242)
        com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
        javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
        com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
        com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
        org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
        com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:701)
        com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:608)
        com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:878)
        com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:325)
        com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:250)
        com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:204)
        com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
        com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:104)

note The full stack trace of the root cause is available in the Sun Java System Application Server Platform Edition 9.1 logs.
Sun Java System Application Server Platform Edition 9.1---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net