Loading Mojarra Libraries for JSF shows error "zip file is empty" in Eclipse

I am working on a JSF project, I am trying to set up a project face in Eclipse. When I download Mojarra Libraries for JSF2.2 it gives an error. I am using Eclipse Neon 2.

See the image below for more information.

Mojarra Libraries

Error message

+3


source to share


3 answers


Adding Mojarra manually when Eclipse Luna / NEON / Oxygen Loads the JSF load library ...

When I was setting up a new version of JavaEE on my laptop today, the JSF load library will not return any load results. Some searches suggested changing the proxy settings, but since I was not behind a proxy,

In fact, some species say temporarily / The website is down, so it cannot be downloaded ...

If this problem happens try this

it wouldn't help me. Luckily, JSF is just another bunch of jars to add to your user library.

You can download the JSF scrolling here for the newest JSF jars ...

Download JSF API JAR JAF API jar file



Download JSF IMPL JAR JSF IMPl jar file

Then it's simple; click the Manage Libraries icon on the JSF features page click New and name your library

click "Add external banks" and go to the loaded banks

Name your libraries to which you can revert your jars files

When jars are added, use your jsf as it is ...

Finally, you are completely familiar with the JSF Mojjara library

Thank...

+11


source


I downloaded the javax.faces.jar file from the maven repository. Added this jar file to the classpath, now it works fine.



javax.faces.jar

0


source


I found another solution, when you start a new dynamic web project, select New Runtime, then Oracle> Glassfish, install it and restart eclipse, the JSF library is dictated by Glassfish, so in the JSF capability bar (when new proyect), by glassfish (system library) is used by default. it works for me :)

-3


source







All Articles