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.

Bug 61024 - Document usage of 1.5 features in JSPs on Bundled Tomcat
Summary: Document usage of 1.5 features in JSPs on Bundled Tomcat
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Geertjan Wielenga
URL: http://www.netbeans.org/servlets/Read...
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-15 11:43 UTC by zikmund
Modified: 2005-12-08 13:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zikmund 2005-07-15 11:43:31 UTC
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
Comment 1 Geertjan Wielenga 2005-10-19 09:43:58 UTC
New topic added: "Enabling JDK 1.5 Compilation Support for Tomcat".

Please verify it.
Comment 2 Sherold Dev 2005-10-21 10:09:44 UTC
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.
Comment 3 Geertjan Wielenga 2005-11-02 08:54:07 UTC
Fixed in trunk.

Please verify.
Comment 4 Jaroslav Pospisil 2005-12-08 13:38:23 UTC
VERIFIED