You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Martin Holz <ho...@fiz-chemie.de> on 2002/02/14 18:14:26 UTC

Re: Endorsed Standards Override Mechanism / Cocoon2 on JDK1.4

Hi,

Davanum Srinivas wrote:
> Team,
>
> JDK14 is officially released - http://java.sun.com/j2se/1.4/download.html.
>
> - Download and install JDK14.
> - Create a new directory named endorsed under jre\lib.
> - Drop xalan-2.2.0.jar, xerces-1.4.4.jar and xml-apis.jar in
> jre\lib\endorsed.

Why xalan and xerces ? 
Sun is talking about the packages org.w3c.dom, org.xml.sax, org.xml.sax.ext 
and  org.xml.sax.helpers.
Those packages have been moved  from xalan and xerces to  xml-apis.jar 
some time ago. Unless Suns documentation is wrong, copying xml-apis.jar 
should be enough and copying xerces.jar and xalan.jar may have 
nasty sideeffects  on other applications. 

>
> PS: Details on "Endorsed Standards Override Mechanism" is at
> http://java.sun.com/j2se/1.4/docs/guide/standards/.



Regards
      Martin

--
Martin Holz  <ho...@fiz-chemie.de>  phone: 0049-30-39977 218 
FIZ CHEMIE BERLIN

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: Endorsed Standards Override Mechanism / Cocoon2 on JDK1.4

Posted by Martin Holz <ho...@fiz-chemie.de>.
Hi,

Sam wrote:
> Hi, I tried to build Cocoon 2.0.1 using JDK1.4 on Debian GNU/Linux
> (stable), but I get errors during compile (see below). Should I be using
> cocoon cvs instead?
>
> Sam
>
> compile:
> Copying 27 files to /usr/src/cocoon-2.0.1/build/cocoon/classes
> Compiling with Java 1.4, debug on, optimize off, deprecation off
> Compiling 391 source files to /usr/src/cocoon-2.0.1/build/cocoon/classes
> /usr/src/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/languag
>e/markup/xsp/EsqlConnection.java:22: class
> org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be
> declared abstract. It does not define int getHoldability() from interface
> java.sql.Connection.
> public class EsqlConnection implements Connection {
              ^

This should be solved in CVS. If you look into 2.0.1 source, you will see, 
that the source allready contains the changes in comments. Sun decided to
add methods to the java.sql.Connection interface in java 1.4 instead of 
subclassing it. 

Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: Endorsed Standards Override Mechanism / Cocoon2 on JDK1.4

Posted by Sam <sa...@atnet.net.au>.
Hi, I tried to build Cocoon 2.0.1 using JDK1.4 on Debian GNU/Linux (stable), but I get errors during compile (see below). Should I be using
cocoon cvs instead?

Sam

compile:
Copying 27 files to /usr/src/cocoon-2.0.1/build/cocoon/classes
Compiling with Java 1.4, debug on, optimize off, deprecation off
Compiling 391 source files to /usr/src/cocoon-2.0.1/build/cocoon/classes
/usr/src/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be declared abstract. It does not define int getHoldability() from
interface java.sql.Connection.
public class EsqlConnection implements Connection {
             ^
/usr/src/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be declared abstract. It does not define java.sql.Savepoint
setSavepoint() from interface java.sql.Connection.
public class EsqlConnection implements Connection {
             ^
/usr/src/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be declared abstract. It does not define java.sql.Savepoint
setSavepoint(java.lang.String) from interface java.sql.Connection.
public class EsqlConnection implements Connection {
             ^
/usr/src/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be declared abstract. It does not define void
releaseSavepoint(java.sql.Savepoint) from interface java.sql.Connection.
public class EsqlConnection implements Connection {
             ^
/usr/src/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be declared abstract. It does not define java.sql.PreparedStatement
prepareStatement(java.lang.String, int, int, int) from interface java.sql.Connection.
public class EsqlConnection implements Connection {
             ^
/usr/src/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be declared abstract. It does not define java.sql.PreparedStatement
prepareStatement(java.lang.String, int) from interface java.sql.Connection.
public class EsqlConnection implements Connection {
             ^
/usr/src/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be declared abstract. It does not define java.sql.PreparedStatement
prepareStatement(java.lang.String, int[]) from interface java.sql.Connection.
public class EsqlConnection implements Connection {
             ^
/usr/src/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be declared abstract. It does not define java.sql.PreparedStatement
prepareStatement(java.lang.String, java.lang.String[]) from interface java.sql.Connection.
public class EsqlConnection implements Connection {
             ^
/usr/src/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be declared abstract. It does not define java.sql.Statement
createStatement(int, int, int) from interface java.sql.Connection.
public class EsqlConnection implements Connection {
             ^
/usr/src/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be declared abstract. It does not define java.sql.CallableStatement
prepareCall(java.lang.String, int, int, int) from interface java.sql.Connection.
public class EsqlConnection implements Connection {
             ^
/usr/src/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be declared abstract. It does not define void setHoldability(int) from
interface java.sql.Connection.
public class EsqlConnection implements Connection {
             ^
/usr/src/cocoon-2.0.1/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:22: class
org.apache.cocoon.components.language.markup.xsp.EsqlConnection must be declared abstract. It does not define void
rollback(java.sql.Savepoint) from interface java.sql.Connection.
public class EsqlConnection implements Connection {
             ^
12 errors

BUILD FAILED


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: Endorsed Standards Override Mechanism / Cocoon2 on JDK1.4

Posted by Davanum Srinivas <di...@yahoo.com>.
Robert,

Did you try running C2 on Tomcat4 with JDK1.4? Sometimes "the proof is in the pudding" :)

Thanks,
dims

--- Robert Marcano <ro...@promca.com> wrote:
> I haven�t confirmed it yet, but I think that this is not required if you 
> are using Tomcat4 or a compliant Servlet 2.3 container
> 
> look at the bottom of the page 
> http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
> 
> "As mentioned above, the web application class loader diverges from the 
> default Java 2 delegation model (in accordance with the recommendations 
> in the Servlet Specification, version 2.3, section 9.6). When a request 
> to load a class from the web application's WebappX class loader is 
> processed, this class loader will look in the local repositories first, 
> instead of delegating before looking. All other class loaders in Tomcat 
> 4 follow the usual delegation pattern.
> Therefore, from the perspective of a web application, class or resource 
> loading looks in the following repositories, in this order:
> 
>     * /WEB-INF/classes of your web application
>     * /WEB-INF/lib/*.jar of your web application
>     * Bootstrap classes of your JVM
>     * System class loader classses (described above)
>     * $CATALINA_HOME/common/classes
>     * $CATALINA_HOME/common/lib/*.jar
>     * $CATALINA_HOME/classes
>     * $CATALINA_HOME/lib/*.jar"
> 
> Davanum Srinivas wrote:
> 
> >Martin,
> >
> >The Xalan and Xerces implementations built into JDK1.4 are outdated. Cocoon2 won't run with
> them. 
> >
> >Yes, This will have effects on other applications. The other option is to set TOMCAT_OPTS
> >environment variable as follows: 
> >
>
>TOMCAT_OPTS=-Xbootclasspath/p:C:\cocoon2\tools\lib\xalan-2.2.0.jar;C:\cocoon2\tools\lib\xerces-1.4.4.jar;C:\cocoon2\tools\lib\xml-apis.jar
> >
> >
> >This is what happens under the covers when you place the jars in jre\lib\endorsed directory.
> >
> >Thanks,
> >dims
> >
> >--- Martin Holz <ho...@fiz-chemie.de> wrote:
> >
> >>Hi,
> >>
> >>Davanum Srinivas wrote:
> >>
> >>>Team,
> >>>
> >>>JDK14 is officially released - http://java.sun.com/j2se/1.4/download.html.
> >>>
> >>>- Download and install JDK14.
> >>>- Create a new directory named endorsed under jre\lib.
> >>>- Drop xalan-2.2.0.jar, xerces-1.4.4.jar and xml-apis.jar in
> >>>jre\lib\endorsed.
> >>>
> >>Why xalan and xerces ? 
> >>Sun is talking about the packages org.w3c.dom, org.xml.sax, org.xml.sax.ext 
> >>and  org.xml.sax.helpers.
> >>Those packages have been moved  from xalan and xerces to  xml-apis.jar 
> >>some time ago. Unless Suns documentation is wrong, copying xml-apis.jar 
> >>should be enough and copying xerces.jar and xalan.jar may have 
> >>nasty sideeffects  on other applications. 
> >>
> >>>PS: Details on "Endorsed Standards Override Mechanism" is at
> >>>http://java.sun.com/j2se/1.4/docs/guide/standards/.
> >>>
> >>
> >>
> >>Regards
> >>      Martin
> >>
> >>--
> >>Martin Holz  <ho...@fiz-chemie.de>  phone: 0049-30-39977 218 
> >>FIZ CHEMIE BERLIN
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> >>For additional commands, email: cocoon-dev-help@xml.apache.org
> >>
> >
> >
> >=====
> >Davanum Srinivas - http://jguru.com/dims/
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Send FREE Valentine eCards with Yahoo! Greetings!
> >http://greetings.yahoo.com
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> >For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> >
> 
> -- 
> Robert Marcano (office: robmv@promca.com, personal: robert@marcanoonline.com)
> System Architect
> http://www.marcanoonline.com/About_me/about_me.html
> 
> aol/netscape screen id: robmv
> jabber id: robmv@jabber.org
> msn messenger id: robert@marcanoonline.com
> icq id: 101913663
> 
> 
> 


=====
Davanum Srinivas - http://jguru.com/dims/

__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: Endorsed Standards Override Mechanism / Cocoon2 on JDK1.4

Posted by Robert Marcano <ro...@promca.com>.
I haven´t confirmed it yet, but I think that this is not required if you 
are using Tomcat4 or a compliant Servlet 2.3 container

look at the bottom of the page 
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

"As mentioned above, the web application class loader diverges from the 
default Java 2 delegation model (in accordance with the recommendations 
in the Servlet Specification, version 2.3, section 9.6). When a request 
to load a class from the web application's WebappX class loader is 
processed, this class loader will look in the local repositories first, 
instead of delegating before looking. All other class loaders in Tomcat 
4 follow the usual delegation pattern.
Therefore, from the perspective of a web application, class or resource 
loading looks in the following repositories, in this order:

    * /WEB-INF/classes of your web application
    * /WEB-INF/lib/*.jar of your web application
    * Bootstrap classes of your JVM
    * System class loader classses (described above)
    * $CATALINA_HOME/common/classes
    * $CATALINA_HOME/common/lib/*.jar
    * $CATALINA_HOME/classes
    * $CATALINA_HOME/lib/*.jar"

Davanum Srinivas wrote:

>Martin,
>
>The Xalan and Xerces implementations built into JDK1.4 are outdated. Cocoon2 won't run with them. 
>
>Yes, This will have effects on other applications. The other option is to set TOMCAT_OPTS
>environment variable as follows: 
>
>TOMCAT_OPTS=-Xbootclasspath/p:C:\cocoon2\tools\lib\xalan-2.2.0.jar;C:\cocoon2\tools\lib\xerces-1.4.4.jar;C:\cocoon2\tools\lib\xml-apis.jar
>
>
>This is what happens under the covers when you place the jars in jre\lib\endorsed directory.
>
>Thanks,
>dims
>
>--- Martin Holz <ho...@fiz-chemie.de> wrote:
>
>>Hi,
>>
>>Davanum Srinivas wrote:
>>
>>>Team,
>>>
>>>JDK14 is officially released - http://java.sun.com/j2se/1.4/download.html.
>>>
>>>- Download and install JDK14.
>>>- Create a new directory named endorsed under jre\lib.
>>>- Drop xalan-2.2.0.jar, xerces-1.4.4.jar and xml-apis.jar in
>>>jre\lib\endorsed.
>>>
>>Why xalan and xerces ? 
>>Sun is talking about the packages org.w3c.dom, org.xml.sax, org.xml.sax.ext 
>>and  org.xml.sax.helpers.
>>Those packages have been moved  from xalan and xerces to  xml-apis.jar 
>>some time ago. Unless Suns documentation is wrong, copying xml-apis.jar 
>>should be enough and copying xerces.jar and xalan.jar may have 
>>nasty sideeffects  on other applications. 
>>
>>>PS: Details on "Endorsed Standards Override Mechanism" is at
>>>http://java.sun.com/j2se/1.4/docs/guide/standards/.
>>>
>>
>>
>>Regards
>>      Martin
>>
>>--
>>Martin Holz  <ho...@fiz-chemie.de>  phone: 0049-30-39977 218 
>>FIZ CHEMIE BERLIN
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>
>
>
>=====
>Davanum Srinivas - http://jguru.com/dims/
>
>__________________________________________________
>Do You Yahoo!?
>Send FREE Valentine eCards with Yahoo! Greetings!
>http://greetings.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>For additional commands, email: cocoon-dev-help@xml.apache.org
>
>

-- 
Robert Marcano (office: robmv@promca.com, personal: robert@marcanoonline.com)
System Architect
http://www.marcanoonline.com/About_me/about_me.html

aol/netscape screen id: robmv
jabber id: robmv@jabber.org
msn messenger id: robert@marcanoonline.com
icq id: 101913663



Re: Endorsed Standards Override Mechanism / Cocoon2 on JDK1.4

Posted by Davanum Srinivas <di...@yahoo.com>.
Martin,

The Xalan and Xerces implementations built into JDK1.4 are outdated. Cocoon2 won't run with them. 

Yes, This will have effects on other applications. The other option is to set TOMCAT_OPTS
environment variable as follows: 

TOMCAT_OPTS=-Xbootclasspath/p:C:\cocoon2\tools\lib\xalan-2.2.0.jar;C:\cocoon2\tools\lib\xerces-1.4.4.jar;C:\cocoon2\tools\lib\xml-apis.jar


This is what happens under the covers when you place the jars in jre\lib\endorsed directory.

Thanks,
dims

--- Martin Holz <ho...@fiz-chemie.de> wrote:
> Hi,
> 
> Davanum Srinivas wrote:
> > Team,
> >
> > JDK14 is officially released - http://java.sun.com/j2se/1.4/download.html.
> >
> > - Download and install JDK14.
> > - Create a new directory named endorsed under jre\lib.
> > - Drop xalan-2.2.0.jar, xerces-1.4.4.jar and xml-apis.jar in
> > jre\lib\endorsed.
> 
> Why xalan and xerces ? 
> Sun is talking about the packages org.w3c.dom, org.xml.sax, org.xml.sax.ext 
> and  org.xml.sax.helpers.
> Those packages have been moved  from xalan and xerces to  xml-apis.jar 
> some time ago. Unless Suns documentation is wrong, copying xml-apis.jar 
> should be enough and copying xerces.jar and xalan.jar may have 
> nasty sideeffects  on other applications. 
> 
> >
> > PS: Details on "Endorsed Standards Override Mechanism" is at
> > http://java.sun.com/j2se/1.4/docs/guide/standards/.
> 
> 
> 
> Regards
>       Martin
> 
> --
> Martin Holz  <ho...@fiz-chemie.de>  phone: 0049-30-39977 218 
> FIZ CHEMIE BERLIN
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 


=====
Davanum Srinivas - http://jguru.com/dims/

__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org