You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Emre Tezel <em...@verizon.net> on 2002/05/09 07:24:40 UTC
Compile Error
Hi,
I get the following error when I try to compile cocoon 2.0.2
/usr/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language/markup/xsp/EsqlConnection.java:66:
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 {
There are 23 errors like this which complain about EsqlConnection class
does not implenet some java.sql.Connection interfaces. I checked the
class, it does implement. I am going insane, it used to compile.
Anyway, I attach the output of the build process that has all the errors.
Please help, I spent 3 days and still can't get the welcome page of cocoon !
Emre
Re: Compile Error
Posted by Carlos Araya <ca...@cvc.edu>.
Try using 1.3.X. As far as I can remember there's a problem with the JDBC
implementation of 1.4 being 3.0 and most of the code in Cocoon was 2.0.
Unless you're pretty sure of what you're doing, I would stick to 1.3 for any
servers running Tomcat/cocoon.
Carlos
On 05/08/02 22:24, "Emre Tezel" <em...@verizon.net> wrote:
> Hi,
>
> I get the following error when I try to compile cocoon 2.0.2
>
> /usr/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnection.java:66:
> 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 {
>
> There are 23 errors like this which complain about EsqlConnection class
> does not implenet some java.sql.Connection interfaces. I checked the
> class, it does implement. I am going insane, it used to compile.
>
> Anyway, I attach the output of the build process that has all the errors.
>
> Please help, I spent 3 days and still can't get the welcome page of cocoon !
>
> Emre
>
>
> Apache Cocoon Build System
> --------------------------
> Buildfile: build.xml
>
> init:
> --------------------------------------------------------------
> Apache Cocoon 2.0.2 [1999-2002]
> --------------------------------------------------------------
> Building with Ant version 1.4.1 compiled on October 11 2001
> using build file /usr/local/cocoon-2.0.2/build.xml
> --------------------------------------------------------------
>
> op-warning:
> **********************************************
> *
> * Classes of the optional package JFOR are not
> * available. Apache Cocoon builds without them.
> *
> * JFOR is required for the fo2rtf serializer.
> *
> * Recovery:
> * Get the JFOR package from http://www.jfor.org/ and place the jar in the
> lib/optional dir
> *
> ***********************************************
>
> op-warning:
> **********************************************
> *
> * Classes of the optional package PHP are not
> * available. Apache Cocoon builds without them.
> *
> * PHP is required for the php generator.
> *
> * Recovery:
> * Get the PHP servlet (phpsrvlt.jar) from http://www.php.net/ and place the
> jar in the lib/optional dir
> *
> ***********************************************
>
> op-warning:
> **********************************************
> *
> * Classes of the optional package JNDI are not
> * available. Apache Cocoon builds without them.
> *
> * JNDI is required for the ldap generator and the parentcm generator.
> *
> * Recovery:
> * Get the jndi.jar from Sun and place the jar in the lib/optional dir
> *
> ***********************************************
>
> compile:
> Compiling with Java 1.4, debug on, optimize off, deprecation off
> Compiling 573 source files to /usr/local/cocoon-2.0.2/build/cocoon/classes
> /usr/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnectionCocoon2.java:64: class
> org.apache.cocoon.components.language.markup.xsp.EsqlConnectionCocoon2 must be
> declared abstract. It does not define java.sql.Statement createStatement(int,
> int, int) from interface java.sql.Connection.
> public class EsqlConnectionCocoon2 extends EsqlConnection {
> ^
> /usr/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnectionCocoon2.java:64: class
> org.apache.cocoon.components.language.markup.xsp.EsqlConnectionCocoon2 must be
> declared abstract. It does not define void
> releaseSavepoint(java.sql.Savepoint) from interface java.sql.Connection.
> public class EsqlConnectionCocoon2 extends EsqlConnection {
> ^
> /usr/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnectionCocoon2.java:64: class
> org.apache.cocoon.components.language.markup.xsp.EsqlConnectionCocoon2 must be
> declared abstract. It does not define void rollback(java.sql.Savepoint) from
> interface java.sql.Connection.
> public class EsqlConnectionCocoon2 extends EsqlConnection {
> ^
> /usr/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnectionCocoon2.java:64: class
> org.apache.cocoon.components.language.markup.xsp.EsqlConnectionCocoon2 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 EsqlConnectionCocoon2 extends EsqlConnection {
> ^
> /usr/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnectionCocoon2.java:64: class
> org.apache.cocoon.components.language.markup.xsp.EsqlConnectionCocoon2 must be
> declared abstract. It does not define java.sql.PreparedStatement
> prepareStatement(java.lang.String, int) from interface java.sql.Connection.
> public class EsqlConnectionCocoon2 extends EsqlConnection {
> ^
> /usr/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnectionCocoon2.java:64: class
> org.apache.cocoon.components.language.markup.xsp.EsqlConnectionCocoon2 must be
> declared abstract. It does not define java.sql.PreparedStatement
> prepareStatement(java.lang.String, int[]) from interface java.sql.Connection.
> public class EsqlConnectionCocoon2 extends EsqlConnection {
> ^
> /usr/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnectionCocoon2.java:64: class
> org.apache.cocoon.components.language.markup.xsp.EsqlConnectionCocoon2 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 EsqlConnectionCocoon2 extends EsqlConnection {
> ^
> /usr/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnectionCocoon2.java:64: class
> org.apache.cocoon.components.language.markup.xsp.EsqlConnectionCocoon2 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 EsqlConnectionCocoon2 extends EsqlConnection {
> ^
> /usr/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnectionCocoon2.java:64: class
> org.apache.cocoon.components.language.markup.xsp.EsqlConnectionCocoon2 must be
> declared abstract. It does not define int getHoldability() from interface
> java.sql.Connection.
> public class EsqlConnectionCocoon2 extends EsqlConnection {
> ^
> /usr/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnectionCocoon2.java:64: class
> org.apache.cocoon.components.language.markup.xsp.EsqlConnectionCocoon2 must be
> declared abstract. It does not define java.sql.Savepoint setSavepoint() from
> interface java.sql.Connection.
> public class EsqlConnectionCocoon2 extends EsqlConnection {
> ^
> /usr/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnectionCocoon2.java:64: class
> org.apache.cocoon.components.language.markup.xsp.EsqlConnectionCocoon2 must be
> declared abstract. It does not define java.sql.Savepoint
> setSavepoint(java.lang.String) from interface java.sql.Connection.
> public class EsqlConnectionCocoon2 extends EsqlConnection {
> ^
> /usr/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnectionCocoon2.java:64: class
> org.apache.cocoon.components.language.markup.xsp.EsqlConnectionCocoon2 must be
> declared abstract. It does not define void setHoldability(int) from interface
> java.sql.Connection.
> public class EsqlConnectionCocoon2 extends EsqlConnection {
> ^
> /usr/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnection.java:66: 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/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnection.java:66: 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/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnection.java:66: 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 {
> ^
> /usr/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnection.java:66: 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/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnection.java:66: 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/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnection.java:66: 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/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnection.java:66: 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/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnection.java:66: 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/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnection.java:66: 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/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnection.java:66: 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/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnection.java:66: 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/local/cocoon-2.0.2/build/cocoon/src/org/apache/cocoon/components/language
> /markup/xsp/EsqlConnection.java:66: 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 {
> ^
> 24 errors
>
> Total time: 53 seconds
>
>
> ---------------------------------------------------------------------
> 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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
--
Carlos E. Araya
---+ WebCT Administrator/Trainer
P | California Virtual Campus
- | C/O De Anza College
G | 21250 Stevens Creek Blvd
---+ Cupertino, CA 95014
email carlos@cvc.edu
web http://www.cvc1.org/ (work)
http://www.silverwolf-net.net (personal)
phone 408 257 0420 (work)
PGP Fingerprint: E629 5DFD 7EAE 4995 E9D7 3D2F 5A9F 0CE7 DFE7 1756
"Do not meddle in the affairs of dragons....for you are crunchy and taste
good with ketchup and mayonnaise.."
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>