Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-360

Update information on JDK 1.3 jta jar

    XMLWordPrintableJSON

Details

    Description

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            clr Craig L Russell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: