• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Beginners Querylogue!

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have just tried to work out first JSF example the sample login to welcome navigation. But when I try to deploy it on glassfish v3 from my devlopment environment eclipse I get the error.




I have googled for some help but not much is available. I think I am missing out on some library or something?

The ones I have included are
jsf-impl.jar
jsf-api.jar

and these files were in glassfishv3 server I downloaded.

- Samarthya
 
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you say you have tried an example, what example are you referring to? Or is it your own? In any case it is very hard to help you when we have no knowledge whatsoever what you have done or are trying to do. You are not even telling if you use JSF 1 or JSF 2.

The error itself is telling that the it can not find myfaces class. I think the default implementation of JSF in GlassFish is Mojarra and not Apache MyFaces. So are you trying to use same specific MyFaces example with the Mojarra implementation of JSF?
 
samarthya saurabh
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry My apologies about not being clear about what I have been using.

I did figure out that there is some JAR that I am missing because it was throwing exception while deployment with the stated exception message.

1. I am using JSF 2.0.
2. Using MyFaces API.
3. Using GlassFishv3
4. Using eclipse.


Now the problem I face is the navigation is not working.

the config file I defined is as under.



The login.jsp looks like



Thanks,
Samarthya
 
Ilari Moilanen
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First of all, saying that something does not work does not help in finding what is wrong.
Please read this ItDoesntWorkIsUseless

You say that you are using JSF 2.0 and then in your web.xml you tell that you are using servlet specification 2.0. But JSF 2.0 needs servlet specification 2.5.

Additionally you use JSP altough the preferred way to code JSF 2.0 is Facelets and JSF 2.0 Facelets does not support JSP.

I do not know if this is the cause of your problem (it certainly is if you are using JSF 2.0 but I suspect that you are really using JSF 1 since your example looks like a JSF 1 example).
 
samarthya saurabh
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks! I would try and abstain from using the "ItDoesNotWorks".
- Samarthya
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic