When downloading Mojarra libraries for JSF it is showing error “zip file is empty” in Eclipse

十年热恋 提交于 2019-12-17 19:23:41

问题


I'm working on JSF project, I'm trying to set up project facets in Eclipse, When I'm downloading Mojarra libraries for JSF2.2 it is giving error message. I'm using Eclipse Neon 2.

See the below image for more information.


回答1:


Adding Mojarra Manually When Eclipse Luna/NEON/Oxygen JSF Download Library Is Empty...

When I was setting up a fresh install of JavaEE on my laptop today, the JSF Download Library would not return any results to download. Some searching suggested that I had to change my proxy settings but since I was not behind a proxy,

Actually some sorts are saying temporarily / Website is offline that's why its not downloadable ...

it would not help me. Lucky enough, JSF are just another bunch of jars that can be added to a user library.

You can download the JSF Scroll down here for newest versions of JSF jars...

Download JSF API JAR JSF API jar file

Download JSF IMPL JAR JSF IMPl jar file

Then simply; click the “Manage Libraries” icon on the JSF capabilities page click “New” and name your library

click “Add external jars” and browse to the jars you downloaded

Finally you are fully featured to the JSF Mojjara Library

Thanks...




回答2:


I have downloaded javax.faces.jar file from maven repository. Added that jar file to classpath, now it is working fine.

javax.faces.jar




回答3:


I found other sotution, when you start a new dynamic Web proyect pick "New runtime", then Oracle>Glassfish, install it and restart eclipse, JSF library is probided by Glassfish so in JSF Capabilities panel (when the new proyect is created) , glassfish is assigned by default (the System library). it works for me :)



来源:https://stackoverflow.com/questions/44858251/when-downloading-mojarra-libraries-for-jsf-it-is-showing-error-zip-file-is-empt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!