Mylene,

Yes I saw this as I mentioned in the final paragraph, however I put it into
the conf/jkcon.ant.xml and it hasn't made any difference. I'm not sure I'm
configuring the tag correctly or in the right config file. Any ideas? 

Leon, 

I'm compiling them at runtime and no I haven't tried 5.5.16. I was quite
happy with 5.5.9 until I tried using generics. This is now in production and
I don't want to have to upgrade the server continuously to dodge a bug.
However, if there is no solution I will either have to revert the code to
good old class casting (rather not) or upgrade tomcat to a version that
supports 1.5 fully. 

Nick

 
by mylene 2006-04-05 06:53 
 
It could be ant...
 
  <javac srcdir="${src}"
         destdir="${build}"
         fork="java$$javac.exe"
         source="1.5"                                             <-----
  />
 
(see the Ant manual at http://ant.apache.org/manual
<http://ant.apache.org/manual>  - core tasks - javac)
 
Success,
 
Mylène
 
On 4/4/06, CUCKSON, Nick, GBM <[EMAIL PROTECTED]> wrote:
> I've a problem compiling jsp's against jdk1.5. I've searched the archives,
> google, tomcat docs etc but found no help on my specific issue although I
> can see anumber of people have had problems with generics support.
>
> I've changed to the Ant compiler and copied the ant.jar to common/lib,
added
> the compiler parameters to conf/web.xml to enable 1.5 compilation.
>
> I still get a message saying that generics are not supported and I should
> change the -source 1.4 to -source 1.5.
>
> I've looked through the ant docs and this appears to be related to the
javac
> tag in build.xml, but I'm not sure where to put this tag in the context of
a
> tomcat installation. I've looked through the tomcat docs on jasper
(how-to)
> but I believe I've removed the dependency on japser so I dont think this
is
> relevant, although it does mention using the 'javac' argument with
> catalina.sh. I've tried this with no success, but it's quite possible I
> didn't configure this properly as I'm not sure where catalina.sh is called
> from. I've looked through the .sh files but it's not clear.
>
> To sum up, I would like to know how to configure '-source 1.4' to '-source
> 1.5' or am I barking up the wrong tree?
>
> thanks

***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered 
Office: 36 St Andrew Square, Edinburgh EH2 2YB. 
Authorized and regulated by the Financial Services Authority 
 
This e-mail message is confidential and for use by the 
addressee only. If the message is received by anyone other 
than the addressee, please return the message to the sender 
by replying to it and then delete the message from your 
computer. Internet e-mails are not necessarily secure. The 
Royal Bank of Scotland plc does not accept responsibility for 
changes made to this message after it was sent. 

Whilst all reasonable care has been taken to avoid the 
transmission of viruses, it is the responsibility of the recipient to 
ensure that the onward transmission, opening or use of this 
message and any attachments will not adversely affect its 
systems or data. No responsibility is accepted by The Royal 
Bank of Scotland plc in this regard and the recipient should carry 
out such virus and other checks as it considers appropriate. 
Visit our websites at: 
http://www.rbos.com
http://www.rbsmarkets.com 
***********************************************************************************

Reply via email to