HTTP Status 500 - java.lang.ClassNotFoundException: org.apache.jsp.index_jsp

前端 未结 3 1576
死守一世寂寞
死守一世寂寞 2021-01-06 00:28

I made a JSP-Project in Eclipse (with Tomcat 7) but when I run the page, i get an ClassnotFoundExcption.

in my Project i work with Controllers to bind Data to the JS

相关标签:
3条回答
  • 2021-01-06 01:11

    For Java-EE projects converted to Maven project with jstl dependency in pom.xml: In my case, I needed to add Maven dependencies to the build path

    Walkthrough:

    • right click the project in question
    • open Properties
    • click on Deployment Assembly
    • click Add
    • select Java Build Path Entries
    • select Maven dependencies

    Update: also check your Execution enviroment && Workspace JRE are correctly setup.

    0 讨论(0)
  • 2021-01-06 01:24

    I had this problem because in the eclipse configuration I had the JDK folder (jdk1.6.0_45) set as the JRE location. Instead it should have been set to jre6 in my "Installed JREs" preferences.

    0 讨论(0)
  • 2021-01-06 01:26

    1.Open command prompt using "Run as administrator" or using sudo in Linux

    1. Go to the "bin" directory of Tomcat folder. for example: cd C:\Program Files\Apache Software Foundation\Apache Tomcat 8.0.15\bin

    Note the version number and the accurate Location.

    1. Run 'startup.bat' and the Server should start

    2. Open a web browser entered http://localhost:8080/

    3. If the server runns without exceptions, this means that you must give eclipse administrative privileges.

    to do that you can visit: Windows 7 - Eclipse now needs me to run as administrator or https://askubuntu.com/questions/249098/how-do-i-run-eclipse-as-sudo

    0 讨论(0)
提交回复
热议问题