AJAX in JSF with ajax4jsf
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   saeed_qorbani
Posted On:   Wednesday, September 17, 2008 03:12 AM

Hi I`m new to ajax4jsf . i`m trying to use ajax in my jsf application. I used Jboss seam in my app. for using ajax4jsf , i copy the ajax4jsf.jar in my WEB-INF/lib , deploy app and start jboss , but when i want to link to my app e.x (http://localhost:8080/myapp), am exception was thrown as below : 10:05:29,781 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception java.lang.NullPointerException at org.jboss.seam.contexts.PageContext.getCurrentReadableMap(PageContext.java:62) at org.jboss.seam.contexts.PageContext.get(PageContext.java:52) at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:125) at org.jboss.seam.Component.getInstance(Compo   More>>

Hi
I`m new to ajax4jsf . i`m trying to use ajax in my jsf application.
I used Jboss seam in my app. for using ajax4jsf , i copy the ajax4jsf.jar in my WEB-INF/lib , deploy app and start jboss , but when i want to link to my app e.x (http://localhost:8080/myapp), am exception was thrown as below :


10:05:29,781 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
java.lang.NullPointerException
at org.jboss.seam.contexts.PageContext.getCurrentReadableMap(PageContext.java:62)
at org.jboss.seam.contexts.PageContext.get(PageContext.java:52)
at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:125)
at org.jboss.seam.Component.getInstance(Component.java:1026)
at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:43)
at org.ajax4jsf.framework.ajax.AjaxContext.getCurrentInstance(AjaxContext.java:154)
at org.ajax4jsf.framework.renderer.AjaxPhaseListener.beforePhase(AjaxPhaseListener.java:124)
at org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore(LifecycleImpl.java:520)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:342)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23)


////////////////////////////////////////

Do anyone know what is the problem?

thanx for help and sorry for my poor English.

   <<Less
About | Sitemap | Contact