This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Bundled Tomcat uses Jasper which has specific setting for using 1.5 features (like generics) in JSPs. You have to edit NB_USERDIR/jakarta-tomcat-5.5.7base/conf/web.xml like this: <servlet> <servlet-name>jsp</servlet-name> <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> <init-param> <param-name>fork</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>xpoweredBy</param-name> <param-value>false</param-value> </init-param> + <init-param> + <param-name>compilerSourceVM</param-name> + <param-value>1.5</param-value> + </init-param> + <init-param> + <param-name>compilerTargetVM</param-name> + <param-value>1.5</param-value> + </init-param> <init-param> <param-name>mappedfile</param-name> <param-value>true</param-value> </init-param> <load-on-startup>3</load-on-startup> </servlet> Based on multiple nbusers questions - see e.g. http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgId=1013715
New topic added: "Enabling JDK 1.5 Compilation Support for Tomcat". Please verify it.
We should probably make clear that this jdk 1.5 support will work only with the bundled Tomcat, since it is configured to use javac instead of the default jdt compiler, which AFAIK supports only jdk 1.4. For more info see http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html Of course, even the standard Tomcat can be configured to use javac and then this help topic will apply to it as well.
Fixed in trunk. Please verify.
VERIFIED