wood burning stoves 2.0*
The moose likes JSF and the fly likes JSF Example Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF Example Error" Watch "JSF Example Error" New topic
Author

JSF Example Error

Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238

Hi,

I am trying to run following JSF hello world simple example. I am getting following error when i run the application on server at index page as following



my index.jsp code is





HelloWorld.jsf code looks like



HelloWorldBean code looks like




Web.xml looks like


How can I resolve above error. Any ideas, suggestions, sample code, resources highly appreciated. Thanks in advance
Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238
Hi,

After setting proper jars in place web.xml warning message relating to listener was gone. when i run the application the index page is executed which is redirecting to hellpworld.jsf ( i confuse here whether it is supposed to be helloworld.jsp instead???) as expected. Any way afterward it is throwing blank page and i do not see any console message(as in attachment jsf2) also this time. Other time when i tried as in the screenshot(jsf3) it said helloworld.jsp was initialized. Please advise how can i resolve this error.



[Thumbnail for jsf3.JPG]

Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238
Hi,

Application is successfully going to index.jsp then redirected to the helloworld.jsp based on *.jsf mapping. In helloworld,jsp it is showing blank after it is getting initialized successfully. I suspect on





Not really sure why it does not print hello from bean instead of blank page. Please advise
Abhijeet Dalal
Greenhorn

Joined: Dec 24, 2009
Posts: 6

Hello gudim,

Your code seems right. Could you just do following in index.jsp (if your jsp file is HelloWorld.jsp and not helloworld.jsp)

Replace:




With:



Thanks,
Abhijeet.
Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238
Hi,

My jsp page is your jsp file is 'helloworld.jsp' only. I replaced all the content of helloworld.jsp from complex code like



to some simple static text like

'hi from jsp page'

still when i start application it is showing blank page instead of showing
'hi from jsp page' after getting redirected from index.jsp to this updated helloworld.jsp. Please advise
Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238
Hi,

Actually when restart RAD and laptop i see


simple static text like

'hi from jsp page' is showing up successfully through updated helloworld.jsp when i run the application on server.
If i keep helloworld.jsp original content as




and when i start application still it is showing blank page. Please advise
Abhijeet Dalal
Greenhorn

Joined: Dec 24, 2009
Posts: 6

Hello gudim,
I need to see you console in following 2 cases, please do provide me the entire console:
1. Add your project in the server and clear the console. Now restart your server. Once the server is restarted go to console and copy all the stuff.
2. Now clear the console and run your app, once you get the blank page send me the console output.
 
 
subject: JSF Example Error
 
Similar Threads
Portal Server v6.0 Initialization Problem
Caused by: FATAL ERROR: class com.capitalstream.common.ConfigurationError: Failed to Register a conf
struts2.0 example console message
struts2.0 application issues
RAD Workspace and Java Classpath and Server Profiles