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 Da...@wellsfargo.com on 2003/08/08 23:24:03 UTC

Compile for JDK 1.3?

I am following the quickstart.html directions and trying to run "bin\build
junit" using JDK 1.3.1.  It looks like a targeted effort was made to get
this work with JDKs other than 1.4.  However, the compile fails due to a
dependency on a JDK 1.4 class.  Is this a bug? or must we use JDK 1.4 or
better.

The stack trace is as follows:

C:\db-ojb-1.0.rc4>bin\build junit
Buildfile: build.xml

splash:

set-archive-name:

set-archive-name-date:

detect-jdk:

check-jdk12proxy-classes:

check-jndi-classes:

use-jdk12:

use-jdk13:
     [echo] detected JDK 1.3

use-jdk14:

init:

prepare:
     [copy] Copying 586 files to C:\db-ojb-1.0.rc4\target\src
     [copy] Copying 259 files to C:\db-ojb-1.0.rc4\target\srctest
     [copy] Copying 10 files to C:\db-ojb-1.0.rc4\target\srcjca

check-j2ee-classes:

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

main:
    [javac] Compiling 549 source files to C:\db-ojb-1.0.rc4\target\classes
    [javac]
C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\MetadataObjectC
opyStrategy.java:69: cannot resolve symbol
    [javac] symbol  : class IdentityHashMap
    [javac] location: package util
    [javac] import java.util.IdentityHashMap;
    [javac]                  ^
    [javac]
C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\ReflectiveObjec
tCopyStrategy.java:68: cannot resolve symbol
    [javac] symbol  : class IdentityHashMap
    [javac] location: package util
    [javac] import java.util.IdentityHashMap;
    [javac]                  ^
    [javac]
C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\MetadataObjectC
opyStrategy.java:100: cannot resolve symbol
    [javac] symbol  : class IdentityHashMap
    [javac] location: class
org.apache.ojb.otm.copy.MetadataObjectCopyStrategy
    [javac]         return clone(obj, new IdentityHashMap(), broker);
    [javac]                               ^
    [javac]
C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\ReflectiveObjec
tCopyStrategy.java:108: cannot resolve symbol
    [javac] symbol  : class IdentityHashMap
    [javac] location: class
org.apache.ojb.otm.copy.ReflectiveObjectCopyStrategy

    [javac]             return clone(toCopy, new IdentityHashMap(), new
HashMap(
));
    [javac]                                          ^
    [javac] 4 errors

BUILD FAILED
file:C:/db-ojb-1.0.rc4/build.xml:218: Compile failed; see the compiler error
out
put for details.

Total time: 1 minute 9 seconds


> __________________________________________________
> Daniel B. Brown | WELLS FARGO BANK MINNESOTA, N.A. |
> Software Architect | http://www.wellsfargo.com  | MAC N2702-011 | 
> 9062 Old Annapolis Road | Columbia | MD | 21045-1951 | 
>         p: 410.884.2034 | f: 410.715.2325 | daniel.b.brown@wellsfargo.com
> |
> 

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


Re: Is it OK to use JDO now.

Posted by Alen Ribic <al...@mweb.co.za>.
I came from a JUG (CTJUG) meeting where JDO was the topic of the day.
We had Robin Roos as a guest speaker. (author of Java Data Objects book
(isbn: 0-321-12380-8) http://ogilviepartners.com/)
He himself indicated that the JDO RI is meant to be merely a working
implementation of a current specification.
So how reliable it is *for production environment* is a very good questions.
I myself wouldn't rely on reference implementation for production. ;)

Anyway from what I gather from meeting we had today, future of JDO 2.0 spec.
looks very promising! (Aggregation, standardised relational mapping, etc.)

--Alen


----- Original Message -----
From: "Antonio Gallardo" <ag...@agsoftware.dnsalias.com>
To: <oj...@db.apache.org>
Sent: Saturday, August 09, 2003 6:43 PM
Subject: Re: Is it OK to use JDO now.


> Hi:
>
> Short answer: Yes, you can use it.
>
> Long answer:
>
> I think the statement below must be rewrote, because I had the same
> question as you some days ago. :)
>
> OJB already work with JDO. You can use it. Currently, the OJB support for
> JDO is full working. OJB currenlty use the Sun JDO implementation. But we
> cannot bundle Sun JDO implementation with OJB for License problems. You
> need to download it from the Sun website.
>
> This is one of the reasons why one of the OJB community's targets for OJB
> version 2.0 is to release his own JDO Implementation.
>
> I think as JDO is a standard, then OJB JDO implementation will be
> compatible. Please also beaware that currenlty is a discussion of the JDO
> 2.0. If the OJB community prefer to target JDO 2.0 instead of JDO 1.0
> maybe there can be some problems. I dont know if there is a compatibility
> requirement.
>
> Best Regards,
>
> Antonio Gallardo
>
> The idea is to
>
> Wara Songkran dijo:
> > Hi.
> >
> > In the OJB site it said
> >
> > "We currently provide a plugin to the JDO Reference
> > Implementation ...  A full JDO implementation is
> > scheduled for OJB 2.0"
> >
> > I wondered, what is the different between JDO
> > Reference Implementation ant JDO implementation.  Is
> > it ok if I use JDO Reference Implementation in my
> > application right now.  Do I need to change my code in
> > the future if OJB 2.0 is completed. Please enlighten
> > me.
> >
> > Cheers.
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site design software
> > http://sitebuilder.yahoo.com
> >
> > --------------------------------------------------------------------- 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
>


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


Re: Is it OK to use JDO now.

Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Hi:

Short answer: Yes, you can use it.

Long answer:

I think the statement below must be rewrote, because I had the same
question as you some days ago. :)

OJB already work with JDO. You can use it. Currently, the OJB support for
JDO is full working. OJB currenlty use the Sun JDO implementation. But we
cannot bundle Sun JDO implementation with OJB for License problems. You
need to download it from the Sun website.

This is one of the reasons why one of the OJB community's targets for OJB
version 2.0 is to release his own JDO Implementation.

I think as JDO is a standard, then OJB JDO implementation will be
compatible. Please also beaware that currenlty is a discussion of the JDO
2.0. If the OJB community prefer to target JDO 2.0 instead of JDO 1.0
maybe there can be some problems. I dont know if there is a compatibility
requirement.

Best Regards,

Antonio Gallardo

The idea is to

Wara Songkran dijo:
> Hi.
>
> In the OJB site it said
>
> "We currently provide a plugin to the JDO Reference
> Implementation ...  A full JDO implementation is
> scheduled for OJB 2.0"
>
> I wondered, what is the different between JDO
> Reference Implementation ant JDO implementation.  Is
> it ok if I use JDO Reference Implementation in my
> application right now.  Do I need to change my code in
> the future if OJB 2.0 is completed. Please enlighten
> me.
>
> Cheers.
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> --------------------------------------------------------------------- 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: Is it OK to use JDO now.

Posted by Brian McCallister <mc...@forthillcompany.com>.
The JDORI is not licensed, by Sun, for commercial use. Other than that 
it works fine. It isn't tested as thoroughly as the PB and ODMG api's, 
so there may be things hiding.

-Brian

On Saturday, August 9, 2003, at 12:28 PM, Wara Songkran wrote:

> Hi.
>
> In the OJB site it said
>
> "We currently provide a plugin to the JDO Reference
> Implementation ...  A full JDO implementation is
> scheduled for OJB 2.0"
>
> I wondered, what is the different between JDO
> Reference Implementation ant JDO implementation.  Is
> it ok if I use JDO Reference Implementation in my
> application right now.  Do I need to change my code in
> the future if OJB 2.0 is completed. Please enlighten
> me.
>
> Cheers.
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> ---------------------------------------------------------------------
> 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


Is it OK to use JDO now.

Posted by Wara Songkran <pa...@yahoo.com>.
Hi.

In the OJB site it said

"We currently provide a plugin to the JDO Reference
Implementation ...  A full JDO implementation is
scheduled for OJB 2.0"

I wondered, what is the different between JDO
Reference Implementation ant JDO implementation.  Is
it ok if I use JDO Reference Implementation in my
application right now.  Do I need to change my code in
the future if OJB 2.0 is completed. Please enlighten
me.

Cheers.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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


Re: Compile for JDK 1.3?

Posted by Armin Waibel <ar...@code-au-lait.de>.
----- Original Message -----
From: "Clay Mitchell" <cl...@pfd.net>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Sunday, August 10, 2003 3:43 PM
Subject: Re: Compile for JDK 1.3?


> Any idea how long that will take to get in there? I could really use
it
> now :)
>
hmm, I don't know. If there no pitfals
a few days, but if there ...
This stuff isn't my special subject.

regards,
Armin

> -Clay
>
> Armin Waibel wrote:
>
> > ----- Original Message -----
> > From: "Clay Mitchell" <cl...@pfd.net>
> > To: "OJB Users List" <oj...@db.apache.org>
> > Sent: Sunday, August 10, 2003 3:37 PM
> > Subject: Re: Compile for JDK 1.3?
> >
> >
> >
> >>Is the BOOLEAN type supported in OJB? I just tried to use it (with
JDK
> >
> >
> > Currently not supported, but it's on my TODO list.
> >
> > regards,
> > Armin
> >
> >
> >>1.4.1) and it gave me this:
> >>
> >>org.apache.ojb.broker.OJBRuntimeException: The type BOOLEAN for
> >>attribute distributor can not be handled by OJB. Please specify only
> >>types as defined by java.sql.Types.
> >>
> >>Thanks
> >>-Clay
> >>
> >>Thomas Mahler wrote:
> >>
> >>>fixed in CVS !
> >>>
> >>>Armin Waibel wrote:
> >>>
> >>>
> >>>>Hi Ron,
> >>>>
> >>>>arrgh! Types.BOOLEAN (and DATALINK too)
> >>>>introduced since 1.4, so we need a code switcher
> >>>>entry here.
> >>>>I will fix this ASAP.
> >>>>
> >>>>regards,
> >>>>Armin
> >>>>
> >>
> >>
> >>
>
>>---------------------------------------------------------------------
> >>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
> >
> >
> >
> >
>
>
>
>
> ---------------------------------------------------------------------
> 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: Compile for JDK 1.3?

Posted by Clay Mitchell <cl...@pfd.net>.
Any idea how long that will take to get in there? I could really use it 
now :)

-Clay

Armin Waibel wrote:

> ----- Original Message -----
> From: "Clay Mitchell" <cl...@pfd.net>
> To: "OJB Users List" <oj...@db.apache.org>
> Sent: Sunday, August 10, 2003 3:37 PM
> Subject: Re: Compile for JDK 1.3?
> 
> 
> 
>>Is the BOOLEAN type supported in OJB? I just tried to use it (with JDK
> 
> 
> Currently not supported, but it's on my TODO list.
> 
> regards,
> Armin
> 
> 
>>1.4.1) and it gave me this:
>>
>>org.apache.ojb.broker.OJBRuntimeException: The type BOOLEAN for
>>attribute distributor can not be handled by OJB. Please specify only
>>types as defined by java.sql.Types.
>>
>>Thanks
>>-Clay
>>
>>Thomas Mahler wrote:
>>
>>>fixed in CVS !
>>>
>>>Armin Waibel wrote:
>>>
>>>
>>>>Hi Ron,
>>>>
>>>>arrgh! Types.BOOLEAN (and DATALINK too)
>>>>introduced since 1.4, so we need a code switcher
>>>>entry here.
>>>>I will fix this ASAP.
>>>>
>>>>regards,
>>>>Armin
>>>>
>>
>>
>>
>>---------------------------------------------------------------------
>>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
> 
> 
> 
> 




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


Re: Compile for JDK 1.3?

Posted by Armin Waibel <ar...@code-au-lait.de>.
----- Original Message -----
From: "Clay Mitchell" <cl...@pfd.net>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Sunday, August 10, 2003 3:37 PM
Subject: Re: Compile for JDK 1.3?


> Is the BOOLEAN type supported in OJB? I just tried to use it (with JDK

Currently not supported, but it's on my TODO list.

regards,
Armin

> 1.4.1) and it gave me this:
>
> org.apache.ojb.broker.OJBRuntimeException: The type BOOLEAN for
> attribute distributor can not be handled by OJB. Please specify only
> types as defined by java.sql.Types.
>
> Thanks
> -Clay
>
> Thomas Mahler wrote:
> > fixed in CVS !
> >
> > Armin Waibel wrote:
> >
> >> Hi Ron,
> >>
> >> arrgh! Types.BOOLEAN (and DATALINK too)
> >> introduced since 1.4, so we need a code switcher
> >> entry here.
> >> I will fix this ASAP.
> >>
> >> regards,
> >> Armin
> >>
>
>
>
> ---------------------------------------------------------------------
> 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: Compile for JDK 1.3?

Posted by Clay Mitchell <cl...@pfd.net>.
Is the BOOLEAN type supported in OJB? I just tried to use it (with JDK 
1.4.1) and it gave me this:

org.apache.ojb.broker.OJBRuntimeException: The type BOOLEAN for 
attribute distributor can not be handled by OJB. Please specify only 
types as defined by java.sql.Types.

Thanks
-Clay

Thomas Mahler wrote:
> fixed in CVS !
> 
> Armin Waibel wrote:
> 
>> Hi Ron,
>>
>> arrgh! Types.BOOLEAN (and DATALINK too)
>> introduced since 1.4, so we need a code switcher
>> entry here.
>> I will fix this ASAP.
>>
>> regards,
>> Armin
>>



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


Re: Compile for JDK 1.3?

Posted by Thomas Mahler <th...@web.de>.
fixed in CVS !

Armin Waibel wrote:
> Hi Ron,
> 
> arrgh! Types.BOOLEAN (and DATALINK too)
> introduced since 1.4, so we need a code switcher
> entry here.
> I will fix this ASAP.
> 
> regards,
> Armin
> 
> ----- Original Message -----
> From: "Ron Gallagher" <ro...@bellsouth.net>
> To: "OJB Users List" <oj...@db.apache.org>
> Sent: Sunday, August 10, 2003 2:52 AM
> Subject: RE: Compile for JDK 1.3?
> 
> 
> 
>>There's another jdk 1.3 compile problem related to the recent changes
> 
> to
> 
>>FieldDescriptor:
>>
>>preprocess:
>>     [echo] using switches: +JDK13, -JDBC30
>>     [java]
>>
> 
> ........................................................................
> ....
> 
>>................................
>>main:
>>    [javac] Compiling 502 source files to
>>C:\temp\OpenSource\db-ojb\target\classes
>>    [javac]
>>
> 
> C:\temp\OpenSource\db-ojb\target\src\org\apache\ojb\broker\metadata\Fiel
> dDes
> 
>>criptor.java:218: cannot resolve  symbol
>>    [javac] symbol  : variable BOOLEAN
>>    [javac] location: class java.sql.Types
>>    [javac]                 result = Types.BOOLEAN;
>>    [javac]                               ^
>>    [javac] 1 error
>>
>>Ron Gallagher
>>Atlanta, GA
>>rongallagher@bellsouth.net
>>
>>-----Original Message-----
>>From: thma32@web.de [mailto:thma32@web.de]
>>Sent: Saturday, August 09, 2003 11:58 AM
>>To: OJB Users List
>>Subject: Re: Compile for JDK 1.3?
>>
>>
>>Hi Daniel,
>>
>>It's a slip with the RC4 releas. we normally provide build
> 
> compatibility
> 
>>for jdk 1.2, 1.3 and 1.4.
>>You can either use JDK 1.4
>>or remove the source package o.a.ojb.otm to work around this issue.
>>Will be fixed with next public release.
>>
>>cheers,
>>Thomas
>>
>>Daniel.B.Brown@wellsfargo.com wrote:
>>
>>>I am following the quickstart.html directions and trying to run
> 
> "bin\build
> 
>>>junit" using JDK 1.3.1.  It looks like a targeted effort was made to
> 
> get
> 
>>>this work with JDKs other than 1.4.  However, the compile fails due
> 
> to a
> 
>>>dependency on a JDK 1.4 class.  Is this a bug? or must we use JDK
> 
> 1.4 or
> 
>>>better.
>>>
>>>The stack trace is as follows:
>>>
>>>C:\db-ojb-1.0.rc4>bin\build junit
>>>Buildfile: build.xml
>>>
>>>splash:
>>>
>>>set-archive-name:
>>>
>>>set-archive-name-date:
>>>
>>>detect-jdk:
>>>
>>>check-jdk12proxy-classes:
>>>
>>>check-jndi-classes:
>>>
>>>use-jdk12:
>>>
>>>use-jdk13:
>>>     [echo] detected JDK 1.3
>>>
>>>use-jdk14:
>>>
>>>init:
>>>
>>>prepare:
>>>     [copy] Copying 586 files to C:\db-ojb-1.0.rc4\target\src
>>>     [copy] Copying 259 files to C:\db-ojb-1.0.rc4\target\srctest
>>>     [copy] Copying 10 files to C:\db-ojb-1.0.rc4\target\srcjca
>>>
>>>check-j2ee-classes:
>>>
>>>preprocess:
>>>     [echo] using switches: +JDK13, -JDBC30
>>>     [java]
>>>....................................................................
>>>
>>
> ........................................................................
> ....
> 
>>>....
>>>
>>
> ........................................................................
> ....
> 
>>>....
>>>
>>
> ........................................................................
> ....
> 
>>>....
>>>
>>
> ........................................................................
> ....
> 
>>>....
>>>
>>
> ........................................................................
> ....
> 
>>>....
>>>
>>
> ........................................................................
> ....
> 
>>>....
>>>.
>>>     [java]
>>>....................................................................
>>>
>>
> ........................................................................
> ....
> 
>>>....
>>>
>>
> ........................................................................
> ....
> 
>>>....
>>>...............................
>>>
>>>main:
>>>    [javac] Compiling 549 source files to
> 
> C:\db-ojb-1.0.rc4\target\classes
> 
>>>    [javac]
>>>C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\MetadataObjectC
>>>opyStrategy.java:69: cannot resolve symbol
>>>    [javac] symbol  : class IdentityHashMap
>>>    [javac] location: package util
>>>    [javac] import java.util.IdentityHashMap;
>>>    [javac]                  ^
>>>    [javac]
>>>C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\ReflectiveObjec
>>>tCopyStrategy.java:68: cannot resolve symbol
>>>    [javac] symbol  : class IdentityHashMap
>>>    [javac] location: package util
>>>    [javac] import java.util.IdentityHashMap;
>>>    [javac]                  ^
>>>    [javac]
>>>C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\MetadataObjectC
>>>opyStrategy.java:100: cannot resolve symbol
>>>    [javac] symbol  : class IdentityHashMap
>>>    [javac] location: class
>>>org.apache.ojb.otm.copy.MetadataObjectCopyStrategy
>>>    [javac]         return clone(obj, new IdentityHashMap(),
> 
> broker);
> 
>>>    [javac]                               ^
>>>    [javac]
>>>C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\ReflectiveObjec
>>>tCopyStrategy.java:108: cannot resolve symbol
>>>    [javac] symbol  : class IdentityHashMap
>>>    [javac] location: class
>>>org.apache.ojb.otm.copy.ReflectiveObjectCopyStrategy
>>>
>>>    [javac]             return clone(toCopy, new IdentityHashMap(),
> 
> new
> 
>>>HashMap(
>>>));
>>>    [javac]                                          ^
>>>    [javac] 4 errors
>>>
>>>BUILD FAILED
>>>file:C:/db-ojb-1.0.rc4/build.xml:218: Compile failed; see the
> 
> compiler
> 
>>error
>>
>>>out
>>>put for details.
>>>
>>>Total time: 1 minute 9 seconds
>>>
>>>
>>>
>>>
>>>>__________________________________________________
>>>>Daniel B. Brown | WELLS FARGO BANK MINNESOTA, N.A. |
>>>>Software Architect | http://www.wellsfargo.com  | MAC N2702-011 |
>>>>9062 Old Annapolis Road | Columbia | MD | 21045-1951 |
>>>>       p: 410.884.2034 | f: 410.715.2325 |
> 
> daniel.b.brown@wellsfargo.com
> 
>>>>|
>>>>
>>>
>>>
>>---------------------------------------------------------------------
>>
>>>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
>>
>>
>>
>>---------------------------------------------------------------------
>>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
> 
> 


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


Re: Compile for JDK 1.3?

Posted by Armin Waibel <ar...@code-au-lait.de>.
Hi Ron,

arrgh! Types.BOOLEAN (and DATALINK too)
introduced since 1.4, so we need a code switcher
entry here.
I will fix this ASAP.

regards,
Armin

----- Original Message -----
From: "Ron Gallagher" <ro...@bellsouth.net>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Sunday, August 10, 2003 2:52 AM
Subject: RE: Compile for JDK 1.3?


> There's another jdk 1.3 compile problem related to the recent changes
to
> FieldDescriptor:
>
> preprocess:
>      [echo] using switches: +JDK13, -JDBC30
>      [java]
>
........................................................................
....
> ................................
> main:
>     [javac] Compiling 502 source files to
> C:\temp\OpenSource\db-ojb\target\classes
>     [javac]
>
C:\temp\OpenSource\db-ojb\target\src\org\apache\ojb\broker\metadata\Fiel
dDes
> criptor.java:218: cannot resolve  symbol
>     [javac] symbol  : variable BOOLEAN
>     [javac] location: class java.sql.Types
>     [javac]                 result = Types.BOOLEAN;
>     [javac]                               ^
>     [javac] 1 error
>
> Ron Gallagher
> Atlanta, GA
> rongallagher@bellsouth.net
>
> -----Original Message-----
> From: thma32@web.de [mailto:thma32@web.de]
> Sent: Saturday, August 09, 2003 11:58 AM
> To: OJB Users List
> Subject: Re: Compile for JDK 1.3?
>
>
> Hi Daniel,
>
> It's a slip with the RC4 releas. we normally provide build
compatibility
> for jdk 1.2, 1.3 and 1.4.
> You can either use JDK 1.4
> or remove the source package o.a.ojb.otm to work around this issue.
> Will be fixed with next public release.
>
> cheers,
> Thomas
>
> Daniel.B.Brown@wellsfargo.com wrote:
> > I am following the quickstart.html directions and trying to run
"bin\build
> > junit" using JDK 1.3.1.  It looks like a targeted effort was made to
get
> > this work with JDKs other than 1.4.  However, the compile fails due
to a
> > dependency on a JDK 1.4 class.  Is this a bug? or must we use JDK
1.4 or
> > better.
> >
> > The stack trace is as follows:
> >
> > C:\db-ojb-1.0.rc4>bin\build junit
> > Buildfile: build.xml
> >
> > splash:
> >
> > set-archive-name:
> >
> > set-archive-name-date:
> >
> > detect-jdk:
> >
> > check-jdk12proxy-classes:
> >
> > check-jndi-classes:
> >
> > use-jdk12:
> >
> > use-jdk13:
> >      [echo] detected JDK 1.3
> >
> > use-jdk14:
> >
> > init:
> >
> > prepare:
> >      [copy] Copying 586 files to C:\db-ojb-1.0.rc4\target\src
> >      [copy] Copying 259 files to C:\db-ojb-1.0.rc4\target\srctest
> >      [copy] Copying 10 files to C:\db-ojb-1.0.rc4\target\srcjca
> >
> > check-j2ee-classes:
> >
> > preprocess:
> >      [echo] using switches: +JDK13, -JDBC30
> >      [java]
> > ....................................................................
> >
>
........................................................................
....
> > ....
> >
>
........................................................................
....
> > ....
> >
>
........................................................................
....
> > ....
> >
>
........................................................................
....
> > ....
> >
>
........................................................................
....
> > ....
> >
>
........................................................................
....
> > ....
> > .
> >      [java]
> > ....................................................................
> >
>
........................................................................
....
> > ....
> >
>
........................................................................
....
> > ....
> > ...............................
> >
> > main:
> >     [javac] Compiling 549 source files to
C:\db-ojb-1.0.rc4\target\classes
> >     [javac]
> > C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\MetadataObjectC
> > opyStrategy.java:69: cannot resolve symbol
> >     [javac] symbol  : class IdentityHashMap
> >     [javac] location: package util
> >     [javac] import java.util.IdentityHashMap;
> >     [javac]                  ^
> >     [javac]
> > C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\ReflectiveObjec
> > tCopyStrategy.java:68: cannot resolve symbol
> >     [javac] symbol  : class IdentityHashMap
> >     [javac] location: package util
> >     [javac] import java.util.IdentityHashMap;
> >     [javac]                  ^
> >     [javac]
> > C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\MetadataObjectC
> > opyStrategy.java:100: cannot resolve symbol
> >     [javac] symbol  : class IdentityHashMap
> >     [javac] location: class
> > org.apache.ojb.otm.copy.MetadataObjectCopyStrategy
> >     [javac]         return clone(obj, new IdentityHashMap(),
broker);
> >     [javac]                               ^
> >     [javac]
> > C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\ReflectiveObjec
> > tCopyStrategy.java:108: cannot resolve symbol
> >     [javac] symbol  : class IdentityHashMap
> >     [javac] location: class
> > org.apache.ojb.otm.copy.ReflectiveObjectCopyStrategy
> >
> >     [javac]             return clone(toCopy, new IdentityHashMap(),
new
> > HashMap(
> > ));
> >     [javac]                                          ^
> >     [javac] 4 errors
> >
> > BUILD FAILED
> > file:C:/db-ojb-1.0.rc4/build.xml:218: Compile failed; see the
compiler
> error
> > out
> > put for details.
> >
> > Total time: 1 minute 9 seconds
> >
> >
> >
> >>__________________________________________________
> >>Daniel B. Brown | WELLS FARGO BANK MINNESOTA, N.A. |
> >>Software Architect | http://www.wellsfargo.com  | MAC N2702-011 |
> >>9062 Old Annapolis Road | Columbia | MD | 21045-1951 |
> >>        p: 410.884.2034 | f: 410.715.2325 |
daniel.b.brown@wellsfargo.com
> >>|
> >>
> >
> >
>
> ---------------------------------------------------------------------
> > 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
>
>
>
> ---------------------------------------------------------------------
> 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: Compile for JDK 1.3?

Posted by Ron Gallagher <ro...@bellsouth.net>.
There's another jdk 1.3 compile problem related to the recent changes to
FieldDescriptor:

preprocess:
     [echo] using switches: +JDK13, -JDBC30
     [java]
............................................................................
................................
main:
    [javac] Compiling 502 source files to
C:\temp\OpenSource\db-ojb\target\classes
    [javac]
C:\temp\OpenSource\db-ojb\target\src\org\apache\ojb\broker\metadata\FieldDes
criptor.java:218: cannot resolve  symbol
    [javac] symbol  : variable BOOLEAN
    [javac] location: class java.sql.Types
    [javac]                 result = Types.BOOLEAN;
    [javac]                               ^
    [javac] 1 error

Ron Gallagher
Atlanta, GA
rongallagher@bellsouth.net

-----Original Message-----
From: thma32@web.de [mailto:thma32@web.de]
Sent: Saturday, August 09, 2003 11:58 AM
To: OJB Users List
Subject: Re: Compile for JDK 1.3?


Hi Daniel,

It's a slip with the RC4 releas. we normally provide build compatibility
for jdk 1.2, 1.3 and 1.4.
You can either use JDK 1.4
or remove the source package o.a.ojb.otm to work around this issue.
Will be fixed with next public release.

cheers,
Thomas

