aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 118
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: 118
Anybody?
Alan Blass
Ranch Hand

Joined: Mar 21, 2010
Posts: 118
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
Setting Up Ant/Tomcat Development Enivornment
Cannot get Ch3 Example of Head First Servlets to Work
How to give a path name in web.xml
Setting Up Development Environment Using Ant
404 Not Found - Servlet runs locally (GlassFish), but Not Found on web site