PCore-D opened a new issue, #7934:
URL: https://github.com/apache/netbeans/issues/7934

   ### Apache NetBeans version
   
   Apache NetBeans 23
   
   ### What happened
   
   If you try to build a new web app project with ant and Jakarta EE 10, 
because ant try to compile with old javax.
   Ant use specific javax library instead of jakarta and default tomcat 10.x 
library to compile classes and jsp
   
   ### Language / Project Type / NetBeans Component
   
   Java web application with Ant
   
   ### How to reproduce
   
   Create a new basic Java web application project with Ant and jakarta ee 10 
with some classes and try to build
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   debian
   
   ### JDK
   
   17
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   you can get around the problem by adding this in build.xml
   
   `<property name="tomcat.lib" value="/opt/apache-tomcat-10.1.24/lib/"/>`
   `<property name="jakarta.help.lib" value="/path/to/useful/java/Lib/"/>`
   `<target depends="compile" description="Test compile JSP pages to expose 
compilation errors." if="do.compile.jsps" name="compile-jsps">`
   &nbsp;`<mkdir dir="${build.generated.dir}/src"/>`
   &nbsp;&nbsp; `<java classname="org.apache.jasper.JspC" failonerror="true" 
fork="true">`
   &nbsp;&nbsp;&nbsp;                   `<arg value="-uriroot"/>`
   &nbsp;&nbsp;&nbsp;                   `<arg 
file="${basedir}/${build.web.dir}"/>`
   &nbsp;&nbsp;&nbsp;                   `<arg value="-d"/>`
   &nbsp;&nbsp;&nbsp;                   `<arg 
file="${basedir}/${build.generated.dir}/src"/>`
   &nbsp;&nbsp;&nbsp;                   `<arg value="-die1"/>`
   &nbsp;&nbsp;&nbsp;                   `<classpath 
path="${jakarta.help.lib}ant-1.10.14.jar:${jakarta.help.lib}ant-launcher-1.10.14.jar:${jakarta.help.lib}jakarta.servlet-api-6.0.0.jar:${jakarta.help.lib}jakarta.servlet.jsp-api-3.1.1.jar:${jakarta.help.lib}jakarta.servlet.jsp.jstl-api-3.0.0.jar:${jakarta.help.lib}tomcat-juli-10.1.24.jar:${tomcat.lib}jasper-el.jar:${tomcat.lib}jasper.jar:${tomcat.lib}el-api.jar:${tomcat.lib}tomcat-util.jar:${tomcat.lib}tomcat-api.jar:${tomcat.lib}jasper.jar:${tomcat.lib}tomcat-util-scan.jar"/>`
   &nbsp;&nbsp; `</java>`
   &nbsp;               `<mkdir dir="${build.generated.dir}/classes"/>`
        `</target>`
        `<target depends="compile" if="jsp.includes" 
name="-do-compile-single-jsp">`
   &nbsp;               `<mkdir dir="${build.generated.dir}/src"/>`
   &nbsp;&nbsp;         `<java classname="org.apache.jasper.JspC" 
failonerror="true" fork="true">`
   &nbsp;&nbsp;&nbsp;           `<arg value="-uriroot"/>`
   &nbsp;&nbsp;&nbsp;                   `<arg 
file="${basedir}/${build.web.dir}"/>`
   &nbsp;&nbsp;&nbsp;                   `<arg value="-d"/>`
   &nbsp;&nbsp;&nbsp;                   `<arg 
file="${basedir}/${build.generated.dir}/src"/>`
   &nbsp;&nbsp;&nbsp;                   `<arg value="-die1"/>`
   &nbsp;&nbsp;&nbsp;                   `<classpath 
path="${jakarta.help.lib}ant-1.10.14.jar:${jakarta.help.lib}ant-launcher-1.10.14.jar:${jakarta.help.lib}jakarta.servlet-api-6.0.0.jar:${jakarta.help.lib}jakarta.servlet.jsp-api-3.1.1.jar:${jakarta.help.lib}jakarta.servlet.jsp.jstl-api-3.0.0.jar:${jakarta.help.lib}tomcat-juli-10.1.24.jar:${tomcat.lib}jasper-el.jar:${tomcat.lib}jasper.jar:${tomcat.lib}el-api.jar:${tomcat.lib}tomcat-util.jar:${tomcat.lib}tomcat-api.jar:${tomcat.lib}jasper.jar:${tomcat.lib}tomcat-util-scan.jar"/>`
   &nbsp;&nbsp; `</java>`
   &nbsp;               `<mkdir dir="${build.generated.dir}/classes"/>`
        `</target>`
   
   ### 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

Reply via email to