• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

JSF Example Error

 
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 238
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
jsf3.JPG
[Thumbnail for jsf3.JPG]
blank screen with jsp initialized console message
 
Mathew Lee
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 6
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:

 
Mathew Lee
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 238
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 6
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
I've been selected to go to the moon! All thanks to this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic