Juha-
Thanks for pointing me in the right direction.
Eventually I got it going by downloading current copies of:
- jasper-compiler-jdt.jar
- jasper-compiler.jar
- jasper-runtime.jar
This solves the problem, with no config required.
But before, that I found another solution:
1. Adding the following lines to conf/web.xml
<servlet>
<servlet-name>jsp</servlet-name>
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
<init-param>
<param-name>xpoweredBy</param-name>
<param-value>false</param-value>
</init-param>
<!-- added these lines...
<init-param>
<param-name>compilerTargetVM</param-name>
<param-value>1.5</param-value>
</init-param>
<init-param>
<param-name>compilerSourceVM</param-name>
<param-value>1.5</param-value>
</init-param>
....
This by itself does not solve the problem.
2. remove common/lib/jasper-compiler-jdt.jar
3. Download the current ant release from
http://ant.apache.org/bindownload.cgi and copy ant.jar to
common/lib/ant.jar
4. Copy tools.jar from $JAVA_HOME/lib to common/lib
Juha Laiho wrote:
> said:
> >I have a method that takes a variable length arg list:
> >"testmethod(int...in)".
>
> Weren't vararg methods implemented in Java 1.5? If so, there is your
> problem. By default the JSP compiler still in Tomcat 5.5 handles
> Java 1.4.
>
> This can be changed with Tomcat configuration for the Jasper servlet; see:
> http://tomcat.apache.org/tomcat-5.5-...#Configuration
> --
> Wolf a.k.a. Juha Laiho Espoo, Finland
> (GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
> PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
> "...cancel my subscription to the resurrection!" (Jim Morrison)