RE: JDK 1.4 pre - once again
I've downloaded the latest release of Cocoon2 I've installed JDK1.4 JSP pages examples are NOT WORKING I get the follwoing exception: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl Rge whole tomcat is working except these JSP examples. with best wishes Alexander Kachanov - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDK 1.4 pre
David Rosenstrauch wrote: At 11:22 AM 1/24/02 -0500, Berin Loritsch wrote: Until that time, and the time when XSP is no longer needed, tools.jar needs to go in WEB-INF/lib. Not sure what you mean by that. When won't XSP be needed any longer? Is it being deprecated? We haven't come up with a better replacement yet. However, it is clear that for *performance* reasons, simple Transformers work much quicker than XSP. It is not being deprecated any time soon. We are looking for an elegant solution that would help us to not have to compile pages. -- They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDK 1.4 pre
Alex Kachanov wrote: Guys, I think the problem is that JDK1.4 includes Xerces parser now. So there are conflicting versions when you install JDK 1.4 and cocoon on the same machine You can get around that easily enough. Cocoon uses JAXP, and you can override the specific class that is used. -- They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDK 1.4 pre - once again
Alex Kachanov wrote: I've downloaded the latest release of Cocoon2 I've installed JDK1.4 JSP pages examples are NOT WORKING I get the follwoing exception: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl Rge whole tomcat is working except these JSP examples. And hence Cocoon and XSP is more resilient than JSP! -- They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDK 1.4 pre
HOW-TO! -Original Message- From: Berin Loritsch [mailto:[EMAIL PROTECTED]] Sent: 26 ~rp 2002 s. 0:52 To: [EMAIL PROTECTED] Subject: Re: JDK 1.4 pre Alex Kachanov wrote: Guys, I think the problem is that JDK1.4 includes Xerces parser now. So there are conflicting versions when you install JDK 1.4 and cocoon on the same machine You can get around that easily enough. Cocoon uses JAXP, and you can override the specific class that is used. -- They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDK 1.4 pre
Alex Kachanov wrote: HOW-TO! check the config files and the web.xml file. You have to set a property for Cocoon, and change the Component for the Parser. -Original Message- From: Berin Loritsch [mailto:[EMAIL PROTECTED]] Sent: 26 ~rp 2002 s. 0:52 To: [EMAIL PROTECTED] Subject: Re: JDK 1.4 pre Alex Kachanov wrote: Guys, I think the problem is that JDK1.4 includes Xerces parser now. So there are conflicting versions when you install JDK 1.4 and cocoon on the same machine You can get around that easily enough. Cocoon uses JAXP, and you can override the specific class that is used. -- They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cocoon2 panic with JDK 1.4 pre (beta3)
hello! Guys, I'm really scared. All JSP examples in Cocoon2 stop working if I install JDK1.4 pre (beta3) just released bu SUN I get this message java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl What can be the source of teh problem? with best wishes Alexander Kachanov - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: cocoon2 panic with JDK 1.4 pre (beta3)
I think it's because of the included XML parser. Don't know which one it uses. -Ursprungliche Nachricht- Von: Alex Kachanov [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 11:29 An: [EMAIL PROTECTED] Betreff: cocoon2 panic with JDK 1.4 pre (beta3) hello! Guys, I'm really scared. All JSP examples in Cocoon2 stop working if I install JDK1.4 pre (beta3) just released bu SUN I get this message java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl What can be the source of teh problem? with best wishes Alexander Kachanov - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: cocoon2 panic with JDK 1.4 pre (beta3)
I found 3 (THREE) xerces.jar files on My machine: - one that cane with JDK 1.4 pre (beta3) - one that came with Tomcat 4.0.1 - one that came with Cocoon 2 Which one should I delete? -Original Message- From: Jorn Heid [mailto:[EMAIL PROTECTED]] Sent: 24 ~rp 2002 s. 19:34 To: [EMAIL PROTECTED] Subject: AW: cocoon2 panic with JDK 1.4 pre (beta3) I think it's because of the included XML parser. Don't know which one it uses. -Ursprungliche Nachricht- Von: Alex Kachanov [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 11:29 An: [EMAIL PROTECTED] Betreff: cocoon2 panic with JDK 1.4 pre (beta3) hello! Guys, I'm really scared. All JSP examples in Cocoon2 stop working if I install JDK1.4 pre (beta3) just released bu SUN I get this message java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl What can be the source of teh problem? with best wishes Alexander Kachanov - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDK 1.4 pre
Alex Kachanov wrote: hello! It looks like smth. is wrong. Cocoon cannot run with the latest release of JDK 1.4 Pre from Sun. I get such messages like: Invalid class file format in F:\jdk\jre\lib\rt.jar(java/io/OutputStream.class). The major.minor version '48.0' is too recent for this tool to understand. If you compile Cocoon with JDK 1.4, you have to do the following: 1) run the servlet container with JDK 1.4 2) use JDK 1.4's tools.jar file If you want to use the same cocoon.jar file in any installation, then set the version=1.2 attribute on the javac tag that compiles Cocoon. That way the classes are binary compatible with the previous versions of JDK. Bear in mind this LAW: Your tools.jar MUST be from the SAME JDK as you are RUNNING. -- They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDK 1.4 pre
So If I'm using JDK1.4 (which I want, since it fixes a Linux problem) I can't download the Cocoon binaries; I need to compile myself? Not a big deal, I just want to know. tia. --- Berin Loritsch [EMAIL PROTECTED] wrote: Alex Kachanov wrote: hello! It looks like smth. is wrong. Cocoon cannot run with the latest release of JDK 1.4 Pre from Sun. I get such messages like: Invalid class file format in F:\jdk\jre\lib\rt.jar(java/io/OutputStream.class). The major.minor version '48.0' is too recent for this tool to understand. If you compile Cocoon with JDK 1.4, you have to do the following: 1) run the servlet container with JDK 1.4 2) use JDK 1.4's tools.jar file If you want to use the same cocoon.jar file in any installation, then set the version=1.2 attribute on the javac tag that compiles Cocoon. That way the classes are binary compatible with the previous versions of JDK. Bear in mind this LAW: Your tools.jar MUST be from the SAME JDK as you are RUNNING. -- They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = - Mr Lauren Commons A person of moderate zeal __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDK 1.4 pre
Lauren Commons wrote: So If I'm using JDK1.4 (which I want, since it fixes a Linux problem) I can't download the Cocoon binaries; I need to compile myself? Not a big deal, I just want to know. Yes. But more importantly, if you run it as JDK 1.4, then that JDK's tools.jar MUST be in the WEB-INF/lib directory. -- They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDK 1.4 pre
Lewis, Andrew J wrote: tools.jar must be in the WEB-INF/lib? is that only if you use existing binaries instead of compiling yourself? No, that is so that Cocoon can compile the Sitemap and any XSPs properly. Remember that Cocoon does alot under the hood. While there is an effort to convert the sitemap to an interpreted file instead of compiled class, it is not *quite* done yet. The initial reports are encouraging. It beats out the compiled sitemap in some tests, but their performances are fairly comparable overall. Until that time, and the time when XSP is no longer needed, tools.jar needs to go in WEB-INF/lib. -- They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDK 1.4 pre
ouch...that sounds like a serious deployment problem so the need for tools.jar is for the compiler then? I'm sure I'm rehashing old topics (so feel free to tell me so), but what about things like Jikes? -- From: Berin Loritsch[SMTP:[EMAIL PROTECTED]] Reply To: [EMAIL PROTECTED] Sent: Thursday, January 24, 2002 11:22 AM To: [EMAIL PROTECTED] Subject: Re: JDK 1.4 pre Lewis, Andrew J wrote: tools.jar must be in the WEB-INF/lib? is that only if you use existing binaries instead of compiling yourself? No, that is so that Cocoon can compile the Sitemap and any XSPs properly. Remember that Cocoon does alot under the hood. While there is an effort to convert the sitemap to an interpreted file instead of compiled class, it is not *quite* done yet. The initial reports are encouraging. It beats out the compiled sitemap in some tests, but their performances are fairly comparable overall. Until that time, and the time when XSP is no longer needed, tools.jar needs to go in WEB-INF/lib. -- They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDK 1.4 pre
Lewis, Andrew J wrote: ouch...that sounds like a serious deployment problem so the need for tools.jar is for the compiler then? I'm sure I'm rehashing old topics (so feel free to tell me so), but what about things like Jikes? Cocoon can be configured to work with Jikes as well. You need to make sure that it is on the PATH though. In fact, Jikes is quicker in most cases. I personally would compile the jars with the version=1.2 attribute, that way you are free to use any compiler you like. The biggest issues surface when you use classes that were compiled for a later JVM than you are using. -- They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. - Benjamin Franklin - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JDK 1.4 pre
At 11:22 AM 1/24/02 -0500, Berin Loritsch wrote: Until that time, and the time when XSP is no longer needed, tools.jar needs to go in WEB-INF/lib. Not sure what you mean by that. When won't XSP be needed any longer? Is it being deprecated? DR - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JDK 1.4 pre
Guys, I think the problem is that JDK1.4 includes Xerces parser now. So there are conflicting versions when you install JDK 1.4 and cocoon on the same machine with best wishes Alexander Kachanov - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JDK 1.4 pre
hello! It looks like smth. is wrong. Cocoon cannot run with the latest release of JDK 1.4 Pre from Sun. I get such messages like: Invalid class file format in F:\jdk\jre\lib\rt.jar(java/io/OutputStream.class). The major.minor version '48.0' is too recent for this tool to understand. HELP! with best wishes Alexander Kachanov - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]