[Geoserver-devel] [JIRA] (GEOS-9008) LogFactory conflict in gs-main Eclipse project results into unable to compile/run.

Daniele Romagnoli created an issue

GeoServer / BugGEOS-9008

LogFactory conflict in gs-main Eclipse project results into unable to compile/run.

Issue Type:

BugBug

Assignee:

Daniele Romagnoli

Components:

Main

Created:

12/Nov/18 6:32 PM

Priority:

MediumMedium

Reporter:

Daniele Romagnoli

When trying to build and run GeoServer from Eclipse as imported modules, there is a conflict preventing its startup.

Running “mvn dependency:tree” on gs-main I see:


[INFO] ± net.sf.json-lib:json-lib:jar:jdk15:2.4:compile
[INFO] | ± commons-beanutils:commons-beanutils:jar:1.9.2:provided
[INFO] | ± commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | ± commons-lang:commons-lang:jar:2.5:compile
[INFO] | ± commons-logging:commons-logging:jar:1.1.1:compile


[INFO] ± org.springframework:spring-core:jar:5.1.1.RELEASE:compile
[INFO] | - org.springframework:spring-jcl:jar:5.1.1.RELEASE:compile

Both commons-logging:commons-logging and org.springframework:spring-jcl define
org.apache.commons.logging.LogFactory but the jcl one does not have the
release(ClassLoader) method being used by GeoserverInitStartupListener.

Therefore, depending on which order the jars are loaded, you may be unable to have it work.

I’ll be back with a PR containing an exclusion in the gs-main pom.xml

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100095-sha1:93136a0)

Atlassian logo