You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by David Forslund <dw...@lanl.gov> on 2004/06/29 07:09:18 UTC

RC7 compile failure.

Trying to compile OJB-1.0.rc7 gives the following:

main-opt:
    [javac] Compiling 553 source files to C:\Java\db-ojb-1.0.rc7\target\classes
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] Compiling 266 source files to C:\Java\db-ojb-1.0.rc7\target\classestest
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -deprecation for details.
    [javac] Compiling 85 source files to C:\Java\db-ojb-1.0.rc7\target\classestools
    [javac] Compiling 9 source files to C:\Java\db-ojb-1.0.rc7\target\classesjca

    [javac] C:\Java\db-ojb-1.0.rc7\target\srcjca\org\apache\ojb\otm\connector\OTMJCAManagedConnectionFactory.java:40: org.apache.ojb.otm.connector.OTMJCAManaged
ConnectionFactory is not abstract and does not override abstract method setResourceAdapter(javax.resource.spi.ResourceAdapter) in javax.resource.spi.ManagedConnectionFactory
    [javac] public class OTMJCAManagedConnectionFactory
    [javac]        ^
    [javac] 1 error

BUILD FAILED
C:\Java\db-ojb-1.0.rc7\build.xml:410: Following error occured while executing this line
C:\Java\db-ojb-1.0.rc7\build.xml:299: Compile failed; see the compiler error output for details.

Is there something else that I need to do get this to compile?  I'm trying to upgrade
my application from rc5 to rc7, but can't get rc7 to function at all.

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: RC7 compile failure.

Posted by Thomas Dudziak <to...@first.fhg.de>.
David Forslund wrote:

> I used the j2ee.jar that I had used in the previous ojb version (rc5).   I updated to the
> one from the current j2ee release (1.4) and it seems to compile.
> 
> Some documentation should exist indicating what is needed to accomplish the default build.
> The error message gives no clue that it is failing on creating the documentation, or what
> to do about it.

I agree that the doc need some fixing, and we'll update it once the 1.0 
is out.

Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: RC7 compile failure.

Posted by David Forslund <dw...@lanl.gov>.
I used the j2ee.jar that I had used in the previous ojb version (rc5).   I updated to the
one from the current j2ee release (1.4) and it seems to compile.

Some documentation should exist indicating what is needed to accomplish the default build.
The error message gives no clue that it is failing on creating the documentation, or what
to do about it.

Dave

> ------------Original Message------------
> From: Thomas Dudziak <to...@first.fhg.de>
> To: "OJB Users List" <oj...@db.apache.org>
> Date: Tue, Jun-29-2004 11:01 AM
> Subject: Re: RC7 compile failure.
> 
> David Forslund wrote:
> > I don't know.  The information only said that I needed a j2ee.jar, 
> not which one.  I don't see
> > much documentation on required libraries and which versions.  Also 
> now I'm seeing a complaint
> > about missing a forrest directory, but no mention that forrest is 
> needed for ojb.
> 
> Where did you get the j2ee.jar from ? Its only available as part of the 
> 
> J2EE SDK from Sun. Since 1.4 is too new, we recommend J2EE 1.3.
> You need Forrest if you want to build the OJB doc. If you can do 
> without 
> (the website should be sufficiently new), you should call 'ant 
> jar-debug' or 'ant jar' depending on whether you want debug info in the 
> 
> OJB classes.
> 
> Tom
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: RC7 compile failure.

Posted by Jim Theodoridis <oj...@tera.gr>.
Thomas Dudziak wrote:

> David Forslund wrote:
>
>> I don't know.  The information only said that I needed a j2ee.jar, 
>> not which one.  I don't see
>> much documentation on required libraries and which versions.  Also 
>> now I'm seeing a complaint
>> about missing a forrest directory, but no mention that forrest is 
>> needed for ojb.
>
>
> Where did you get the j2ee.jar from ? Its only available as part of 
> the J2EE SDK from Sun. Since 1.4 is too new, we recommend J2EE 1.3.
> You need Forrest if you want to build the OJB doc. If you can do 
> without (the website should be sufficiently new), you should call 'ant 
> jar-debug' or 'ant jar' depending on whether you want debug info in 
> the OJB classes.
>
> Tom
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
I Use j2ee.jar from j2sdkee1.3.1 with out problem


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: RC7 compile failure.

Posted by Thomas Dudziak <to...@first.fhg.de>.
David Forslund wrote:
> I don't know.  The information only said that I needed a j2ee.jar, not which one.  I don't see
> much documentation on required libraries and which versions.  Also now I'm seeing a complaint
> about missing a forrest directory, but no mention that forrest is needed for ojb.

