Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4988

Ant java web application in Netbeans 10 and later won't debug

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Important

    Description

      I have a Wicket java webapplication Ant project created in Netbeans 7.x. In the past the project has moved to Netbeans 8.2 and 9.0. I use currently the OpenJDK11. I can still build, run and debug the project in Netbeans 9. But in Netbeans 10 and later (11.3), the project won't run in Tomcat 9. I have searched for the cause and found out that the class files are changed or deleted on the first attempt to run or debug after a clean and build. All the innerclasses and anonymous classes ($.class) files in the projects build directory are deleted. Also the normal other class files were shrunked in size. After a clean and build command there is also a war file created in the dist directory. When I restore the class files in the war file to the build directory suddenly the project will run. In Netbeans 9 everything works normally with the same project and Ant file. Also the Tomcat installation and JDK is the same. Later I found out that the problem depends on the project settings. When settings Project->Build->Compiling->Compile-on-Save and Project->Run->Deploy-on-Save are switched off, you can debug the project with Tomcat and the problem doesn't occur. But then you don't have that options. I haven't checked if this a sole Ant problem or that Maven projects also are affected.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            OokAanwezig Roy Damman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment