Mailing List webobjects-dev@wocommunity.org Message #252
From: Stefan Gärtner <webobjects-dev@wocommunity.org>
Subject: Re: [WO-DEV] New box setup??
Date: Mon, 6 Sep 2021 07:40:59 +0200
To: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
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