admin@glassfish.java.net

Re: Handler.map file missing

From: Irfan Ahmed <Irfan.Ahmed_at_Sun.COM>
Date: Wed, 03 Oct 2007 21:01:20 +0530
Hi All,

I figured this from reading my own mail :-[ .
The Handler.map file is indeed being read, however due to a typo the map file does not contain the saveSipService method. I updated the java file with the correct code and the handler works fine.

-irfan.

Irfan Ahmed wrote:
Hi All,

This question is in relation to the Sailfin GUI we are developing which extends upon the glassfish admin GUI.

I have setup handlers for the Sailfin specific JSF pages. I have also used the apt task to generate the Handler.map file which is put in a jar file which contains all the sailfin GUI code. This jar file is available in the class path as it is placed under <glassfish-install>/lib directory. Also it is in the directory structure as specified i.e., META-INF/jsftemplating/Handler.map

Now when I hit the JSF page I get an error in the logs saying that the Handler.map file does not contain the handler definitions. Could it be that the Handler.map in the glassfish admin GUI jar files is read the the one in the sailfin jars is ignored.

I have attached the exception and the generated Handler.map file. Please help.

[#|2007-10-03T13:11:25.785+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=20;_ThreadName=httpWorkerThread-4848-2;_RequestID=c90e05f6-05fd-4104-a30a-63edbe64ea40;|StandardWrapperValve[FacesServlet]: PWC1406: Servlet.service() for servlet FacesServlet threw exception
com.sun.jsftemplating.layout.SyntaxException: Handler 'saveSipService' in event 'command' is not declared!  Ensure the '@Handler' annotation has been defined on the handler Java method, that it has been compiled with the annotation processing tool, and that the resulting 'META-INF/jsftemplating/Handler.map' is located in your classpath (you may need to do a clean build).
    at com.sun.jsftemplating.layout.template.TemplateReader$EventParserCommand.readHandler(TemplateReader.java:851)
    at com.sun.jsftemplating.layout.template.TemplateReader$EventParserCommand.process(TemplateReader.java:793)
    at com.sun.jsftemplating.layout.template.BaseProcessingContext.beginSpecial(BaseProcessingContext.java:106)
    at com.sun.jsftemplating.layout.template.TemplateReader$LayoutComponentContext.beginSpecial(TemplateReader.java:734)
    at com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:264)
    at com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:81)
    at com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:279)
    at com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:81)
    at com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:279)
    at com.sun.jsftemplating.layout.template.TemplateReader$FacetParserCommand.process(TemplateReader.java:1102)
    at com.sun.jsftemplating.layout.template.BaseProcessingContext.beginSpecial(BaseProcessingContext.java:106)
    at com.sun.jsftemplating.layout.template.TemplateReader$LayoutComponentContext.beginSpecial(TemplateReader.java:734)
    at com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:264)
    at com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:81)
    at com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:279)
    at com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:81)
    at com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:279)
    at com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:81)
    at com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:279)
    at com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:81)
    at com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:279)
    at com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:81)
    at com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:279)
    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:168)
    at com.sun.jsftemplating.layout.LayoutDefinitionManager.getLayoutDefinition(LayoutDefinitionManager.java:129)
    at com.sun.jsftemplating.layout.LayoutViewRoot.getLayoutDefinition(LayoutViewRoot.java:291)
    at com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:160)
    at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:203)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
    at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
    at com.sun.enterprise.tools.admingui.servlet.DelayedInitFacesServlet.service(DelayedInitFacesServlet.java:89)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
    at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261)
    at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
    at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:116)
|#]


--
<a class="moz-txt-link-abbreviated" href=<a class="moz-txt-link-rfc2396E" href="mailto:irfan@sun.com">"mailto:irfan@sun.com"</a>><a class="moz-txt-link-abbreviated" href="mailto:irfan@sun.com">irfan@sun.com</a></a>
Irfan Ahmed | Sun Microsystems Inc., Bangalore, India. | 9180-66927726, x27726

--------------------------------------------------------------------- To unsubscribe, e-mail: admin-unsubscribe@glassfish.dev.java.net For additional commands, e-mail: admin-help@glassfish.dev.java.net

--
<a class="moz-txt-link-abbreviated" href="mailto:irfan@sun.com">irfan@sun.com</a>
Irfan Ahmed | Sun Microsystems Inc., Bangalore, India. | irfan@sun.com - 9180.66927726 - x27726