 You try to add the library that contain the required class into the project’s classpath. It’s present but the error still persists. So what really gets wrong?I suggest you check the project properties dialog, and go to the Web Deployment Assembly configuration, as shown below:
You try to add the library that contain the required class into the project’s classpath. It’s present but the error still persists. So what really gets wrong?I suggest you check the project properties dialog, and go to the Web Deployment Assembly configuration, as shown below: Click Add button, then choose Java Build Path Entries:
Click Add button, then choose Java Build Path Entries:
 Click Finish, and you should see Maven Dependencies will be copied to the deploy path WEB-INF/lib, as shown below:
Click Finish, and you should see Maven Dependencies will be copied to the deploy path WEB-INF/lib, as shown below: Now click Apply and Close. Tomcat will be restarted and you can test your application again. The ClassNotFoundException error will be resolved.That means, somehow the Web Deployment Assembly configuration is flawed, causing dependencies not copied to WEB-INF/lib folder on Tomcat. That’s why you get ClassNotFoundException.
Now click Apply and Close. Tomcat will be restarted and you can test your application again. The ClassNotFoundException error will be resolved.That means, somehow the Web Deployment Assembly configuration is flawed, causing dependencies not copied to WEB-INF/lib folder on Tomcat. That’s why you get ClassNotFoundException. To fix this error, go to project’s properties dialog. Go to Web Deployment Assembly. Click Add and choose Folder:
To fix this error, go to project’s properties dialog. Go to Web Deployment Assembly. Click Add and choose Folder: Click Next, then choose WebContent or the directory contains web files, e.g. src/main/webapp:
Click Next, then choose WebContent or the directory contains web files, e.g. src/main/webapp: Then click Finish. You should see the /WebContent or /src/main/webapp entry is added to the deploy path / (context root) of the application, as shown below:
Then click Finish. You should see the /WebContent or /src/main/webapp entry is added to the deploy path / (context root) of the application, as shown below: Click Apply and Close. Tomcat will be restarted and you can test again. The HTTP status 400 Not Found error is resolved.That means somehow the Web Deployment Assembly configuration is flawed, causing web files (HTML, JS, CSS, images…) are not deployed - That’s why you got HTTP status 404 Not Found error.Watch the following video to see how I do the steps to solve HTTP status 404 Not Found error in action:
Click Apply and Close. Tomcat will be restarted and you can test again. The HTTP status 400 Not Found error is resolved.That means somehow the Web Deployment Assembly configuration is flawed, causing web files (HTML, JS, CSS, images…) are not deployed - That’s why you got HTTP status 404 Not Found error.Watch the following video to see how I do the steps to solve HTTP status 404 Not Found error in action: Other Eclipse Tutorials:
 Nam Ha Minh is certified Java programmer (SCJP and SCWCD). He began programming with Java back in the days of Java 1.4 and has been passionate about it ever since. You can connect with him on Facebook and watch his Java videos on YouTube.
Nam Ha Minh is certified Java programmer (SCJP and SCWCD). He began programming with Java back in the days of Java 1.4 and has been passionate about it ever since. You can connect with him on Facebook and watch his Java videos on YouTube.