aspose file tools*
The moose likes JSF and the fly likes Beginners Querylogue! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Beginners Querylogue!" Watch "Beginners Querylogue!" New topic
Author

Beginners Querylogue!

samarthya saurabh
Greenhorn

Joined: May 03, 2010
Posts: 17
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


Samarthya
Ilari Moilanen
Ranch Hand

Joined: Apr 15, 2008
Posts: 198
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

Joined: May 03, 2010
Posts: 17
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

Joined: Apr 15, 2008
Posts: 198
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

Joined: May 03, 2010
Posts: 17
Thanks! I would try and abstain from using the "ItDoesNotWorks".
- Samarthya
 
 
subject: Beginners Querylogue!