OT: RE: Generic Types support in Tomcat?
Seak, Teng-Fong wrote: ... Well, after many many hours' search (seems like not a hot subject), I finally came to this mail archive. ... Well, my reply is a little off topic for this thread. But I followed through this thread of discussion, I just want to let you know that there is a now a better search tool for the technical discussions. Nabble has a large archive of many technical mailing lists, including for example, all Apache lists and Eclipse lists, check out All Apache: http://www.nabble.com/Apache-f90.html Tomcat: http://www.nabble.com/Tomcat-f303.html Eclipse: http://www.nabble.com/Eclipse-f2159.html Unlike a typical mailing list archive such as Gmane or mail-archive, where you can only search one list at a time, Nabble allows you to search all the lists within a project, for example, Tomcat has 2 lists, Eclipse has 30 lists, Apache has 300 lists. You don't have to go to each site to searrch each list, you can simply search from the Nabble software archive: http://www.nabble.com/Software-f94.html - then narrow the result by the projects. You can view the search result in the context of a thread of discussions instead of in an isolated post page. Even if you don't find an answer directly, you could at least find the people who have discussed the issue before, you can then reply or sent private emails to those users and hopefully they will respond like on this list. By the way, Nabble uses Apache Lucene for search, this means you have access to full set of query syntax such as wildcard search, fuzzy search, and grouping of search queries, etc. See this Lucense syntax page: http://lucene.apache.org/java/docs/queryparsersyntax.html You can design and enter a complex query string to pin-point your search on Nabble. In contrast, Google's search has to appeal to the non-technical majorities. -- Sent from the Tomcat - User forum at Nabble.com: http://www.nabble.com/RE%3A-Generic-Types-support-in-Tomcat--t334942.html#a987796
Re: Generic Types support in Tomcat?
Nikola Milutinovic wrote: Tomcat 5 supports all the features of the underlying JVM, the problem is in the JSPs. They are compiled by Jasper + Eclipse compiler module, which, in version 5.5.9, has no support for Java5. Later versions of Tomcat have a newer version of Eclipse Compiler and it works. Also, you can plugin manually a newer version of Eclipse compiler, try to search the mailing list for posts on how to do it (simple, if I remember correctly). Nix. I would just forget about it. Nowadays, a simple search would give hundreds, if not thousands or millions, results. The problem is I don't know what keyword(s) to use. Last time I spent quite a lot of time (at least half an hour) to find out that Tomcat (well, JSP) couldn't support Java5. Thanks anyway. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
Seak, Teng-Fong wrote: Nikola Milutinovic wrote: Tomcat 5 supports all the features of the underlying JVM, the problem is in the JSPs. They are compiled by Jasper + Eclipse compiler module, which, in version 5.5.9, has no support for Java5. Later versions of Tomcat have a newer version of Eclipse Compiler and it works. Also, you can plugin manually a newer version of Eclipse compiler, try to search the mailing list for posts on how to do it (simple, if I remember correctly). I would just forget about it. Nowadays, a simple search would give hundreds, if not thousands or millions, results. The problem is I don't know what keyword(s) to use. Last time I spent quite a lot of time (at least half an hour) to find out that Tomcat (well, JSP) couldn't support Java5. Well, just to clarify, JSPs *can* run Java5 idioms - if you provide Tomcat with a JSP/Java compiler that will undestand them. Servlets are compiled by you and will have no problems running on the desired JVM. OTOH, having Java code in JSPs is evil and should be moved to Servlets or Struts Actions or whatever is the equivalent in Java ServerFaces. JSP are for displaying only. Having said that, I must contradict myself here. I have found that sometimes having a bit of Java code in JSP can clarify things, but it can also bring in a nightmare, especially with JSF. Keep Java code in JSPs to the minimum and if you have to use it, use it for presentation logic only. Business logic should be elsewhere. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
Dumb question: How does one enable 1.5 source features in post 5.5.9 Tomcats? I know how you can do it with the latest 5.0 sources (i.e. with Ant JSP compilation) but I'm still at 5.5.9 and wondering how this is controlled in 5.5.12. -- Jess Holle Nikola Milutinovic wrote: Seak, Teng-Fong wrote: When I first saw the announcement that Tomcat 5.5 needs Java5 to run, I thought it would supports Java5 features. But it turns out that it needs Java5 but not supports Java5. Quite disappointed. Anyway, I have to go on with my webapp, so much for it. Tomcat 5 supports all the features of the underlying JVM, the problem is in the JSPs. They are compiled by Jasper + Eclipse compiler module, which, in version 5.5.9, has no support for Java5. Later versions of Tomcat have a newer version of Eclipse Compiler and it works. Also, you can plugin manually a newer version of Eclipse compiler, try to search the mailing list for posts on how to do it (simple, if I remember correctly). Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
So how is this affecting the use of Tomcat 5.5.9? I am using Java 5 features with Tomcat 5.5.9 without any problems, so what do I need to do to discover Tomcat 5.5.9 shortcomings with respect to Java 5? Regards, BTJ Christoph Kutzinski wrote: What's what story? Java 5 features are not supported in latest tomcat stable (5.5.9), but are in the latest alphas (5.5.10-5.5.12) Just as I said in my previous mail. Seak, Teng-Fong wrote: I've received an announcement mail telling that 5.5.12 is in alpha phase! So what's this story? Actually, I'm more interested in using the new for loop in Java5 than using generic. Christoph Kutzinski wrote: Hi, it is only since 5.5.10 5.5.10 was already released, but it is only supposed to be alpha. I.e. not recommended for production use. I have no idea, when the next stable tomcat version will be released Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
To be honest, I never tried it with 5.5.9 I just concluded it from the release notes and other posts on this mailing list. AFAIK, tomcat uses the Eclipse JDT compiler by default to compile JSPs. Maybe you have configured tomcat to use Suns javac? Bjørn T Johansen wrote: So how is this affecting the use of Tomcat 5.5.9? I am using Java 5 features with Tomcat 5.5.9 without any problems, so what do I need to do to discover Tomcat 5.5.9 shortcomings with respect to Java 5? Regards, BTJ Christoph Kutzinski wrote: What's what story? Java 5 features are not supported in latest tomcat stable (5.5.9), but are in the latest alphas (5.5.10-5.5.12) Just as I said in my previous mail. Seak, Teng-Fong wrote: I've received an announcement mail telling that 5.5.12 is in alpha phase! So what's this story? Actually, I'm more interested in using the new for loop in Java5 than using generic. Christoph Kutzinski wrote: Hi, it is only since 5.5.10 5.5.10 was already released, but it is only supposed to be alpha. I.e. not recommended for production use. I have no idea, when the next stable tomcat version will be released Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
Nope, I am just using the default installation and configurations... BTJ Christoph Kutzinski wrote: To be honest, I never tried it with 5.5.9 I just concluded it from the release notes and other posts on this mailing list. AFAIK, tomcat uses the Eclipse JDT compiler by default to compile JSPs. Maybe you have configured tomcat to use Suns javac? Bjørn T Johansen wrote: So how is this affecting the use of Tomcat 5.5.9? I am using Java 5 features with Tomcat 5.5.9 without any problems, so what do I need to do to discover Tomcat 5.5.9 shortcomings with respect to Java 5? Regards, BTJ Christoph Kutzinski wrote: What's what story? Java 5 features are not supported in latest tomcat stable (5.5.9), but are in the latest alphas (5.5.10-5.5.12) Just as I said in my previous mail. Seak, Teng-Fong wrote: I've received an announcement mail telling that 5.5.12 is in alpha phase! So what's this story? Actually, I'm more interested in using the new for loop in Java5 than using generic. Christoph Kutzinski wrote: Hi, it is only since 5.5.10 5.5.10 was already released, but it is only supposed to be alpha. I.e. not recommended for production use. I have no idea, when the next stable tomcat version will be released Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
To be clear: You are using Java 5 features (generics, for-each loop etc.) in JSPs? Bjørn T Johansen wrote: Nope, I am just using the default installation and configurations... BTJ Christoph Kutzinski wrote: To be honest, I never tried it with 5.5.9 I just concluded it from the release notes and other posts on this mailing list. AFAIK, tomcat uses the Eclipse JDT compiler by default to compile JSPs. Maybe you have configured tomcat to use Suns javac? Bjørn T Johansen wrote: So how is this affecting the use of Tomcat 5.5.9? I am using Java 5 features with Tomcat 5.5.9 without any problems, so what do I need to do to discover Tomcat 5.5.9 shortcomings with respect to Java 5? Regards, BTJ Christoph Kutzinski wrote: What's what story? Java 5 features are not supported in latest tomcat stable (5.5.9), but are in the latest alphas (5.5.10-5.5.12) Just as I said in my previous mail. Seak, Teng-Fong wrote: I've received an announcement mail telling that 5.5.12 is in alpha phase! So what's this story? Actually, I'm more interested in using the new for loop in Java5 than using generic. Christoph Kutzinski wrote: Hi, it is only since 5.5.10 5.5.10 was already released, but it is only supposed to be alpha. I.e. not recommended for production use. I have no idea, when the next stable tomcat version will be released Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
Hi all, A] I am using tomcat 4.1.30 ( 32 bit) with Apache 2.0.46 ( this is standard apache which comes with RHEL 3.0). I am currently using RHEL 32 bit without RAID confiuration. Now i am planning to move to 64 bit RHEL 3.0 with RAID configuration but he the new Apache of RHEL 3.0 and same tomcat 4.1.30 ( 32 bit). I am facing a problem with mod_jk. I feel it is 32 bit complied mod_jk. Can anyone help me with the solution B] Also my tomcat goes into hang state . So i have set an parameter LD_ASSUME_KERNEL=2.4.21. That is my Linux kernel version. Is this ok. where do i set this parameter. i have set it in the catalina.sh. C] Sometime when the tomcat is started it spwans more than one processes. And then during shudown it creates problems. Also sometimes the list of open files goes beyond 1024. that is he ulimit. due to which he tomcat doesnot respond. D] I am currently using 4.1.30 version of tomcat. Are there any fixes or upgrades for this tomcat. Can you inform me the link for the same. Thanks in advance. regards, Santosh
Re: Generic Types support in Tomcat?
You should start a new discussion thread. I cannot see how this is even remotely related to generic types and Tomcat. Santosh Asbe wrote: Hi all, A] I am using tomcat 4.1.30 ( 32 bit) with Apache 2.0.46 ( this is standard apache which comes with RHEL 3.0). I am currently using RHEL 32 bit without RAID confiuration. Now i am planning to move to 64 bit RHEL 3.0 with RAID configuration but he the new Apache of RHEL 3.0 and same tomcat 4.1.30 ( 32 bit). I am facing a problem with mod_jk. I feel it is 32 bit complied mod_jk. Can anyone help me with the solution B] Also my tomcat goes into hang state . So i have set an parameter LD_ASSUME_KERNEL=2.4.21. That is my Linux kernel version. Is this ok. where do i set this parameter. i have set it in the catalina.sh. C] Sometime when the tomcat is started it spwans more than one processes. And then during shudown it creates problems. Also sometimes the list of open files goes beyond 1024. that is he ulimit. due to which he tomcat doesnot respond. D] I am currently using 4.1.30 version of tomcat. Are there any fixes or upgrades for this tomcat. Can you inform me the link for the same. Thanks in advance. regards, Santosh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
Christoph Kutzinski wrote: To be honest, I never tried it with 5.5.9 I just concluded it from the release notes and other posts on this mailing list. AFAIK, tomcat uses the Eclipse JDT compiler by default to compile JSPs. Maybe you have configured tomcat to use Suns javac? That is one way of doing, the other is to download latest Eclipse JDT compiler and configure TC to use it. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
Nope, I am using it in the java server code, not jsp... Hence my question :) BTJ Christoph Kutzinski wrote: To be clear: You are using Java 5 features (generics, for-each loop etc.) in JSPs? Bjørn T Johansen wrote: Nope, I am just using the default installation and configurations... BTJ Christoph Kutzinski wrote: To be honest, I never tried it with 5.5.9 I just concluded it from the release notes and other posts on this mailing list. AFAIK, tomcat uses the Eclipse JDT compiler by default to compile JSPs. Maybe you have configured tomcat to use Suns javac? Bjørn T Johansen wrote: So how is this affecting the use of Tomcat 5.5.9? I am using Java 5 features with Tomcat 5.5.9 without any problems, so what do I need to do to discover Tomcat 5.5.9 shortcomings with respect to Java 5? Regards, BTJ Christoph Kutzinski wrote: What's what story? Java 5 features are not supported in latest tomcat stable (5.5.9), but are in the latest alphas (5.5.10-5.5.12) Just as I said in my previous mail. Seak, Teng-Fong wrote: I've received an announcement mail telling that 5.5.12 is in alpha phase! So what's this story? Actually, I'm more interested in using the new for loop in Java5 than using generic. Christoph Kutzinski wrote: Hi, it is only since 5.5.10 5.5.10 was already released, but it is only supposed to be alpha. I.e. not recommended for production use. I have no idea, when the next stable tomcat version will be released Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
What's what story? Java 5 features are not supported in latest tomcat stable (5.5.9), but are in the latest alphas (5.5.10-5.5.12) Just as I said in my previous mail. Seak, Teng-Fong wrote: I've received an announcement mail telling that 5.5.12 is in alpha phase! So what's this story? Actually, I'm more interested in using the new for loop in Java5 than using generic. Christoph Kutzinski wrote: Hi, it is only since 5.5.10 5.5.10 was already released, but it is only supposed to be alpha. I.e. not recommended for production use. I have no idea, when the next stable tomcat version will be released Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
When I first saw the announcement that Tomcat 5.5 needs Java5 to run, I thought it would supports Java5 features. But it turns out that it needs Java5 but not supports Java5. Quite disappointed. Anyway, I have to go on with my webapp, so much for it. Christoph Kutzinski wrote: What's what story? Java 5 features are not supported in latest tomcat stable (5.5.9), but are in the latest alphas (5.5.10-5.5.12) Just as I said in my previous mail. Seak, Teng-Fong wrote: I've received an announcement mail telling that 5.5.12 is in alpha phase! So what's this story? Actually, I'm more interested in using the new for loop in Java5 than using generic. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
Stephan van Loendersloot wrote: Seak, Teng-Fong wrote: I've received an announcement mail telling that 5.5.12 is in alpha phase! So what's this story? Actually, I'm more interested in using the new for loop in Java5 than using generic. I always like to think that the modularity that comes with Java is one of it's greatest features. Combined with JSP and the recommended MVC model, this leaves me with enough options to generate pre-packaged JAR's for inclusion with my web-applications. I use the latest Eclipse (which does support those features) and I use the enhanced for loop and generics a lot, though mostly pre-compiled and pre-packaged. Maybe it's a suitable workaround for you while waiting for the next stable Tomcat release. Yup, I moved some code to compiled classes, but some I can't. That's why I've been confused during a whole hour wondering why my jsp generated lot of errors until at last I made a search on google to find out that Java5 features aren't support in JSP!!! Damned! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
Seak, Teng-Fong wrote: When I first saw the announcement that Tomcat 5.5 needs Java5 to run, I thought it would supports Java5 features. But it turns out that it needs Java5 but not supports Java5. Quite disappointed. Anyway, I have to go on with my webapp, so much for it. Tomcat 5 supports all the features of the underlying JVM, the problem is in the JSPs. They are compiled by Jasper + Eclipse compiler module, which, in version 5.5.9, has no support for Java5. Later versions of Tomcat have a newer version of Eclipse Compiler and it works. Also, you can plugin manually a newer version of Eclipse compiler, try to search the mailing list for posts on how to do it (simple, if I remember correctly). Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
Seak, Teng-Fong wrote: I've received an announcement mail telling that 5.5.12 is in alpha phase! So what's this story? Actually, I'm more interested in using the new for loop in Java5 than using generic. I always like to think that the modularity that comes with Java is one of it's greatest features. Combined with JSP and the recommended MVC model, this leaves me with enough options to generate pre-packaged JAR's for inclusion with my web-applications. I use the latest Eclipse (which does support those features) and I use the enhanced for loop and generics a lot, though mostly pre-compiled and pre-packaged. Maybe it's a suitable workaround for you while waiting for the next stable Tomcat release. Regards, --Stephan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
I've received an announcement mail telling that 5.5.12 is in alpha phase! So what's this story? Actually, I'm more interested in using the new for loop in Java5 than using generic. Christoph Kutzinski wrote: Hi, it is only since 5.5.10 5.5.10 was already released, but it is only supposed to be alpha. I.e. not recommended for production use. I have no idea, when the next stable tomcat version will be released Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Generic Types support in Tomcat?
Well, after many many hours' search (seems like not a hot subject), I finally came to this mail archive. But before getting here, I've already come across a similar page at http://blog.taragana.com/index.php/archive/how-to-run-javac-15-or-beyond-compiler-for-jsp-compilation-in-tomcat-55-with-generics-enabled-and-other-15-only-features/2/ I've put all those JSP parameters in the web.xml and of course it didn't work (or else I wouldn't be here). This thread said it's for Tomcat 5.5.10 (ie, in the future) but that page just said it's for Tomcat 5.5, and then http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html only say it's for Tomcat 5.5 too. So, is it possible to use Java 5 syntax in JSP in Tomcat 5.5.9? TIA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
Hi, it is only since 5.5.10 5.5.10 was already released, but it is only supposed to be alpha. I.e. not recommended for production use. I have no idea, when the next stable tomcat version will be released Christoph Seak, Teng-Fong wrote: Well, after many many hours' search (seems like not a hot subject), I finally came to this mail archive. But before getting here, I've already come across a similar page at http://blog.taragana.com/index.php/archive/how-to-run-javac-15-or-beyond-compiler-for-jsp-compilation-in-tomcat-55-with-generics-enabled-and-other-15-only-features/2/ I've put all those JSP parameters in the web.xml and of course it didn't work (or else I wouldn't be here). This thread said it's for Tomcat 5.5.10 (ie, in the future) but that page just said it's for Tomcat 5.5, and then http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html only say it's for Tomcat 5.5 too. So, is it possible to use Java 5 syntax in JSP in Tomcat 5.5.9? TIA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
FYI: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/changelog.html Tomcat 5.5.10 ... Update to JDT from Eclipse 3.1, with support for Java 5 However 5.5.10 is still alpha Christoph Patrick Thomas wrote: Thanks Chuck, I definitely wouldn't have noticed that without the pointer. Oh well, I guess I'll stick to casting and iterators for a few more months ;) On 8/8/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Patrick Thomas [mailto:[EMAIL PROTECTED] Subject: Generic Types support in Tomcat? Easiest part of this question is simply does tomcat (5.5.7) support using generic types in JSP files? Some pertinent paragraphs from: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html --- The servlet which implements Jasper is configured using init parameters in your global $CATALINA_BASE/conf/web.xml. # compilerSourceVM - What JDK version are the source files compatible with? (Default JDK 1.4) # compilerTargetVM - What JDK version are the generated files compatible with? (Default JDK 1.4) The Java compiler from Eclipse JDT in included as the default compiler. It is an advanced Java compiler which will load all dependencies from the Tomcat class loader, which will help tremendously when compiling on large installations with tens of JARs. On fast servers, this will allow sub-second recompilation cycles for even large JSP pages. This new compiler will be updated to support the Java 5 syntax as soon as possible. --- I don't know when as soon as possible might be. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
Tomcat 5.5.10 has an update JDT compiler from Eclipse 3.1. This understands Java 5. You can also configure that you compile with the sun compiler. Ronald. On Mon Aug 08 23:25:27 CEST 2005 Tomcat Users List tomcat-user@jakarta.apache.org wrote: Hi All, Easiest part of this question is simply does tomcat (5.5.7) support using generic types in JSP files? I searched release notes, FAQ, etc and found no mention either way. Does some erudite soul have the answer? Secondly, if it's supposed to support it, why then would it have difficulty with the following: In Part.java (a valid java object, visible from the jsp): public static ArrayListPart listParts() {/* code */} In TestPart.jsp (specifically line 4): % ArrayListPart parts = Part.listParts(); % Attempting to access TestPart results in: org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 4 in the jsp file: /tools/TestPart.jsp Generated servlet error: Syntax error on token , invalid AssignmentOperator An error occurred at line: 4 in the jsp file: /tools/TestPart.jsp Generated servlet error: Syntax error on token =, != expected An error occurred at line: 17 in the jsp file: /tools/TestPart.jsp Generated servlet error: Syntax error on token(s), misplaced construct(s) An error occurred at line: 17 in the jsp file: /tools/TestPart.jsp Generated servlet error: Syntax error on token ), : expected It's clearly puking on the ObjectName generic type syntax; so, is it actually supported? Cheers, Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Generic Types support in Tomcat?
From: Patrick Thomas [mailto:[EMAIL PROTECTED] Subject: Generic Types support in Tomcat? Easiest part of this question is simply does tomcat (5.5.7) support using generic types in JSP files? Some pertinent paragraphs from: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html --- The servlet which implements Jasper is configured using init parameters in your global $CATALINA_BASE/conf/web.xml. # compilerSourceVM - What JDK version are the source files compatible with? (Default JDK 1.4) # compilerTargetVM - What JDK version are the generated files compatible with? (Default JDK 1.4) The Java compiler from Eclipse JDT in included as the default compiler. It is an advanced Java compiler which will load all dependencies from the Tomcat class loader, which will help tremendously when compiling on large installations with tens of JARs. On fast servers, this will allow sub-second recompilation cycles for even large JSP pages. This new compiler will be updated to support the Java 5 syntax as soon as possible. --- I don't know when as soon as possible might be. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generic Types support in Tomcat?
Thanks Chuck, I definitely wouldn't have noticed that without the pointer. Oh well, I guess I'll stick to casting and iterators for a few more months ;) On 8/8/05, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Patrick Thomas [mailto:[EMAIL PROTECTED] Subject: Generic Types support in Tomcat? Easiest part of this question is simply does tomcat (5.5.7) support using generic types in JSP files? Some pertinent paragraphs from: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html --- The servlet which implements Jasper is configured using init parameters in your global $CATALINA_BASE/conf/web.xml. # compilerSourceVM - What JDK version are the source files compatible with? (Default JDK 1.4) # compilerTargetVM - What JDK version are the generated files compatible with? (Default JDK 1.4) The Java compiler from Eclipse JDT in included as the default compiler. It is an advanced Java compiler which will load all dependencies from the Tomcat class loader, which will help tremendously when compiling on large installations with tens of JARs. On fast servers, this will allow sub-second recompilation cycles for even large JSP pages. This new compiler will be updated to support the Java 5 syntax as soon as possible. --- I don't know when as soon as possible might be. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]