Error while trying to create JavaServer Faces projecthttps://www.eclipse.org/forums/index.php/mv/msg/319218/832206/#msg_832206
I'm currently learning how to develop JavaServer Faces web applications, using Eclipse. To do so I'm following a tutorial (as I've posted less than 25 comments, I can't share the link to the tutorial in this thread).

However, Eclipse gives me an error when I try to create a JavaServer Faces project.
Any/all help in resolving this is greatly appreciated!

Looks like it is the problem of Eclipse SWT library, not JSF or WTP plugin. Looks like the libswt-mozilla-gtk files are missing. Try to update Eclipse.

Thanks for the tip, but I tried updating Eclipse and it didn't help.

I also installed all "libswt-*" packages through Synaptic Package Manager, but that didn't help either. It seems as though "libswt-mozilla-gtk" is no longer distributed.

Still looking for a solution...]]>Alex Averbuch2012-03-30T08:42:48-00:00Re: Error while trying to create JavaServer Faces projecthttps://www.eclipse.org/forums/index.php/mv/msg/319218/832538/#msg_832538
Is it possible to delete this thread somehow?]]>Alex Averbuch2012-03-30T08:54:57-00:00Re: Error while trying to create JavaServer Faces projecthttps://www.eclipse.org/forums/index.php/mv/msg/319218/832684/#msg_832684
> Hi,
> I'm currently learning how to develop JavaServer Faces web applications,
> using Eclipse. To do so I'm following a tutorial (as I've posted less
> than 25 comments, I can't share the link to the tutorial in this thread).
>
> However, Eclipse gives me an error when I try to create a JavaServer
> Faces project. Any/all help in resolving this is greatly appreciated!
>
> [snip]
>
> no swt-mozilla-gtk in java.library.path
> Can't load library: /tmp/swtlib-64/libswt-mozilla-gtk-3659.so
> Can't load library: /tmp/swtlib-64/libswt-mozilla-gtk.so
> )
>
>
> Any ideas?
>
> Regards,
> Alex

You might have SWT set up for another project, but understand that it's
not going to be helpful with JSF. I have some notes on JSF if you'd like
them. Ask me for them off-line, especially if you're pulling your hair
out over JAR nightmares. Also, I think http://www.vogella.de has got a
good JSF tutorial that may still work.]]>Russell Bateman2012-03-30T12:52:21-00:00Re: Error while trying to create JavaServer Faces projecthttps://www.eclipse.org/forums/index.php/mv/msg/319218/832699/#msg_832699
Quote:

You might have SWT set up for another project, but understand that it's
not going to be helpful with JSF. I have some notes on JSF if you'd like
them. Ask me for them off-line, especially if you're pulling your hair
out over JAR nightmares. Also, I think vogella has got a
good JSF tutorial that may still work.

Thanks Russel,
I'm actually working my way through the Vogella JSF tutorial right now.

I've solved this issue now. The solution is posted in the SWT forum, but in short I just had to install the necessary package in Ubuntu (xulrunner-1.9.2).

Another thing, I *am* having JAR nightmares right now and I've created a thread about it in another forum: "Eclipse Projects -> JavaServer Faces -> Maven + JSF = ClassNotFoundException - javax.servlet.jsp.jstl.core.Config"
(I can't link to it as forum members with fewer than 25 posts are not able to put links in posts).

If you think you could help, please visit that thread and let me know what you think.

Thanks again,
Alex]]>Alex Averbuch2012-03-30T13:27:33-00:00Re: Error while trying to create JavaServer Faces projecthttps://www.eclipse.org/forums/index.php/mv/msg/319218/832743/#msg_832743
> Quote:
>> You might have SWT set up for another project, but understand that
>> it's not going to be helpful with JSF. I have some notes on JSF if
>> you'd like them. Ask me for them off-line, especially if you're
>> pulling your hair out over JAR nightmares. Also, I think vogella has
>> got a good JSF tutorial that may still work.
>
> Thanks Russel,
> I'm actually working my way through the Vogella JSF tutorial right now.
>
> I've solved this issue now. The solution is posted in the SWT forum, but
> in short I just had to install the necessary package in Ubuntu
> (xulrunner-1.9.2).
>
> Another thing, I *am* having JAR nightmares right now and I've created a
> thread about it in another forum: "Eclipse Projects -> JavaServer Faces
> -> Maven + JSF = ClassNotFoundException -
> javax.servlet.jsp.jstl.core.Config"
> (I can't link to it as forum members with fewer than 25 posts are not
> able to put links in posts).
>
> If you think you could help, please visit that thread and let me know
> what you think.
>
> Thanks again,
> Alex

If you're using Maven, my work is of little help. I don't like any of
the existing archetypes and what it forces me to live with in terms of
project organization. (I prefer, for instance, the default layout of the
Eclipse Dynamic Web Project without all that extra subdirectory overhead
Maven archetypes insist on adding in imitation of old, traditional
Java.) I use Ivy + ant and am much happier with them.

Best of luck.]]>Russell Bateman2012-03-30T14:21:54-00:00Re: Error while trying to create JavaServer Faces projecthttps://www.eclipse.org/forums/index.php/mv/msg/319218/832751/#msg_832751
"How can I tell Eclipse to look for libraries in the Ivy/Ant/Maven libraries?"

The problem I have right now is that all of my dependencies are in fact in the Maven library, but my .jsp files can not see them for some reason. For example, in my .jsp file I get the error: "Unknown tag (f:view)."]]>Alex Averbuch2012-03-30T14:39:49-00:00Re: Error while trying to create JavaServer Faces projecthttps://www.eclipse.org/forums/index.php/mv/msg/319218/832763/#msg_832763
> My question is not really Maven specific, it is more:
> "How can I tell Eclipse to look for libraries in the Ivy/Ant/Maven
> libraries?"
>
> The problem I have right now is that all of my dependencies are in fact
> in the Maven library, but my .jsp files can not see them for some
> reason. For example, in my .jsp file I get the error: "Unknown tag
> (f:view)."

At the risk of wasting your time and/or boring you, go to http://www.javahotchocolate.com and quickly peruse the four articles on
RichFaces and faceletes under the heading "Other tutorials". It was when
I began to write these that I was in the throes of abandoning Maven for
good.]]>Russell Bateman2012-03-30T14:55:50-00:00Re: Error while trying to create JavaServer Faces projecthttps://www.eclipse.org/forums/index.php/mv/msg/319218/832785/#msg_832785
It's that I'm a complete noob with this stuff so I have no idea which dependencies/versions/etc I need to make the project happy.

Despite not being the biggest fan of Maven, do you know if these dependencies are all I need, in order to start a JavaServer Face v1.2 project=