Re: JDK 1.4 pre

2002-01-25 Thread Berin Loritsch

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 „‘„~„r„p„‚„‘ 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]>




RE: JDK 1.4 pre

2002-01-25 Thread Alex Kachanov

HOW-TO!

-Original Message-
From: Berin Loritsch [mailto:[EMAIL PROTECTED]]
Sent: 26 „‘„~„r„p„‚„‘ 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 - once again

2002-01-25 Thread Berin Loritsch

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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: JDK 1.4 pre

2002-01-25 Thread Berin Loritsch

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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: JDK 1.4 pre

2002-01-25 Thread Berin Loritsch

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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: JDK 1.4 pre - once again

2002-01-25 Thread Alex Kachanov

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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: JDK 1.4 pre

2002-01-24 Thread Alex Kachanov

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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: JDK 1.4 pre

2002-01-24 Thread David Rosenstrauch

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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: JDK 1.4 pre

2002-01-24 Thread Berin Loritsch

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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: JDK 1.4 pre

2002-01-24 Thread Lewis, Andrew J

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

2002-01-24 Thread Berin Loritsch

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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




RE: JDK 1.4 pre

2002-01-24 Thread Lewis, Andrew J

tools.jar must be in the WEB-INF/lib?

is that only if you use existing binaries instead of compiling yourself? 



> --
> From: Berin Loritsch[SMTP:[EMAIL PROTECTED]]
> Reply To: [EMAIL PROTECTED]
> Sent: Thursday, January 24, 2002 11:01 AM
> To:   [EMAIL PROTECTED]
> Subject:      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]>
> 

-
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

2002-01-24 Thread Berin Loritsch

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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: JDK 1.4 pre

2002-01-24 Thread Lauren Commons

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  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.
> 
> 
> 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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>




Re: JDK 1.4 pre

2002-01-24 Thread Berin Loritsch

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  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. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>