Daniel.B.Brown@wellsfargo.com wrote:
> I am following the quickstart.html directions and trying to run "bin\build
> junit" using JDK 1.3.1.  It looks like a targeted effort was made to get
> this work with JDKs other than 1.4.  However, the compile fails due to a
> dependency on a JDK 1.4 class.  Is this a bug? or must we use JDK 1.4 or
> better.
>
> The stack trace is as follows:
>
> C:\db-ojb-1.0.rc4>bin\build junit
> Buildfile: build.xml
>
> splash:
>
> set-archive-name:
>
> set-archive-name-date:
>
> detect-jdk:
>
> check-jdk12proxy-classes:
>
> check-jndi-classes:
>
> use-jdk12:
>
> use-jdk13:
>      [echo] detected JDK 1.3
>
> use-jdk14:
>
> init:
>
> prepare:
>      [copy] Copying 586 files to C:\db-ojb-1.0.rc4\target\src
>      [copy] Copying 259 files to C:\db-ojb-1.0.rc4\target\srctest
>      [copy] Copying 10 files to C:\db-ojb-1.0.rc4\target\srcjca
>
> check-j2ee-classes:
>
> preprocess:
>      [echo] using switches: +JDK13, -JDBC30
>      [java]
> ....................................................................
>
............................................................................
> ....
>
............................................................................
> ....
>
............................................................................
> ....
>
............................................................................
> ....
>
............................................................................
> ....
>
............................................................................
> ....
> .
>      [java]
> ....................................................................
>
............................................................................
> ....
>
............................................................................
> ....
> ...............................
>
> main:
>     [javac] Compiling 549 source files to C:\db-ojb-1.0.rc4\target\classes
>     [javac]
> C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\MetadataObjectC
> opyStrategy.java:69: cannot resolve symbol
>     [javac] symbol  : class IdentityHashMap
>     [javac] location: package util
>     [javac] import java.util.IdentityHashMap;
>     [javac]                  ^
>     [javac]
> C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\ReflectiveObjec
> tCopyStrategy.java:68: cannot resolve symbol
>     [javac] symbol  : class IdentityHashMap
>     [javac] location: package util
>     [javac] import java.util.IdentityHashMap;
>     [javac]                  ^
>     [javac]
> C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\MetadataObjectC
> opyStrategy.java:100: cannot resolve symbol
>     [javac] symbol  : class IdentityHashMap
>     [javac] location: class
> org.apache.ojb.otm.copy.MetadataObjectCopyStrategy
>     [javac]         return clone(obj, new IdentityHashMap(), broker);
>     [javac]                               ^
>     [javac]
> C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\ReflectiveObjec
> tCopyStrategy.java:108: cannot resolve symbol
>     [javac] symbol  : class IdentityHashMap
>     [javac] location: class
> org.apache.ojb.otm.copy.ReflectiveObjectCopyStrategy
>
>     [javac]             return clone(toCopy, new IdentityHashMap(), new
> HashMap(
> ));
>     [javac]                                          ^
>     [javac] 4 errors
>
> BUILD FAILED
> file:C:/db-ojb-1.0.rc4/build.xml:218: Compile failed; see the compiler
error
> out
> put for details.
>
> Total time: 1 minute 9 seconds
>
>
>
>>__________________________________________________
>>Daniel B. Brown | WELLS FARGO BANK MINNESOTA, N.A. |
>>Software Architect | http://www.wellsfargo.com  | MAC N2702-011 |
>>9062 Old Annapolis Road | Columbia | MD | 21045-1951 |
>>        p: 410.884.2034 | f: 410.715.2325 | daniel.b.brown@wellsfargo.com
>>|
>>
>
>
> ---------------------------------------------------------------------
> 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



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


