Mailing List webobjects-dev@wocommunity.org Message #253
From: Theodore Petrosky <webobjects-dev@wocommunity.org>
Subject: Re: [WO-DEV] New box setup??
Date: Mon, 6 Sep 2021 12:56:42 -0400
To: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
I think I am almost there!!!!..


I downloaded and installed. jdk1.8.0_301.jdk

It lives at:   /Library/Java/JavaVirtualMachines/jdk1.8.0_301.jdk   obviously (/Contents/Home)

I set in my .bash_profile  JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_301.jdk/Contents/Home

And indeed this is what shows up in my env command.

I cd in the wondersource directory and 

ant frameworks

My “Roots” directory is filled with the wonder frameworks.

sudo ant -Duser.home=$HOME frameworks.install

Installs my wonder frameworks in the proper directory.

Eclipse in next.

My Java installed JREs default location is listed as:
/Library/Java/JavaVirtualMachines/jdk1.8.0_301.jdk/Contents/Home

Nothing is compiling in eclipse…  I have cleaned everything and built everything from scratch. When I right click in eclipse on my framework and use the WOLips install function, I get an error:

compile:

BUILD FAILED
/Users/asacksadmin/Developer/Eclipse-WO/EltekAccounting_FW/build.xml:87: java.lang.UnsupportedClassVersionError: org/objectstyle/woproject/ant/WOCompile has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

BTW:   Eclipse version:
Version: 4.20.0.20210612-1200
Build id: 20210612-2011

I’m hoping this is just a setting in Eclipse.

Thanks.

Ted




On Sep 6, 2021, at 1:40 AM, Stefan Gärtner <webobjects-dev@wocommunity.org> wrote:

Hello Ted,

The package javax.xml.parsers is accessible from more than one module
The package org.xml.sax is accessible from more than one module: <unnamed>, java.xml

As a workaround for this, you can set your Eclipse Java target version to 8.

Your problem is caused by using a target version >= 9, which enables JDK modularization (aka Project Jigsaw) AND using some XML functionality being present in module java.xml (from JDK) and <unnamed> (probably the JavaXML framework).
I've been struggling with the same problem.

IMO to properly solve this in Wonder,  JavaXML should never be enabled as a transitive dependency by any framework using it. I.e. removing its exported="true" from the .classpath file.
But maybe there is a better solution for this?

Best regards,
Stefan



Am 05.09.2021 um 22:54 schrieb D Tim Cummings <webobjects-dev@wocommunity.org>:

Hi Ted

I recently ported my maven webobjects project to Java 11 on MacOS Mojave. I was getting a similar error to yours and so I excluded JavaXML in my pom.xml. I am not sure the solution in fluffy bunny.

    <webobjects.groupId>com.webobjects</webobjects.groupId>
    <webobjects.version>5.4.3</webobjects.version>    
    <wonder.core.groupId>wonder.core</wonder.core.groupId>
    <wonder.version>7.2</wonder.version>
...

    <dependency>
      <groupId>${wonder.core.groupId}</groupId>
      <artifactId>ERExtensions</artifactId>
      <version>${wonder.version}</version>
      <exclusions>
        <exclusion>
          <groupId>${webobjects.groupId}</groupId>
          <artifactId>JavaXML</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>${wonder.core.groupId}</groupId>
      <artifactId>ERJavaMail</artifactId>
      <version>${wonder.version}</version>
      <exclusions>
        <exclusion>
          <groupId>${webobjects.groupId}</groupId>
          <artifactId>JavaXML</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>wonder.ajax</groupId>
      <artifactId>Ajax</artifactId>
      <version>${wonder.version}</version>
      <exclusions>
        <exclusion>
          <groupId>${webobjects.groupId}</groupId>
          <artifactId>JavaXML</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>${webobjects.groupId}</groupId>
      <artifactId>JavaWebObjects</artifactId>
      <version>${webobjects.version}</version>
      <exclusions>
        <exclusion>
          <groupId>${webobjects.groupId}</groupId>
          <artifactId>JavaXML</artifactId>
        </exclusion>
      </exclusions>
    </dependency>

At Hugi's suggestion I added back in Xerces which will also have been excluded by exclduing JavaXML

<dependency>
	<groupId>xerces</groupId>
	<artifactId>xercesImpl</artifactId>
	<version>2.12.1</version>
	<scope>runtime</scope>
</dependency>
Hope this helps

Tim

On 5/9/21 11:31, Theodore Petrosky wrote:
What version of Java are you using?

What version of Java is being used with WO!!

Ted



On Sep 2, 2021, at 10:52 AM, Jesse Tayler <webobjects-dev@wocommunity.org> wrote:

Did you check your JAVA version?

It sounds like you need to sync up the Wonder build with your local compiler to me

I run Big Slur but I also use an old JAVA because I’m late to update and test...

On Sep 2, 2021, at 9:53 AM, Theodore Petrosky <webobjects-dev@wocommunity.org> wrote:

I have a new computer with Big Sur 11.5.2. I am in the process of setting this machine up to do WO.

I have installed WO, Java, Wonder 7.3.

Almost there, there are some compile errors with wonder. For instance  ERPDFGeneration has multiple errors:

The package javax.xml.parsers is accessible from more than one module
The package org.xml.sax is accessible from more than one module: <unnamed>, java.xml

What do I need to do to fix this?

Ted
#############################################################
This message is sent to you because you are subscribed to
the mailing list <webobjects-dev@wocommunity.org>.
To unsubscribe, E-mail to: <webobjects-dev-off@wocommunity.org>
To switch to the DIGEST mode, E-mail to <webobjects-dev-digest@wocommunity.org>
To switch to the INDEX mode, E-mail to <webobjects-dev-index@wocommunity.org>
Send administrative queries to  <webobjects-dev-request@wocommunity.org>

#############################################################
This message is sent to you because you are subscribed to
 the mailing list <webobjects-dev@wocommunity.org>.
To unsubscribe, E-mail to: <webobjects-dev-off@wocommunity.org>
To switch to the DIGEST mode, E-mail to <webobjects-dev-digest@wocommunity.org>
To switch to the INDEX mode, E-mail to <webobjects-dev-index@wocommunity.org>
Send administrative queries to  <webobjects-dev-request@wocommunity.org>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list <webobjects-dev@wocommunity.org>.
To unsubscribe, E-mail to: <webobjects-dev-off@wocommunity.org>
To switch to the DIGEST mode, E-mail to <webobjects-dev-digest@wocommunity.org>
To switch to the INDEX mode, E-mail to <webobjects-dev-index@wocommunity.org>
Send administrative queries to  <webobjects-dev-request@wocommunity.org>




--
Mit freundlichen Grüßen

Stefan Gärtner
/// IT/Software-Entwicklung ///

NUREG GmbH ///
Dorfäckerstraße 31 | 90427 Nürnberg | Germany
Tel.: +49-911-32002-183 | Fax: +49-911-32002-299
Nürnberg HRB 22653 | USt.ID DE 814 685 653
Geschäftsführer: Michael Schmidt, Stefan Boas
www.nureg.de




Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster