voyent
icefaces jboss tutorial  XML
Forum Index -> General Help
Author Message
hockey9876

Joined: 25/Sep/2009 00:00:00
Messages: 24
Offline


I'm trying to do the tutorial @ the url below:
http://www.mastertheboss.com/en/web-interfaces/201-icefaces-tutorial-on-jboss.html

I've set up everything like it says to. At app deployment, things look like
they work ok. However, when I request the page, as done in the
tutorial, I get the following error:

ax.servlet.ServletException: java.lang.Exception: javax.faces.FacesException: Can't find stream for /table.jsp
com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:158)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


I have the one page in my app, table.jspx and in the browser, I'm calling
table.iface

Can anyone provide a hint as to what's going wrong?

Thanks,

John

Thanks,

John
edykory


Joined: 27/Nov/2006 00:00:00
Messages: 332
Offline


I didn't read the tutorial thoroughly, but at a first read, it's a little bit messy.
To make it short, you can develop JSF app using JSP or Facelets as a page description technology.

By default, JSF expects JSP (it's not recommended nowadays, and JSF2 even eliminated it), but then, the files should have a jsp extension.

If you use facelets, then you can write xhtml files (best in my opinion) or jspx files (sort of jsps with xml-correct syntax), and in these cases you need:
1. a definition like this in your web.xml
Code:
 	<context-param>
 		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
 		<param-value>.xhtml</param-value>
 	</context-param>
 

or .jspx in your case
2. a definition like this in you faces-config.xml
Code:
	<application>
 		<view-handler>com.icesoft.faces.facelets.D2DFaceletViewHandler</view-handler>
 	</application>
 


I don't know why the write of that tutorial chose to remove these.
Give it a try and see what you get.
And even better, read the icefaces tutorials (http://www.icefaces.org/main/resources/tutorials.iface). They are better written ;)

Cheers,
Eduard

PS. If you're deploying to JBoss, don't forget to remove the jsf-api and jsf-impl from you libs, as they might conflict with the ones provided by the big boss.
hockey9876

Joined: 25/Sep/2009 00:00:00
Messages: 24
Offline


Eduard,

Yes, adding the default suffix value did the trick!

Thanks!

John

Thanks,

John
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team