• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Alan Blass
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anybody?
 
Alan Blass
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anybody with the same problem?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic