Issue Details (XML | Word | Printable)

Key: JDO-360
Type: Task Task
Status: Resolved Resolved
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Unassigned
Reporter: Craig Russell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

Update information on JDK 1.3 jta jar

Created: 04/Apr/06 12:57 AM   Updated: 09/Dec/06 11:52 PM
Return to search
Component/s: api11, api2, fostore2, ri11, runtime2, site and infrastructure, tck11, tck2
Affects Version/s: None
Fix Version/s: JDO 2 maintenance release 1

Time Tracking:
Not Specified

Resolution Date: 09/Dec/06 11:52 PM


 Description  « Hide
The jdo project is running an old version of the jta jar:

        <dependency>
            <groupId>geronimo-spec</groupId>
            <artifactId>geronimo-spec-jta</artifactId>
            <version>1.0.1B-rc2</version>
        </dependency>

The new version is

        <dependency>
            <groupId>org.apache.geronimo.specs</groupId>
            <artifactId>geronimo-jta_1.0.1B_spec</artifactId>
            <version>1.0</version>
        </dependency>

The reason we use this jar instead of the Sun distribution is to allow maven directly to load the jar, which is impossible under the Sun license. There is no harm in changing to the new jar, so we should probably do this in the trunk.

I found we are using this old version issue while trying to figure out if the new jar supports JDK 1.3. But the new jar doesn't either. See below.

We document in http://wiki.apache.org/jdo/J2SESupport
 that we don't support 1.3 and give instructions on how to download the 1.3 version from the Sun web site. It might be an idea to update this page with instructions on how to tell maven to use this jar instead of the geronimo jar, but I think there are already clues about what to do.

Proposed action:

1. Update project.xml in trunk to refer to the new geronimo jar.

2. Update wiki with latest information on how to use the Sun 1.3 distribution.

-20-

5 api20 >java -version
java version "1.3.1_18"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_18-b01)
Java HotSpot(TM) Client VM (build 1.3.1_18-b01, mixed mode)

6 api20 >maven java:compile
 __ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.2

Attempting to download geronimo-jta_1.0.1B_spec-1.0.jar.
11K downloaded
build:start:

java:prepare-filesystem:
    [mkdir] Created dir: C:\users\michael\jdo\workspaces\jdo\trunk\api20\target\classes

java:compile:
    [echo] Compiling to c:\users\michael\jdo\workspaces\jdo\trunk\api20/target/classes
    [javac] Compiling 58 source files to C:\users\michael\jdo\workspaces\jdo\trunk\api20\target\classes
C:\users\michael\jdo\workspaces\jdo\trunk\api20\src\java\javax\jdo\Transaction.java:23: cannot access javax.transaction.Synchronization
bad class file: C:\users\michael\.maven\repository\org.apache.geronimo.specs\jars\geronimo-jta_1.0.1B_spec-1.0.jar(javax/transaction/Synchronization.class)
class file has wrong version 48.0, should be 47.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import javax.transaction.Synchronization;
                         ^
1 error

BUILD FAILED


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Michael Bouschen added a comment - 04/Apr/06 05:25 AM
Added all components that should change the jta dependency to refer to the new geronimo jar.

Michael Bouschen made changes - 04/Apr/06 05:26 AM
Field Original Value New Value
Component/s runtime20 [ 12310123 ]
Component/s ri11 [ 11659 ]
Component/s fostore20 [ 12310121 ]
Component/s api20 [ 11653 ]
Component/s tck11 [ 11654 ]
Component/s api11 [ 11658 ]
Repository Revision Date User Message
ASF #422888 Mon Jul 17 21:42:52 UTC 2006 mbo JDO-393 JDO-360 upgrade dependencies:
- commons-logging to version 1.1
- jta to version geronimo-jta_1.0.1B_spec
Files Changed
MODIFY /db/jdo/trunk/ri11/project.xml
MODIFY /db/jdo/trunk/query20/project.xml
MODIFY /db/jdo/trunk/model20/project.xml
MODIFY /db/jdo/trunk/fostore20/test/conf/JDO20Policy
MODIFY /db/jdo/trunk/ri11/project.properties
MODIFY /db/jdo/trunk/ri11/test/runtest.xml
MODIFY /db/jdo/trunk/util20/project.xml
MODIFY /db/jdo/trunk/enhancer20/project.xml
MODIFY /db/jdo/trunk/tck11/project.properties
MODIFY /db/jdo/trunk/fostore20/project.xml
MODIFY /db/jdo/trunk/runtime20/project.xml
MODIFY /db/jdo/trunk/api20/project.xml
MODIFY /db/jdo/trunk/tck20/project.properties
MODIFY /db/jdo/trunk/api11/project.xml
MODIFY /db/jdo/trunk/tck20/project.xml
MODIFY /db/jdo/trunk/ri11/test/conf/JDO11Policy
MODIFY /db/jdo/trunk/fostore20/project.properties
MODIFY /db/jdo/trunk/tck11/project.xml
MODIFY /db/jdo/trunk/fostore20/test/runtest.xml
MODIFY /db/jdo/trunk/enhancer20/project.properties

Michael Bouschen added a comment - 17/Jul/06 09:44 PM
I changed the dependency to geronimo-jta_1.0.1B_spec (see revision 422888).
However, this jar does not support JDK 1.3 either, so I keep the issue open.

Craig Russell added a comment - 09/Dec/06 11:52 PM
This dependency is now on the official transaction api jar published by Sun on a publicly available maven repo.

Craig Russell made changes - 09/Dec/06 11:52 PM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s JDO 2 maintenance release 1 [ 12310923 ]
Resolution Fixed [ 1 ]