Roy Damman created NETBEANS-4988:
------------------------------------
Summary: Ant java webapplication in Netbeans 10 and later won't
debug
Key: NETBEANS-4988
URL: https://issues.apache.org/jira/browse/NETBEANS-4988
Project: NetBeans
Issue Type: Bug
Components: debugger - Ant, serverplugins - Tomcat
Affects Versions: 11.3, 10.0
Environment: Windows 10 pro, OpenJDK11, Tomcat 9
Reporter: Roy Damman
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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists