cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick.Pie...@linedata.com
Subject Re: could not build cocoon under jdk1.4.0 +ant 1.4.1
Date Thu, 06 Jun 2002 12:12:02 GMT

hi jack,

I had the same problem yesterday and Perry and Vadim has helped me to solve
it. Please see the solution below :

You can look back through the archives, for some details, but essentially
you need to locate the EsqlConnection.java (the error messages detail its
path). Then edit the file and remove the comments around the 20 or so
method
declarations at the end of that file - they'll match with the 24 errors
your
getting! Note that you edit the file under Cocoon/src... and not the one
under Cocoon/build/cocoon/src, the latter is overwritten by the former by
the build procedure, then rebuild. As Vadim has mentioned, you then need to
recompile the Excalibur stuff for JDBC if your using it. Except for
excalibur, this Cocoon bug may have been fixed in the current CVS, but I
haven't checked it.

That 's will solve your problem. Now i have another problem (see mail
Patrick Pierra : build cocoon)

java.net.MalformedURLException

I think you may will have the same after you solve the first. Please let me
inform in the evolution of your building cocoon...

Regards,


Patrick PIERRA
Linedata Services Luxembourg
00 352 29 56 65 282
patrick.pierra@linedata.com
www.linedata.com


                                                                                         
                          
                    "Jack Dong"                                                          
                          
                    <jdst12@sohu.        To:     <cocoon-users@xml.apache.org>  
                                   
                    com>                 cc:                                          
                             
                                         Subject:     could not build cocoon under jdk1.4.0
+ant 1.4.1              
                    06/06/02                                                             
                          
                    09:36 AM                                                             
                          
                    Please                                                               
                          
                    respond to                                                           
                          
                    cocoon-users                                                         
                          
                                                                                         
                          
                                                                                         
                          




hi, sirs

I used cocoon 2.0.2,

when I builded it, ant gave me the error below:

     [echo] Compiling with Java 1.4, debug on, optimize off, deprecation
off
    [javac] Compiling 361 source files to E:
\cocoon-2.0.2\build\cocoon\classes
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\markup\xsp\EsqlConnection.java:66: class
org.apache.cocoon.components.languag
e.markup.xsp.EsqlConnection must be declared abstract. It does not define
java.s
ql.Statement createStatement(int, int, int) from interface
java.sql.Connection.
    [javac] public class EsqlConnection implements Connection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\markup\xsp\EsqlConnection.java:66: class
org.apache.cocoon.components.languag
e.markup.xsp.EsqlConnection must be declared abstract. It does not define
java.s
ql.CallableStatement prepareCall(java.lang.String, int, int, int) from
interface
 java.sql.Connection.
    [javac] public class EsqlConnection implements Connection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\markup\xsp\EsqlConnection.java:66: class
org.apache.cocoon.components.languag
e.markup.xsp.EsqlConnection must be declared abstract. It does not define
void r
ollback(java.sql.Savepoint) from interface java.sql.Connection.
    [javac] public class EsqlConnection implements Connection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\markup\xsp\EsqlConnection.java:66: class
org.apache.cocoon.components.languag
e.markup.xsp.EsqlConnection must be declared abstract. It does not define
int ge
tHoldability() from interface java.sql.Connection.
    [javac] public class EsqlConnection implements Connection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\markup\xsp\EsqlConnection.java:66: class
org.apache.cocoon.components.languag
e.markup.xsp.EsqlConnection must be declared abstract. It does not define
java.s
ql.PreparedStatement prepareStatement(java.lang.String, int, int, int) from
inte
rface java.sql.Connection.
    [javac] public class EsqlConnection implements Connection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\markup\xsp\EsqlConnection.java:66: class
org.apache.cocoon.components.languag
e.markup.xsp.EsqlConnection must be declared abstract. It does not define
java.s
ql.PreparedStatement prepareStatement(java.lang.String, int) from interface
java
.sql.Connection.
    [javac] public class EsqlConnection implements Connection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\markup\xsp\EsqlConnection.java:66: class
org.apache.cocoon.components.languag
e.markup.xsp.EsqlConnection must be declared abstract. It does not define
java.s
ql.PreparedStatement prepareStatement(java.lang.String, int[]) from
interface ja
va.sql.Connection.
    [javac] public class EsqlConnection implements Connection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\markup\xsp\EsqlConnection.java:66: class
org.apache.cocoon.components.languag
e.markup.xsp.EsqlConnection must be declared abstract. It does not define
java.s
ql.PreparedStatement prepareStatement(java.lang.String, java.lang.String[])
from
 interface java.sql.Connection.
    [javac] public class EsqlConnection implements Connection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\markup\xsp\EsqlConnection.java:66: class
org.apache.cocoon.components.languag
e.markup.xsp.EsqlConnection must be declared abstract. It does not define
void s
etHoldability(int) from interface java.sql.Connection.
    [javac] public class EsqlConnection implements Connection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\markup\xsp\EsqlConnection.java:66: class
org.apache.cocoon.components.languag
e.markup.xsp.EsqlConnection must be declared abstract. It does not define
void r
eleaseSavepoint(java.sql.Savepoint) from interface java.sql.Connection.
    [javac] public class EsqlConnection implements Connection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\markup\xsp\EsqlConnection.java:66: class
org.apache.cocoon.components.languag
e.markup.xsp.EsqlConnection must be declared abstract. It does not define
java.s
ql.Savepoint setSavepoint() from interface java.sql.Connection.
    [javac] public class EsqlConnection implements Connection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\markup\xsp\EsqlConnection.java:66: class
org.apache.cocoon.components.languag
e.markup.xsp.EsqlConnection must be declared abstract. It does not define
java.s
ql.Savepoint setSavepoint(java.lang.String) from interface
java.sql.Connection.
    [javac] public class EsqlConnection implements Connection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\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.sq
l.Connection.
    [javac] public class EsqlConnectionCocoon2 extends EsqlConnection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\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.
    [javac] public class EsqlConnectionCocoon2 extends EsqlConnection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\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.
    [javac] public class EsqlConnectionCocoon2 extends EsqlConnection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\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.
    [javac] public class EsqlConnectionCocoon2 extends EsqlConnection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\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.
    [javac] public class EsqlConnectionCocoon2 extends EsqlConnection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\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.
    [javac] public class EsqlConnectionCocoon2 extends EsqlConnection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\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
[]) fro
m interface java.sql.Connection.
    [javac] public class EsqlConnectionCocoon2 extends EsqlConnection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\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.
    [javac] public class EsqlConnectionCocoon2 extends EsqlConnection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\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.
    [javac] public class EsqlConnectionCocoon2 extends EsqlConnection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\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.Connec
tion.
    [javac] public class EsqlConnectionCocoon2 extends EsqlConnection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\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.
    [javac] public class EsqlConnectionCocoon2 extends EsqlConnection {
    [javac]              ^
    [javac] E:
\cocoon-2.0.2\build\cocoon\src\org\apache\cocoon\components\langua
ge\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.sq
l.Connection.
    [javac] public class EsqlConnectionCocoon2 extends EsqlConnection {
    [javac]              ^
    [javac] 24 errors

BUILD FAILED


Why and what can I do?

regards

Jack Dong
jdst12@sohu.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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message