RE: Tomcat w Java1.5 beta problem
Howdy, The problem I had, I think, is that my method used an Enumeration and under 1.5 enum is a new keyword but jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper used enum many places as an identifier, as do some classes in org.apache.tomcat.util.compat Cool, thanks for researching that and posting your conclusions. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat w Java1.5 beta problem
Hello, Under Tomcat 5.0.18 with servlets compiled with 1.5 beta, I get an odd message, and the servlet won't load. When the same servlet is compiled with 1.4.2 it runs fine. The method signature in the following message is correct. There is simple nothing to complain about. Is this a problem with Tomcat or Java sdk1.5. Where is the best place to report this to? No, I have not altertered my common/endorsed jars 2004-02-09 12:00:13 StandardContext[/midp]Servlet /midp threw load() exception ... - Root Cause - java.lang.VerifyError: (class: com/koyuru/midp/servlets/LessonDownload, method: compareAvailableToOnHandset signature: (Ljava/util/Vector;Ljava/util/Vector;)[Ljava/lang/String;) Incompatible object argument for function call at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1873) at java.lang.Class.getConstructor0(Class.java:2185) at java.lang.Class.newInstance0(Class.java:293) at java.lang.Class.newInstance(Class.java:275) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1002) Shawn Happily using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat w Java1.5 beta problem
Shawn wrote: Under Tomcat 5.0.18 with servlets compiled with 1.5 beta, I get an odd message, and the servlet won't load. When the same servlet is compiled with 1.4.2 it runs fine. I have tried compiling with: javac -source 1.5 -target 1.4 ... ? I get the complaint from both IDEs I use because of the fact that the collections have changed, in order to support generics. I haven't tried running my JDK1.5 classes under jdk1.4.2 yet, as I am still trying to get all of my unit tests to pass. g -- Love is mutual self-giving that ends in self-recovery. Fulton Sheen James Black[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat w Java1.5 beta problem
Howdy, Under Tomcat 5.0.18 with servlets compiled with 1.5 beta, I get an odd message, and the servlet won't load. When the same servlet is compiled with 1.4.2 it runs fine. I suggest rebuilding tomcat with 1.5 beta if you want to run servlets compiled using 1.5 beta. I'm not even sure my suggestion will work, as I haven't tried it myself. There has not been a tomcat release declared to support JDK 1.5 yet, although you're welcome to do building and testing for us ;) Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat w Java1.5 beta problem
Shapira, Yoav wrote: Howdy, Under Tomcat 5.0.18 with servlets compiled with 1.5 beta, I get an odd message, and the servlet won't load. When the same servlet is compiled with 1.4.2 it runs fine. I suggest rebuilding tomcat with 1.5 beta if you want to run servlets compiled using 1.5 beta. I'm not even sure my suggestion will work, as I haven't tried it myself. There has not been a tomcat release declared to support JDK 1.5 yet, although you're welcome to do building and testing for us ;) There's a small glitch: j-t-c/util wants to be compiled JDK 1.1 compatible, which apparently the new compiler cannot do anymore. So you'll have to hack the build script a bit for now. Tomcat runs very well on JDK 1.5 (and you should be able to enable all the fancy JMX remote features). Testing has shown it was about 10% faster, and used a little less memory (5% less) for the out of the box Tomcat. -- x Rémy Maucherat Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat w Java1.5 beta problem
Howdy, Testing has shown it was about 10% faster, and used a little less memory (5% less) for the out of the box Tomcat. Cool ;) Can't wait to test it myself, but (actual, $$$) work will be very busy this week ;) Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat w Java1.5 beta problem
I get the complaint from both IDEs I use because of the fact that the collections have changed, in order to support generics. I haven't tried running my JDK1.5 classes under jdk1.4.2 yet, as I am still trying to get all of my unit tests to pass. g Oh, I thought you had run it under Tomcat. Use ant to run your unit tests. g That is what I am doing. Also, Netbeans doesn't seem to have a problem with compiling and running the tests, if you have the external program set to jdk1.5.0. For my jdk1.4.2 unit testing I use ant though and that works fine. I have given up trying to get Netbeans or Eclipse to stop complaining about the new features I am using. -- Love is mutual self-giving that ends in self-recovery. Fulton Sheen James Black[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat w Java1.5 beta problem
Shapira, Yoav wrote: I suggest rebuilding tomcat with 1.5 beta if you want to run servlets compiled using 1.5 beta. I'm not even sure my suggestion will work, as I haven't tried it myself. There has not been a tomcat release declared to support JDK 1.5 yet, although you're welcome to do building and testing for us ;) I wrote a jsp page that uses some of the management api stuff for monitoring threads, garbage collection, etc, and that works great under Tomcat 5, using jdk1.5.0. I didn't have to recompile anything. Once I get my unit tests to pass I will see how my webservices run under jdk1.5. -- Love is mutual self-giving that ends in self-recovery. Fulton Sheen James Black[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat w Java1.5 beta problem
I suggest rebuilding tomcat with 1.5 beta if you want to run servlets compiled using 1.5 beta. I'm not even sure my suggestion will work, as I haven't tried it myself. There has not been a tomcat release declared to support JDK 1.5 yet, although you're welcome to do building and testing for us ;) The problem I had, I think, is that my method used an Enumeration and under 1.5 enum is a new keyword but jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper used enum many places as an identifier, as do some classes in org.apache.tomcat.util.compat -- Shawn Happily using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]