Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » Unknown Tag
Unknown Tag [message #475190] Fri, 16 November 2007 14:44 Go to next message
Eclipse User
Originally posted by: jack.foster11.gmail.com

Hi gang,

I followed the tutorial here:
http://www.eclipse.org/webtools/jsf/docs/tutorial/JSFTools_1 _0_tutorial.html
best I could.

However, when I have a simple JSP page, I get two types of errors:
For the taglibs:
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
It says "Cannot find the tag library descriptor for
http://java.sun.com/jsf/core (or html).

For the rest of the JSF tags, all the tags come us as warnings with:
Unknown tag (f:view) for example.

I have downloaded an extracted the tomcat 6.0 runtime and added it to
this project. Could it be a library issue? Any ideas?

Any help greatly appreciated. Thanks!
Jack

Jevin
Re: Unknown Tag [message #475193 is a reply to message #475190] Fri, 16 November 2007 16:58 Go to previous messageGo to next message
Gerry Kessler is currently offline Gerry Kessler
Messages: 125
Registered: July 2009
Senior Member
Hi Jack,

The most likely scenario is that the JSF tag libraries are not on the
classpath. This can be confirmed if you do not see JSF Core and JSF HTML
categories in the Web Page Editor palette. The palette will display a
category for each tag library located on the project classpath.

Chances are you need to revisit the step of creating a JSF Library and
adding it as a reference to the web project. These steps can be done by
visiting the Java Build Path property page for the project and defining
and adding the JSF library with the necessary sets of jars. You may also
need to visit the J2EE Module Dependencies property page to set the
library/libraries to for deployment if these sets of jars are not
available on the server shared classpath.

I hope that this helps.

Regards,
Gerry Kessler
WTP JSF Tools Team
Re: Unknown Tag [message #475329 is a reply to message #475193] Mon, 19 November 2007 14:37 Go to previous messageGo to next message
Eclipse User
Originally posted by: jack.foster11.gmail.com

Thanks for your reply Gerry.

Gerry Kessler wrote:
> The most likely scenario is that the JSF tag libraries are not on the
> classpath. This can be confirmed if you do not see JSF Core and JSF
> HTML categories in the Web Page Editor palette. The palette will
> display a category for each tag library located on the project classpath.

Turns out that I do see both JSF Core and JSF HTML categories in the WPE.

> Chances are you need to revisit the step of creating a JSF Library and
> adding it as a reference to the web project. These steps can be done
> by visiting the Java Build Path property page for the project and
> defining and adding the JSF library with the necessary sets of jars.
> You may also need to visit the J2EE Module Dependencies property page to
> set the library/libraries to for deployment if these sets of jars are
> not available on the server shared classpath.

In looking at both of these properties, JSF libraries exist in both.

Any more ideas?

Jack
Re: Unknown Tag [message #475331 is a reply to message #475329] Mon, 19 November 2007 17:22 Go to previous messageGo to next message
Gerry Kessler is currently offline Gerry Kessler
Messages: 125
Registered: July 2009
Senior Member
Hi Jack,

If you are seeing the JSF palette categories, then it appears that your
project classpath is set up correctly. Although I am pretty confident
that you will see them, can you verify that the JSF libaries are appearing
in the project navigator?

The JSP page tag library validation and the tag content assist is provided
by the SSE editor team. Unfortunately I am going to need to ask you to
post your problem on eclipse.webtools newsgroup unless someone from the
SSE team is monitoring this thread.

Regards,
Gerry Kessler
WTP JSF Tools Team
Re: Unknown Tag [message #475334 is a reply to message #475331] Mon, 19 November 2007 19:35 Go to previous messageGo to next message
Eclipse User
Originally posted by: jack.foster11.gmail.com

Hi again,

Gerry Kessler wrote:
> If you are seeing the JSF palette categories, then it appears that your
> project classpath is set up correctly. Although I am pretty confident
> that you will see them, can you verify that the JSF libaries are
> appearing in the project navigator?
> The JSP page tag library validation and the tag content assist is
> provided by the SSE editor team. Unfortunately I am going to need to
> ask you to post your problem on eclipse.webtools newsgroup unless
> someone from the SSE team is monitoring this thread.

After playing around with the libraries, doing a clean build it seems to
work fine now! I am very happy. Thanks for you help Gerry! I look
forward to playing with this.

Jack
Re: Unknown Tag [message #475341 is a reply to message #475334] Thu, 29 November 2007 06:24 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2267
Registered: July 2009
Senior Member
Jack Foster wrote:
> Gerry Kessler wrote:
>> If you are seeing the JSF palette categories, then it appears that
>> your project classpath is set up correctly. Although I am pretty
>> confident that you will see them, can you verify that the JSF libaries
>> are appearing in the project navigator? The JSP page tag library
>> validation and the tag content assist is provided by the SSE editor
>> team. Unfortunately I am going to need to ask you to post your
>> problem on eclipse.webtools newsgroup unless someone from the SSE team
>> is monitoring this thread.
>
> After playing around with the libraries, doing a clean build it seems to
> work fine now! I am very happy. Thanks for you help Gerry! I look
> forward to playing with this.

I suspect you ran afoul of bug 174513 and that the Error messages
were from the JSP validator at a time when the JSF libraries were
not yet on the build path. Although the JSP editor (and possibly
the Web Page Editor) would notice their addition almost immediately,
re-validation of your existing JSPs doesn't get triggered automatically.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=174513

Good to hear you're past it, though.

--
Nitin Dahyabhai
WTP Source Editing


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: Unknown Tag [message #614480 is a reply to message #475190] Fri, 16 November 2007 16:58 Go to previous message
Gerry Kessler is currently offline Gerry Kessler
Messages: 125
Registered: July 2009
Senior Member
Hi Jack,

The most likely scenario is that the JSF tag libraries are not on the
classpath. This can be confirmed if you do not see JSF Core and JSF HTML
categories in the Web Page Editor palette. The palette will display a
category for each tag library located on the project classpath.

Chances are you need to revisit the step of creating a JSF Library and
adding it as a reference to the web project. These steps can be done by
visiting the Java Build Path property page for the project and defining
and adding the JSF library with the necessary sets of jars. You may also
need to visit the J2EE Module Dependencies property page to set the
library/libraries to for deployment if these sets of jars are not
available on the server shared classpath.

I hope that this helps.

Regards,
Gerry Kessler
WTP JSF Tools Team
Re: Unknown Tag [message #615711 is a reply to message #475193] Mon, 19 November 2007 14:37 Go to previous message
Eclipse User
Originally posted by: jack.foster11.gmail.com

Thanks for your reply Gerry.

Gerry Kessler wrote:
> The most likely scenario is that the JSF tag libraries are not on the
> classpath. This can be confirmed if you do not see JSF Core and JSF
> HTML categories in the Web Page Editor palette. The palette will
> display a category for each tag library located on the project classpath.

Turns out that I do see both JSF Core and JSF HTML categories in the WPE.

> Chances are you need to revisit the step of creating a JSF Library and
> adding it as a reference to the web project. These steps can be done
> by visiting the Java Build Path property page for the project and
> defining and adding the JSF library with the necessary sets of jars.
> You may also need to visit the J2EE Module Dependencies property page to
> set the library/libraries to for deployment if these sets of jars are
> not available on the server shared classpath.

In looking at both of these properties, JSF libraries exist in both.

Any more ideas?

Jack
Re: Unknown Tag [message #615716 is a reply to message #475329] Mon, 19 November 2007 17:22 Go to previous message
Gerry Kessler is currently offline Gerry Kessler
Messages: 125
Registered: July 2009
Senior Member
Hi Jack,

If you are seeing the JSF palette categories, then it appears that your
project classpath is set up correctly. Although I am pretty confident
that you will see them, can you verify that the JSF libaries are appearing
in the project navigator?

The JSP page tag library validation and the tag content assist is provided
by the SSE editor team. Unfortunately I am going to need to ask you to
post your problem on eclipse.webtools newsgroup unless someone from the
SSE team is monitoring this thread.

Regards,
Gerry Kessler
WTP JSF Tools Team
Re: Unknown Tag [message #615721 is a reply to message #475331] Mon, 19 November 2007 19:35 Go to previous message
Eclipse User
Originally posted by: jack.foster11.gmail.com

Hi again,

Gerry Kessler wrote:
> If you are seeing the JSF palette categories, then it appears that your
> project classpath is set up correctly. Although I am pretty confident
> that you will see them, can you verify that the JSF libaries are
> appearing in the project navigator?
> The JSP page tag library validation and the tag content assist is
> provided by the SSE editor team. Unfortunately I am going to need to
> ask you to post your problem on eclipse.webtools newsgroup unless
> someone from the SSE team is monitoring this thread.

After playing around with the libraries, doing a clean build it seems to
work fine now! I am very happy. Thanks for you help Gerry! I look
forward to playing with this.

Jack
Re: Unknown Tag [message #615734 is a reply to message #475334] Thu, 29 November 2007 06:24 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2267
Registered: July 2009
Senior Member
Jack Foster wrote:
> Gerry Kessler wrote:
>> If you are seeing the JSF palette categories, then it appears that
>> your project classpath is set up correctly. Although I am pretty
>> confident that you will see them, can you verify that the JSF libaries
>> are appearing in the project navigator? The JSP page tag library
>> validation and the tag content assist is provided by the SSE editor
>> team. Unfortunately I am going to need to ask you to post your
>> problem on eclipse.webtools newsgroup unless someone from the SSE team
>> is monitoring this thread.
>
> After playing around with the libraries, doing a clean build it seems to
> work fine now! I am very happy. Thanks for you help Gerry! I look
> forward to playing with this.

I suspect you ran afoul of bug 174513 and that the Error messages
were from the JSP validator at a time when the JSF libraries were
not yet on the build path. Although the JSP editor (and possibly
the Web Page Editor) would notice their addition almost immediately,
re-validation of your existing JSPs doesn't get triggered automatically.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=174513

Good to hear you're past it, though.

--
Nitin Dahyabhai
WTP Source Editing


---
Nitin Dahyabhai
Eclipse WTP, IBM
Previous Topic:SelectOneRadioButton problem
Next Topic:Taglibs not getting bound / executed properly - PLEASE HELP
Goto Forum:
  


Current Time: Thu Sep 18 01:41:06 GMT 2014

Powered by FUDForum. Page generated in 0.04037 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software