[JBoss Tools (users)] - JSF project and RHD beta 2
by jonathan12
Hello,
I would like to create a new jsf project. The creation is working correctly but when I click on a link to a JSF page, the browser asks me to download the file.
My page is a xhtml file and I have set this in my web.xml :
<context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.xhtml</param-value>
| </context-param>
So, I tried with a jsp file, just to see if the problem comes from my xhtml. Now, my JSP is displayed, but only if I have no JSF tag. If I add a simple <h:outputText>, I have this exception :
java.lang.NullPointerException
| javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:929)
| javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
| org.apache.jsp.index2_jsp._jspx_meth_h_outputText_0(index2_jsp.java:85)
| org.apache.jsp.index2_jsp._jspService(index2_jsp.java:58)
| org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
| org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
| org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
| com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
| com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
| com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
| com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
| com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
Somebody to help me ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093325#4093325
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093325
18Â years, 7Â months
[JBoss Seam] - Re: boolean property not binding
by sbozdag
Thanks. I added getters and setters methods to both files by now. Error message has changed to:
Exception during request processing:
Caused by javax.faces.FacesException with message: "Problem in renderResponse: javax.el.ELException: /mypage.xhtml @35,75 value="#{bean.checked}": Error reading 'checked' on type org.javassist.tmp.java.lang.Object_$$_javassist_2"
And this is the stack trace:
| com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:324)
| com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
| com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
| com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
| com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:26)
| com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:143)
| com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
| com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:31)
| com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:46)
| com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
| com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
| com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
| com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)
| com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:109)
| com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
| com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
| com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
| com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:98)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
| org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| java.lang.Thread.run(Thread.java:595)
I read through the JBoss Seam book but I could not find anything saying I am doing wrong. But, what am I missing?
cheers
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093324#4093324
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093324
18Â years, 7Â months
[JBoss Tools (users)] - 3 issues related to JSF projects
by ova
I don't know whether the issues below were already fixed. But I had that with RedHat Developer Studio Beta 1
1.) I work with MyFaces Tomahawk which is present in the "Red Hat Palette". If I tip <t: and push Strg+Space, I get an exception: "Content Assist" did not complete normally. Please see the log for more information. java.lang.NullPointerException.
2.) There isn't a file association for CSS files in Window --> Preferences --> General. Therefore I cannot open any *.css files. I get an exception:
"An error has occurred. See error log for more details. org.eclipse.wst.css.core.internal.document.CSSModelImpl cannot be cast to org.w3c.dom.Node".
3.) My web.xml has an filter entry
| <filter>
| <filter-name>SecurityFilter</filter-name>
| <filter-class>
| ip.client.commons.web.secfilter.filter.SecurityFilter
| </filter-class>
| <init-param>
| <param-name>config</param-name>
| <param-value>
| /WEB-INF/securityfilter-config.xml
| </param-value>
| <description>Configuration file location</description>
| </init-param>
| </filter>
|
I get an error: "error: Attribute param-value references to /WEB-INF/securityfilter-config.xml that is not a valid struts config file".
Clear, the file securityfilter-config.xm is not a struts config file. Why believes RedHat that it would be the struts config file ? All work great, if I go to Window --> Prefernces --> RedHat --> Verification --> Struts Rules and take out "Check Web Descriptor".
Best Regards.
Oleg.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093323#4093323
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093323
18Â years, 7Â months