users@glassfish.java.net

Problem with sun:page in v2m3

From: Greg Ederer <greg_at_ergonosis.com>
Date: Sun, 17 Dec 2006 13:27:24 -0800

Hi,

I posted a message about this last week that did not elicit any
response. I don't mean to be a nuisance, but, I'm really stuck. I am
using GlassFish v2 m3 in conjunction with NetBeans 5.5 on Mac OS X. My
application works just fine under b27 and prior releases. But, when I
deploy into m3, I get the following stack trace:

executePhase(RESTORE_VIEW
1,com.sun.faces.context.FacesContextImpl_at_45c2a3) threw exception
java.lang.IllegalArgumentException: ComponentType 'sun:page' not defined!
       at
com.sun.jsftemplating.layout.template.TemplateReader.createLayoutComponent(TemplateReader.java:311)

       at
com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:58)

       at
com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:270)

       at
com.sun.jsftemplating.layout.template.TemplateReader.readLayoutDefinition(TemplateReader.java:156)

       at
com.sun.jsftemplating.layout.template.TemplateReader.read(TemplateReader.java:114)

       at
com.sun.jsftemplating.layout.template.TemplateLayoutDefinitionManager.getLayoutDefinition(TemplateLayoutDefinitionManager.java:167)

       at
com.sun.jsftemplating.layout.LayoutDefinitionManager.getLayoutDefinition(LayoutDefinitionManager.java:123)

       at
com.sun.jsftemplating.layout.LayoutViewRoot.getLayoutDefinition(LayoutViewRoot.java:230)

       at
com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:142)

       at
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:201)
       at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
       at
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
       at
com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:79)

       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
       at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)

       at
org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:839)

       at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)

       at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:528)

       at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:461)

       at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:353)

       at
org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:401)

       at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:225)

       at
com.sun.web.security.RealmAdapter.invokeAuthenticateDelegate(RealmAdapter.java:1078)

       at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:631)

       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)

       at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
       at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:186)

       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)

       at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
       at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1032)
       at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)

       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)

       at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
       at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1032)
       at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:250)
       at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)

       at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:549)

       at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)

       at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)

       at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)

       at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)

       at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
       at
com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)

ApplicationDispatcher[] PWC1231: Servlet.service() for servlet
FacesServlet threw exception
java.lang.IllegalArgumentException: ComponentType 'sun:page' not defined!
       at
com.sun.jsftemplating.layout.template.TemplateReader.createLayoutComponent(TemplateReader.java:311)

       at
com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:58)

       at
com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:270)

       at
com.sun.jsftemplating.layout.template.TemplateReader.readLayoutDefinition(TemplateReader.java:156)

       at
com.sun.jsftemplating.layout.template.TemplateReader.read(TemplateReader.java:114)

       at
com.sun.jsftemplating.layout.template.TemplateLayoutDefinitionManager.getLayoutDefinition(TemplateLayoutDefinitionManager.java:167)

       at
com.sun.jsftemplating.layout.LayoutDefinitionManager.getLayoutDefinition(LayoutDefinitionManager.java:123)

       at
com.sun.jsftemplating.layout.LayoutViewRoot.getLayoutDefinition(LayoutViewRoot.java:230)

       at
com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:142)

       at
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:201)
       at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
       at
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
       at
com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:79)

       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
       at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)

       at
org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:839)

       at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)

       at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:528)

       at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:461)

       at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:353)

       at
org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:401)

       at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:225)

       at
com.sun.web.security.RealmAdapter.invokeAuthenticateDelegate(RealmAdapter.java:1078)

       at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:631)

       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)

       at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
       at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:186)

       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)

       at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
       at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1032)
       at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)

       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)

       at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
       at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1032)
       at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:250)
       at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)

       at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:549)

       at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)

       at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)

       at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)

       at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)

       at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
       at
com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)

Unexpected error forwarding to login page
javax.servlet.ServletException: ComponentType 'sun:page' not defined!
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
       at
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)

       at
org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:839)

       at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)

       at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:528)

       at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:461)

       at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:353)

       at
org.apache.catalina.authenticator.FormAuthenticator.forwardToLoginPage(FormAuthenticator.java:401)

       at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:225)

       at
com.sun.web.security.RealmAdapter.invokeAuthenticateDelegate(RealmAdapter.java:1078)

       at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:631)

       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)

       at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
       at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:186)

       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)

       at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
       at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1032)
       at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)

       at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)

       at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
       at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1032)
       at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:250)
       at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)

       at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:549)

       at
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)

       at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)

       at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)

       at
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)

       at
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
       at
com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)

Caused by: java.lang.IllegalArgumentException: ComponentType 'sun:page'
not defined!
       at
com.sun.jsftemplating.layout.template.TemplateReader.createLayoutComponent(TemplateReader.java:311)

       at
com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:58)

       at
com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:270)

       at
com.sun.jsftemplating.layout.template.TemplateReader.readLayoutDefinition(TemplateReader.java:156)

       at
com.sun.jsftemplating.layout.template.TemplateReader.read(TemplateReader.java:114)

       at
com.sun.jsftemplating.layout.template.TemplateLayoutDefinitionManager.getLayoutDefinition(TemplateLayoutDefinitionManager.java:167)

       at
com.sun.jsftemplating.layout.LayoutDefinitionManager.getLayoutDefinition(LayoutDefinitionManager.java:123)

       at
com.sun.jsftemplating.layout.LayoutViewRoot.getLayoutDefinition(LayoutViewRoot.java:230)

       at
com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:142)

       at
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:201)
       at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
       at
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
       at
com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:79)

       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
       ... 29 more

My guess is that I have a missing JAR. But, I don't know which one.
Does anyone know where the component type 'sun:page' is defined?

Any suggestions greatly appreciated.

Thanks!

Greg

-- 
| E R G O N O S I S
| Greg Ederer
| Lead Developer
| greg_at_ergonosis.com
| 360.774.6848
|