First Web App With Tomcat 9.0.16 and JSF 2.2.8 Cannot Open index.xhtml

Answered

Hi,

On my first Hello Word when I start the application the server is running there is no problem seen on Server window but I get this window on my browser

"The origin server did not find a current representation for the target resource or is not willing to disclose that one exists."

Almost all the instructions are made for either Eclipse or NetBeans but I like use IntelliJ. I believe I miss a configuration on the setup.

I hope someone would help me.

My project is uploaded JSF-Hello-World.zip

1
12 comments

You need to change the Application context to / here:

3

Thank you very much.

0

It worked at first, but now I still have the same error message 

Do you mind looking what I am doing wrong on the project.

I am spending hours but cannot find a solution, and this is not even the programming part.

 

 

0

It looks like the library is missing from the artifact and you need to include it:

See https://www.jetbrains.com/help/idea/artifacts.html .

It should look like this:

2

Thank you very Serge Baranov you are great.

0

Hi,

Every time I open a new project, even though I check like this:

I still need to Application context to / and on Project Structure>Artifacts click fix button on the footer. I am sure I doing something wrong, Intellij should prepare everything for me.

Can you point what I need to do not to fix these errors every time I create a new project?

Thank you,

0

It's a known issue, please follow https://youtrack.jetbrains.com/issue/IDEA-205443 for updates. See https://intellij-support.jetbrains.com/hc/articles/207241135 if you are not familiar with YouTrack.

Missing libraries in the artifact is also a known issue: https://youtrack.jetbrains.com/issue/IDEA-178975.

0

Thank you Serge I thought Intellij is perfect but every good thing has its flaws.

0

I had to login to comment and  thank you for this.  It was exactly my problem and it wasn't super easy to determine this was the cause.  Thanks again!

0

I can deploy TomCat and run but i cant access any servlets. I tried accessing servlets in 2 different ways none of them worked.I tried almost all possible ways but could not get solution.

      This is the code of project

Some one help please

 

 

0

Thank you.I uninstalled tomcat 10 and installed tomcat 8.5.69 ,it works absolutely fine .I should have posted this before 10hrs :(

0

Please sign in to leave a comment.