I have the same problem.  I unzipped the ojb jar and the ojb src jar 
to the same (brand new) directory.  I run ant jar and I get this 
exception.

The code looks right, I can't explain it.  I'm not pointing to ojb in my 
environment classpath or anything like that.


C:\Java\api\jakarta-ojb-0.9.7\build.xml:147: Compile failed, 
messages should hav
e been provided.

Total time: 4 minutes 57 seconds
C:\Java\api\jakarta-ojb-0.9.7>ant jar
Buildfile: build.xml

set-archive-name:

set-archive-name-date:

detect-jdk:

use-jdk12:

use-jdk13:
     [echo] detected JDK 1.3

use-jdk14:

init:

prepare:

preprocess:
     [echo] using switches: +JDK13, -JDBC30
     [java] ....................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
...............................
     [java] ....................................................................
................................................................................
..................................................

main-opt:
    [javac] Compiling 579 source files to C:\Java\api\jakarta-ojb-
0.9.7\target\c
lasses
    [javac] C:\Java\api\jakarta-ojb-
0.9.7\target\src\org\apache\ojb\broker\acces
slayer\StatementsForClassImpl.java:108: incompatible types
    [javac] found   : 
org.apache.ojb.broker.accesslayer.sql.SqlGenerator
    [javac] required: org.apache.ojb.broker.accesslayer.SqlGenerator
    [javac]         sqlGenerator = 
SqlGeneratorFactory.getInstance().createSqlGe
nerator();
    [javac]
       ^
    [javac] Note: C:\Java\api\jakarta-ojb-
0.9.7\target\src\org\apache\ojb\broker
\util\pooling\WrappedPreparedStatement.java uses or overrides a 
deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] 1 error

BUILD FAILED

C:\Java\api\jakarta-ojb-0.9.7\build.xml:169: Compile failed, 
messages should hav
e been provided.

Total time: 2 minutes 1 second

On 23 Oct 2002 at 8:02, Thomas Mahler wrote:

> Hi,
> 
> The 0.9.7 release compiles fine and passes all JUnit tests on Linux and 
> Windows. I have tested it on several machines.
> 
> Your error seems to indicate that there are sources from several OJB 
> versions in your source tree. Some time ago the SqlGenerator stuff was 
> moved to a separate package ....sql.
> 
> cheers,
> Thomas
> 
> Van D. wrote:
> >  
> >  I installed ojb-0.9.7 and tried to run build.sh junit but got this incompatible 
>types error: [javac] 
>/home/van/OJB/jakarta-ojb-0.9.7/target/src/org/apache/ojb/broker/accesslayer/StatementsForClassImpl.java:108:
> incompatible types
> >     [javac] found   : org.apache.ojb.broker.accesslayer.sql.SqlGenerator
> >     [javac] required: org.apache.ojb.broker.accesslayer.SqlGenerator
> >     [javac]         sqlGenerator = 
>SqlGeneratorFactory.getInstance().createSqlGenerator();
> >     [javac]      any suggestions with be greatVan
> > 
> > 
> > ---------------------------------
> > Do you Yahoo!?
> > Y! Web Hosting - Let the expert host your web site
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>
> 




--
To unsubscribe, e-mail:   <mailto:ojb-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ojb-user-help@;jakarta.apache.org>

Reply via email to