|
Ok Cristopher ... you're all right !!!
I'm using iaik.ixsil.core.* ... it implies many
classes, and one of them is iaik.ixsil.core.Object, that conflicts with the
other object class.
Now, I have declared every iaik.ixsil.core.xxx
separately (does exist this word??)
Thanks a lot !!!
----- Original Message -----
Sent: Tuesday, September 30, 2003 5:30
PM
Subject: Re: ESQL conflict
It looks as if you have a java
import (or <xsp:include>) for a class named "Object" that isn't
java.lang.Object. E.g., "org.omg.CORBA.Object". In this case, the
compiler can't tell which Object the ESQL code is looking for. If the
other Object class is declared by you, there is an easy workaround:
don't import the class, but instead fully specify the class each time
you use it, e.g.,
instead of
<xsp:include>org.omg.CORBA.Object</xsp:include> .... Object blah;
do org.omg.CORBA.Object blah;
If you don't have control of the code
doing the import, then you'll have to patch something. It is fairly
straightforward to replace the ESQL logicsheet with your own copy of it, with
corrections. Write back if you need instructions for this
approach.
-Christopher
|
| "Josep Riudavets"
<[EMAIL PROTECTED]>
09/30/2003 10:44 AM Please respond to users
| To:
<[EMAIL PROTECTED]> cc:
Subject: ESQL
conflict |
Hello
... I'm trying to add into an XSP page esql taglibs. But when I
add the namespace <xmlns:esql="http://apache.org/cocoon/SQL/v2"> shows
next error message: org.apache.cocoon.components.language.LanguageException: Error
compiling procesa_xsp: ERROR 1
(org/apache/cocoon/www/XSP/procesa_xsp.java): ... private
SQLException _esql_exception = null; private StringWriter
_esql_exception_writer = null;
// start error (lines
159-159) "The type Object is ambiguous for the argument obj of the method
_esql_printObject" protected void
_esql_printObject ( Object obj, AttributesImpl xspAttr) throws
SAXException
// end error
{ if ( obj
instanceof List) { ListIterator
j=((List)obj).listIterator(); Cocoon.xconf: <builtin-logicsheet> <parameter name="prefix"
value="esql"/> <parameter name="uri"
value="http://apache.org/cocoon/SQL/v2"/> <parameter
name="href" value="resource://org/apache/cocoon/components/language/markup/xsp/java/esql.xsl"/> </builtin-logicsheet>
....
<datasources> <jdbc name="conexionBBDD"> <driver>org.postgresql.Driver</driver> <pool-controller> max="10"
min="5"</pool-controller> <dburl>jdbc:postgresql://localhosto:5432/CAD</dburl>
<user>josep</user> <password>mypassword</password> </jdbc> </datasources>
Web.xml <init-param>
<param-name>load-class</param-name> <param-value>org.postgresql.jar</param-value>
</init-param> File
postgresql.jar are placed under /WEB-INF/lib Best
regards
|