You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "CUCKSON, Nick, GBM" <Ni...@rbos.com> on 2006/04/04 14:13:51 UTC
jdk1.5, tomcat 5.5.9 and jsp compilation
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
***********************************************************************************
Re: jdk1.5, tomcat 5.5.9 and jsp compilation
Posted by Leon Rosenberg <ro...@googlemail.com>.
On 4/6/06, prophecy <tr...@gmail.com> wrote:
>
> I'm pretty sure you can't use 1.5 features in the jsp page itself because
> it's not using the javac compiler. You can use 1.5 features in your java
> class files though.
Why not?
Leon
>
> --
> View this message in context: http://www.nabble.com/jdk1.5%2C-tomcat-5.5.9-and-jsp-compilation-t1392691.html#a3779909
> Sent from the Tomcat - User forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: jdk1.5, tomcat 5.5.9 and jsp compilation
Posted by prophecy <tr...@gmail.com>.
I'm pretty sure you can't use 1.5 features in the jsp page itself because
it's not using the javac compiler. You can use 1.5 features in your java
class files though.
--
View this message in context: http://www.nabble.com/jdk1.5%2C-tomcat-5.5.9-and-jsp-compilation-t1392691.html#a3779909
Sent from the Tomcat - User forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: jdk1.5, tomcat 5.5.9 and jsp compilation
Posted by mylene <my...@gmail.com>.
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 - core tasks - javac)
Success,
Mylène
On 4/4/06, CUCKSON, Nick, GBM <Ni...@rbos.com> 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
> ***********************************************************************************
>
>
--
Mylene
Books just wanna be FREE! See what I mean at:
http://bookcrossing.com/friend/mylene
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: jdk1.5, tomcat 5.5.9 and jsp compilation
Posted by Leon Rosenberg <ro...@googlemail.com>.
I can vague remember issues about tomcat 5.5.x which came out with the
jdt from eclipse which had no support for 1.5. I maybe also be
completely wrong here.
Are you talking about precompiling jsps before deployment, or
production-compile during runtime?
Have you tried the 5.5.16?
regards
Leon
On 4/4/06, CUCKSON, Nick, GBM <Ni...@rbos.com> 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
> ***********************************************************************************
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org