rfoletta opened a new issue, #8454:
URL: https://github.com/apache/netbeans/issues/8454
### Apache NetBeans version
Apache NetBeans 25
### What happened
We have an existing web application that was compiled with Netbeans 8.2
under Java 8.
We have ported it to Java 11 using Netbeans 21 and got it working but have
an issue with the build process.
I have reproduced the build error with a TestSeller11 project built with
Netbeans 25.
This TestSeller11 project will not run but it does build and demonstrates
how the build gets broken by
a clean and build.
Created a Java Web project.
File->New Project
Java with Ant
Java Web
Project Name: TestSeller11
Server: Apache Tomcat or TomEE (apache-tomcat-10.1.40)
Java EE Version: Jakarta EE 10 Web (jdk-17.0.15+6) 64bit
Project properties:
Sources: Source/Binary Format: JDK11
Libraries: add jaxws libraries found in lib-jaxws-4.0.0 directory
key files:
TestSeller11\src\conf\xml-resources\web-services\PartOrderMgr\wsdl\PartOrderMgr.wsdl
TestSeller11\src\java\com\example\PartOrderMgr.java
TestSeller11\catalog.xml
TestSeller11\web\META-INF\context.xml
TestSeller11\web\WEB-INF\sun-jaxws.xml
TestSeller11\web\WEB-INF\web.xml
TestSeller11\web\WEB-INF\wsdl\PartOrderMgr.wsdl
TestSeller11\nbproject\jax-ws.xml
TestSeller11\nbproject\jaxws-build.xml (built from jax-ws.xml by netbeans)
TestSeller11\lib-jaxws-4.0.0\jakarta.activation-api.jar
TestSeller11\lib-jaxws-4.0.0\jakarta.xml.bind-api.jar
TestSeller11\lib-jaxws-4.0.0\jakarta.xml.ws-api.jar
TestSeller11\lib-jaxws-4.0.0\jakarta.rt.jar
- Start with clean project.
- Start netbeans 25.
- build project
after build is done, sun-jaxws.xml and web.xml will get modified
(breaking the application).
- sun-jaxws.xml
<endpoint> for com.example.PartOrderMgr will get removed.
- web.xml
<listener> for WSServletContextListener will get removed.
<servlet> and <servlet-mapping> for PartOrderMgr will get removed.
- Restore sun-jaxws.xml and web.xml from the files in tmp directory.
- build project again and files do not get modified.
### Language / Project Type / NetBeans Component
Java Web application with Ant build
### How to reproduce
zip file included with TestSeller11 project.
- Start with clean project.
- Start netbeans 25.
- build project
after build is done, sun-jaxws.xml and web.xml will get modified
(breaking the application).
- sun-jaxws.xml
<endpoint> for com.example.PartOrderMgr will get removed.
- web.xml
<listener> for WSServletContextListener will get removed.
<servlet> and <servlet-mapping> for PartOrderMgr will get removed.
- Restore sun-jaxws.xml and web.xml from the files in tmp directory.
- build project again and files do not get modified.
### Did this work correctly in an earlier version?
Apache NetBeans 21 or earlier
### Operating System
Windows 11 64 bit
### JDK
jdk-17.0.15+6
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
My original project built fine under Netbeans 8.2.
ported project to Java 11 using Netbeans 21 but build has issues.
Build small TestSeller11 project using Netbeans 25 to reproduce build issue.
You can find my project in the attached TestSeller11.zip file.
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
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