This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Netbeans deletes class files on RUN but not on Clean And Build Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Netbeans deletes class files on RUN but not on Clean And Build" Watch "Netbeans deletes class files on RUN but not on Clean And Build" New topic
Author

Netbeans deletes class files on RUN but not on Clean And Build

Alan Blass
Ranch Hand

Joined: Mar 21, 2010
Posts: 119
Hi!

I have a servlet file called GetArea.java in /Source Packages/com/companyname/template/ and when I do a Clean and Build in Netbeans, this file is compiled into .class file in the \build\web\WEB-INF\classes\com\companyname\template directory. I have checked it and it is in the directory and the capitalization is correct.

But when I do a RUN, SHIFT-F6, this file gets deleted by Netbeans and it is no longer in the directory. I get an exception: javax.servlet.ServletException: Wrapper cannot find servlet class com.companyname.template.GetArea or a class it depends on.

root cause: java.lang.ClassNotFoundException: com.companyname.template.GetArea.

My web.xml file is:



Can anyone help? Thanks.
Alan Blass
Ranch Hand

Joined: Mar 21, 2010
Posts: 119
Anybody?
Alan Blass
Ranch Hand

Joined: Mar 21, 2010
Posts: 119
Anybody with the same problem?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Netbeans deletes class files on RUN but not on Clean And Build
 
Similar Threads
How to give a path name in web.xml
Cannot get Ch3 Example of Head First Servlets to Work
404 Not Found - Servlet runs locally (GlassFish), but Not Found on web site
Setting Up Ant/Tomcat Development Enivornment
Setting Up Development Environment Using Ant