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 72525 - Tomcat Int. web.xml file needs manually edited to add Java 1.5 vm support for generics etc. to work
Summary: Tomcat Int. web.xml file needs manually edited to add Java 1.5 vm support for...
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-10 14:37 UTC by richardbremner
Modified: 2006-07-28 11:04 UTC (History)
1 user (show)

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 richardbremner 2006-02-10 14:37:51 UTC
With an out of the box installation, in a new or existing webapp, it is
neccessary to edit the web.xml file (found in tomcat's conf directory) to add
the following settings.

    <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>

This should happen automatically when the project's target platform is set to 1.5.
Comment 1 Sherold Dev 2006-02-13 08:10:15 UTC
-> enhancement
Comment 2 Petr Pisl 2006-07-27 19:41:36 UTC
Stepan, this can be implemented very easily in the new web project wizard. Could
you do it into NetBeans 5.5? 

IMHO I think that this is realy a bug, because a wizard generate code that
doesn't work. 
Comment 3 Petr Pisl 2006-07-27 19:53:27 UTC
I try it and it seams that Tomcat 5.5.17 doesn't need this change for running
jsp pages with generics. Could you confirm this? If yes we can close this. 
Comment 4 Sherold Dev 2006-07-28 11:04:46 UTC
Yes, the version of Tomcat NB is bundled with now, does not need this change
anymore -> closing as FIXED

compilerTargetVM    Compiler target VM default is System.properties            
      
                    java.specification.version > 1.4 [1.5] else [1.4]

compilerSourceVM    Compiler source VM default is System.properties            
      
                    java.specification.version > 1.4 [1.5] else [1.4]