Simon
Simon

Reputation: 1045

Cant run simple JSF project in Intellij Idea

I cant run a simple JSF project in IDEA. Where am I wrong? At first I created project with maven and it didn't work. Next I tried to create a project via the standard menu:

enter image description here

And I got:

enter image description here

When I try to run it I get a HTTP 404 tomcat error, tomcat app context is /.

Why doesn't it work? I tried to accomplish the same goal in NetBeans, and it worked.

Upvotes: 0

Views: 1406

Answers (1)

Simon
Simon

Reputation: 1045

Idea was making project not properly. In my case IntelliJ Idea didn't include desired libraries. So i need to add it manually, like on the picture below

Or you can fix it by pressing button "Fix.." and chose "add Mojarra-2.2.1 to the artifact"

enter image description here

I hope it will help somebody!

Upvotes: 1

Related Questions