Where did you get the j2ee.jar from ? Its only available as part of the 
J2EE SDK from Sun. Since 1.4 is too new, we recommend J2EE 1.3.
You need Forrest if you want to build the OJB doc. If you can do without 
(the website should be sufficiently new), you should call 'ant 
jar-debug' or 'ant jar' depending on whether you want debug info in the 
OJB classes.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: RC7 compile failure.

Posted by David Forslund <dw...@lanl.gov>.
I don't know.  The information only said that I needed a j2ee.jar, not which one.  I don't see
much documentation on required libraries and which versions.  Also now I'm seeing a complaint
about missing a forrest directory, but no mention that forrest is needed for ojb.

Dave

> ------------Original Message------------
> From: Thomas Dudziak <to...@first.fhg.de>
> To: "OJB Users List" <oj...@db.apache.org>
> Date: Mon, Jun-28-2004 11:45 PM
> Subject: Re: RC7 compile failure.
> 
> David Forslund wrote:
> > Trying to compile OJB-1.0.rc7 gives the following:
> > 
> > main-opt:
> >     [javac] Compiling 553 source files to 
> C:\Java\db-ojb-1.0.rc7\target\classes
> >     [javac] Note: Some input files use or override a deprecated API.
> >     [javac] Note: Recompile with -deprecation for details.
> >     [javac] Compiling 266 source files to 
> C:\Java\db-ojb-1.0.rc7\target\classestest
> >     [javac] Note: Some input files use or override a deprecated API.
> >     [javac] Note: Recompile with -deprecation for details.
> >     [javac] Compiling 85 source files to 
> C:\Java\db-ojb-1.0.rc7\target\classestools
> >     [javac] Compiling 9 source files to 
> C:\Java\db-ojb-1.0.rc7\target\classesjca
> > 
> >     [javac] 
> C:\Java\db-ojb-1.0.rc7\target\srcjca\org\apache\ojb\otm\connector\OTMJCAManagedConnectionFactory.java:40: 
> org.apache.ojb.otm.connector.OTMJCAManaged
> > ConnectionFactory is not abstract and does not override abstract 
> method setResourceAdapter(javax.resource.spi.ResourceAdapter) in 
> javax.resource.spi.ManagedConnectionFactory
> >     [javac] public class OTMJCAManagedConnectionFactory
> >     [javac]        ^
> >     [javac] 1 error
> > 
> > BUILD FAILED
> > C:\Java\db-ojb-1.0.rc7\build.xml:410: Following error occured while 
> executing this line
> > C:\Java\db-ojb-1.0.rc7\build.xml:299: Compile failed; see the 
> compiler error output for details.
> > 
> > Is there something else that I need to do get this to compile?  I'm 
> trying to upgrade
> > my application from rc5 to rc7, but can't get rc7 to function at all.
> 
> The problem is related to J2EE (javax.resource.spi). Which version of 
> J2EE do you use ? OJB should compile without problems against version 
> 1.3.
> 
> Tom
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: RC7 compile failure.

Posted by Thomas Dudziak <to...@first.fhg.de>.
David Forslund wrote:
> Trying to compile OJB-1.0.rc7 gives the following:
> 
> main-opt:
>     [javac] Compiling 553 source files to C:\Java\db-ojb-1.0.rc7\target\classes
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -deprecation for details.
>     [javac] Compiling 266 source files to C:\Java\db-ojb-1.0.rc7\target\classestest
>     [javac] Note: Some input files use or override a deprecated API.
>     [javac] Note: Recompile with -deprecation for details.
>     [javac] Compiling 85 source files to C:\Java\db-ojb-1.0.rc7\target\classestools
>     [javac] Compiling 9 source files to C:\Java\db-ojb-1.0.rc7\target\classesjca
> 
>     [javac] C:\Java\db-ojb-1.0.rc7\target\srcjca\org\apache\ojb\otm\connector\OTMJCAManagedConnectionFactory.java:40: org.apache.ojb.otm.connector.OTMJCAManaged
> ConnectionFactory is not abstract and does not override abstract method setResourceAdapter(javax.resource.spi.ResourceAdapter) in javax.resource.spi.ManagedConnectionFactory
>     [javac] public class OTMJCAManagedConnectionFactory
>     [javac]        ^
>     [javac] 1 error
> 
> BUILD FAILED
> C:\Java\db-ojb-1.0.rc7\build.xml:410: Following error occured while executing this line
> C:\Java\db-ojb-1.0.rc7\build.xml:299: Compile failed; see the compiler error output for details.
> 
> Is there something else that I need to do get this to compile?  I'm trying to upgrade
> my application from rc5 to rc7, but can't get rc7 to function at all.

The problem is related to J2EE (javax.resource.spi). Which version of 
J2EE do you use ? OJB should compile without problems against version 1.3.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org