Re: Compile for JDK 1.3?

Posted by Thomas Mahler <th...@web.de>.
Hi Daniel,

It's a slip with the RC4 releas. we normally provide build compatibility 
for jdk 1.2, 1.3 and 1.4.
You can either use JDK 1.4
or remove the source package o.a.ojb.otm to work around this issue.
Will be fixed with next public release.

cheers,
Thomas

Daniel.B.Brown@wellsfargo.com wrote:
> I am following the quickstart.html directions and trying to run "bin\build
> junit" using JDK 1.3.1.  It looks like a targeted effort was made to get
> this work with JDKs other than 1.4.  However, the compile fails due to a
> dependency on a JDK 1.4 class.  Is this a bug? or must we use JDK 1.4 or
> better.
> 
> The stack trace is as follows:
> 
> C:\db-ojb-1.0.rc4>bin\build junit
> Buildfile: build.xml
> 
> splash:
> 
> set-archive-name:
> 
> set-archive-name-date:
> 
> detect-jdk:
> 
> check-jdk12proxy-classes:
> 
> check-jndi-classes:
> 
> use-jdk12:
> 
> use-jdk13:
>      [echo] detected JDK 1.3
> 
> use-jdk14:
> 
> init:
> 
> prepare:
>      [copy] Copying 586 files to C:\db-ojb-1.0.rc4\target\src
>      [copy] Copying 259 files to C:\db-ojb-1.0.rc4\target\srctest
>      [copy] Copying 10 files to C:\db-ojb-1.0.rc4\target\srcjca
> 
> check-j2ee-classes:
> 
> preprocess:
>      [echo] using switches: +JDK13, -JDBC30
>      [java]
> ....................................................................
> ............................................................................
> ....
> ............................................................................
> ....
> ............................................................................
> ....
> ............................................................................
> ....
> ............................................................................
> ....
> ............................................................................
> ....
> .
>      [java]
> ....................................................................
> ............................................................................
> ....
> ............................................................................
> ....
> ...............................
> 
> main:
>     [javac] Compiling 549 source files to C:\db-ojb-1.0.rc4\target\classes
>     [javac]
> C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\MetadataObjectC
> opyStrategy.java:69: cannot resolve symbol
>     [javac] symbol  : class IdentityHashMap
>     [javac] location: package util
>     [javac] import java.util.IdentityHashMap;
>     [javac]                  ^
>     [javac]
> C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\ReflectiveObjec
> tCopyStrategy.java:68: cannot resolve symbol
>     [javac] symbol  : class IdentityHashMap
>     [javac] location: package util
>     [javac] import java.util.IdentityHashMap;
>     [javac]                  ^
>     [javac]
> C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\MetadataObjectC
> opyStrategy.java:100: cannot resolve symbol
>     [javac] symbol  : class IdentityHashMap
>     [javac] location: class
> org.apache.ojb.otm.copy.MetadataObjectCopyStrategy
>     [javac]         return clone(obj, new IdentityHashMap(), broker);
>     [javac]                               ^
>     [javac]
> C:\db-ojb-1.0.rc4\target\src\org\apache\ojb\otm\copy\ReflectiveObjec
> tCopyStrategy.java:108: cannot resolve symbol
>     [javac] symbol  : class IdentityHashMap
>     [javac] location: class
> org.apache.ojb.otm.copy.ReflectiveObjectCopyStrategy
> 
>     [javac]             return clone(toCopy, new IdentityHashMap(), new
> HashMap(
> ));
>     [javac]                                          ^
>     [javac] 4 errors
> 
> BUILD FAILED
> file:C:/db-ojb-1.0.rc4/build.xml:218: Compile failed; see the compiler error
> out
> put for details.
> 
> Total time: 1 minute 9 seconds
> 
> 
> 
>>__________________________________________________
>>Daniel B. Brown | WELLS FARGO BANK MINNESOTA, N.A. |
>>Software Architect | http://www.wellsfargo.com  | MAC N2702-011 | 
>>9062 Old Annapolis Road | Columbia | MD | 21045-1951 | 
>>        p: 410.884.2034 | f: 410.715.2325 | daniel.b.brown@wellsfargo.com
>>|
>>
> 
> 
> ---------------------------------------------------------------------
> 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