java.lang.ClassNotFoundException: webcart.WebCartServlet
Philippe Ponceblanc wrote:in /src/webcart/WebCartServlet
Philippe Ponceblanc wrote:no, in the package webcart
Philippe Ponceblanc wrote:eclipse == /src/webcart/WebCartServlet.class
Dave Tolls wrote:
Philippe Ponceblanc wrote:eclipse == /src/webcart/WebCartServlet.class
That's not Tomcat.
That's your IDE.
How are you deploying your web application to Tomcat?
Also, what Tomcat is it? Is it embedded as part of Eclipse or standalone?
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
WEB-INF / classes / WebCart / WebCartServlet.java
Tim Moores wrote:A source file does no good in WEB-INF/classes - that's were the class file needs to be.
Tim Moores wrote:No editing - you compile the .java file which results in a .class file. The IDE does that for you, but it's possible it doesn't put the class files where they need to be. But after compilation they should be somewhere in the project folder, provided there were no errors.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.
Don't get me started about those stupid light bulbs. |