Eclipse: Can not find the tag library descriptor for “http://java.sun.com/jsf/core” using JBoss

前端 未结 2 1951
陌清茗
陌清茗 2020-12-20 16:50

I know this question was asked a lot of times, since I searched for hours for a solution, but it was never answered (or at least not for my situation).

I am using Wi

2条回答
  •  一整个雨季
    2020-12-20 17:36

    I'm truly disappointed JSF support in eclipse. I'm encountering such caveats all the time.

    I'm using JBoss 7.1.1 and even adding JBoss as the Target Runtime of the project didn't help.
    The only solution that worked for me, was to define new JSF library inside Eclipse: Window Preferences -> Java -> Build Path -> User Libraries -> click New (pointing to the jsf-impl.jar and jsf-api.jar). And then adding such library to the build path of the project.

    It solved all annoying eclipse errors can not find tag library. So it is pretty similar to the @Riccatti first solution.

    Btw: answer which I found on the eclipse forum says that this error is usually caused by not existing JSF tag libraries (that are present in jsf-impl.jar) on the classpath.

提交回复
热议问题