Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log4j problems #6

Open
rae0506 opened this issue Mar 11, 2021 · 4 comments
Open

log4j problems #6

rae0506 opened this issue Mar 11, 2021 · 4 comments

Comments

@rae0506
Copy link

rae0506 commented Mar 11, 2021

Hello, first thanks for your time. I hope you could give me some hint, Im getting this error while trying to create the .jar file.

image

Can the community comment please. Thanks @fat-tire

@fat-tire
Copy link
Owner

I'm wondering if it's not able to find org.apache.logging.log4j version because the version specified is:

		<version>2.8.2</version>

I don't see that version w/a maven search. Maybe you need to change this to 2.14.0 in pom.xml to be up-to-date? You may need to update other libraries as it's been years since the source has been updated.

Let me know if this works.

@rae0506
Copy link
Author

rae0506 commented Mar 11, 2021

Hello, thanks for your reply. I would like to share my pom file. :

I added this and log4j issue dissapered however the src folder shows now lot more troubles. let me show you.

image

Thanks in advance for taking the chance to review this, could be 5 years old but I would like to have a 2021 working repo so it can keep using the great tools you create, hipos, websing.

4.0.0 log4j log4j 1.4-SNAPSHOT
<properties>
	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<scm>
	<url>http://orodev.net:8081/nexus/content/groups/public/org/apache/logging/log4j/log4j/2.14.0/log4j-2.14.0.jar</url>
</scm>

<build>
	<sourceDirectory>src</sourceDirectory>
	<finalName>floreantpos</finalName>
	<resources>
		<resource>
			<directory>src</directory>
			<excludes>
				<exclude>**/*.java</exclude>
			</excludes>
		</resource>
		<resource>
			<directory>resources</directory>
		</resource>
		<resource>
			<directory>profiles/${build.profile.id}</directory>
			<filtering>true</filtering>
			<includes>
				<include>*.properties</include>
			</includes>
		</resource>
	</resources>
	<plugins>
		<plugin>
			<groupId>org.codehaus.mojo</groupId>
			<artifactId>buildnumber-maven-plugin</artifactId>
			<version>1.3</version>
			<executions>
				<execution>
					<phase>validate</phase>
					<goals>
						<goal>create</goal>
					</goals>
				</execution>
			</executions>
			<configuration>
				<doCheck>false</doCheck>
				<doUpdate>false</doUpdate>
				<providerImplementations>
					<svn>javasvn</svn>
				</providerImplementations>
			</configuration>
			<dependencies>
				<dependency>
					<groupId>com.google.code.maven-scm-provider-svnjava</groupId>
					<artifactId>maven-scm-provider-svnjava</artifactId>
					<version>2.1.1</version>
				</dependency>
				<dependency>
					<groupId>org.tmatesoft.svnkit</groupId>
					<artifactId>svnkit</artifactId>
					<version>1.8.5</version>
				</dependency>
			</dependencies>
		</plugin>

		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-compiler-plugin</artifactId>
			<version>3.1</version>
			<configuration>
				<source>1.7</source>
				<target>1.7</target>
				<encoding>UTF-8</encoding>
			</configuration>
		</plugin>
		<plugin>
			<artifactId>maven-resources-plugin</artifactId>
			<version>2.4</version>
			<configuration>
				<encoding>UTF-8</encoding>
			</configuration>
		</plugin>
		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-jar-plugin</artifactId>
			<version>2.3.1</version>
			<configuration>
				<archive>
					<manifest>
						<addClasspath>true</addClasspath>
						<classpathPrefix>lib/</classpathPrefix>
						<mainClass>com.floreantpos.main.Main</mainClass>
					</manifest>
					<manifestEntries>
						<Class-Path>config/ i18n/</Class-Path>
					</manifestEntries>
				</archive>
			</configuration>
		</plugin>

		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-assembly-plugin</artifactId>
			<version>2.4</version>
			<executions>
				<execution>
					<phase>package</phase>
					<goals>
						<goal>single</goal>
					</goals>
				</execution>
			</executions>
			<configuration>
				<!-- <descriptor>resources/META-INF/mvn-assembly.xml</descriptor> -->
				<descriptor>profiles/${build.profile.id}/mvn-assembly.xml</descriptor>
			</configuration>
		</plugin>

		<plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-antrun-plugin</artifactId>
			<version>1.6</version>
			<executions>
				<execution>
					<id>prepare</id>
					<phase>validate</phase>
					<configuration>
						<target>
							<echo message="prepare phase" />
							<unzip src="database/derby-server/posdb.zip" dest="${project.build.directory}" />
						</target>
					</configuration>
					<goals>
						<goal>run</goal>
					</goals>
				</execution>
				<execution>
					<phase>package</phase>
					<configuration>
						<target>
							<zip destfile="${project.build.directory}/${project.build.finalName}-1.4-build${buildNumber}.zip" basedir="${project.build.directory}/${project.build.finalName}-bin/${project.build.finalName}"></zip>
						</target>
					</configuration>
					<goals>
						<goal>run</goal>
					</goals>
				</execution>
			</executions>
		</plugin>
	</plugins>
	<pluginManagement>
		<plugins>
			<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -->
			<plugin>
				<groupId>org.eclipse.m2e</groupId>
				<artifactId>lifecycle-mapping</artifactId>
				<version>1.0.0</version>
				<configuration>
					<lifecycleMappingMetadata>
						<pluginExecutions>
							<pluginExecution>
								<pluginExecutionFilter>
									<groupId>
										org.apache.maven.plugins
									</groupId>
									<artifactId>
										maven-antrun-plugin
									</artifactId>
									<versionRange>
										[1.6,)
									</versionRange>
									<goals>
										<goal>run</goal>
									</goals>
								</pluginExecutionFilter>
								<action>
									<ignore></ignore>
								</action>
							</pluginExecution>
						</pluginExecutions>
					</lifecycleMappingMetadata>
				</configuration>
			</plugin>
		</plugins>
	</pluginManagement>
</build>

<dependencies>
	<dependency>
		<groupId>org.hibernate</groupId>
		<artifactId>hibernate</artifactId>
		<version>3.2.6.ga</version>
		<exclusions>
			<exclusion>
				<groupId>javax.transaction</groupId>
				<artifactId>jta</artifactId>
			</exclusion>
			<exclusion>
				<artifactId>commons-collections</artifactId>
				<groupId>commons-collections</groupId>
			</exclusion>
		</exclusions>
	</dependency>

	<dependency>
		<groupId>javax.transaction</groupId>
		<artifactId>jta</artifactId>
		<version>1.1</version>
	</dependency>

	<dependency>
		<groupId>org.hibernate</groupId>
		<artifactId>hibernate-annotations</artifactId>
		<version>3.3.1.GA</version>
	</dependency>

	<dependency>
		<groupId>com.miglayout</groupId>
		<artifactId>miglayout</artifactId>
		<version>3.7.4</version>
	</dependency>

	<dependency>
		<groupId>ecs</groupId>
		<artifactId>ecs</artifactId>
		<version>1.4.2</version>
	</dependency>

	<dependency>
		<groupId>xerces</groupId>
		<artifactId>xerces</artifactId>
		<version>2.4.0</version>
	</dependency>

	<dependency>
		<groupId>com.jgoodies</groupId>
		<artifactId>forms</artifactId>
		<version>1.2.1</version>
	</dependency>

	<dependency>
		<groupId>org.swinglabs</groupId>
		<artifactId>swingx-core</artifactId>
		<version>1.6.2-2</version>
	</dependency>

	<dependency>
		<groupId>org.apache.derby</groupId>
		<artifactId>derby</artifactId>
		<version>10.8.1.2</version>
	</dependency>

	<dependency>
		<groupId>org.apache.derby</groupId>
		<artifactId>derbynet</artifactId>
		<version>10.8.1.2</version>
	</dependency>

	<dependency>
		<groupId>org.apache.derby</groupId>
		<artifactId>derbyclient</artifactId>
		<version>10.8.1.2</version>
	</dependency>

	<dependency>
		<groupId>com.sun.jersey</groupId>
		<artifactId>jersey-client</artifactId>
		<version>1.18.1</version>
	</dependency>

	<dependency>
		<groupId>com.jgoodies</groupId>
		<artifactId>looks</artifactId>
		<version>2.2.2</version>
	</dependency>

	<dependency>
		<groupId>com.intellij</groupId>
		<artifactId>forms_rt</artifactId>
		<version>7.0.3</version>
	</dependency>

	<dependency>
		<groupId>net.sf.jasperreports</groupId>
		<artifactId>jasperreports</artifactId>
		<version>4.0.1</version>
		<exclusions>
			<exclusion>
				<artifactId>itext</artifactId>
				<groupId>com.lowagie</groupId>
			</exclusion>
			<exclusion>
				<artifactId>commons-collections</artifactId>
				<groupId>commons-collections</groupId>
			</exclusion>
			<exclusion>
				<artifactId>xml-apis</artifactId>
				<groupId>xml-apis</groupId>
			</exclusion>
		</exclusions>
	</dependency>

	<dependency>
		<groupId>foxtrot</groupId>
		<artifactId>foxtrot</artifactId>
		<version>2.0</version>
	</dependency>

	<dependency>
		<groupId>org.swinglabs</groupId>
		<artifactId>swing-layout</artifactId>
		<version>1.0.3</version>
	</dependency>

	<dependency>
		<groupId>commons-lang</groupId>
		<artifactId>commons-lang</artifactId>
		<version>2.6</version>
	</dependency>

	<dependency>
		<groupId>commons-configuration</groupId>
		<artifactId>commons-configuration</artifactId>
		<version>1.2</version>
		<exclusions>
			<exclusion>
				<artifactId>servlet-api</artifactId>
				<groupId>javax.servlet</groupId>
			</exclusion>
			<exclusion>
				<artifactId>xml-apis</artifactId>
				<groupId>xml-apis</groupId>
			</exclusion>
		</exclusions>
	</dependency>

	<dependency>
		<groupId>org.apache.logging.log4j</groupId>
		<artifactId>log4j-api</artifactId>
		<version>2.14.0</version>
		<exclusions>
			<exclusion>
				<artifactId>mail</artifactId>
				<groupId>javax.mail</groupId>
			</exclusion>
			<exclusion>
				<artifactId>jms</artifactId>
				<groupId>javax.jms</groupId>
			</exclusion>
			<exclusion>
				<artifactId>jmxtools</artifactId>
				<groupId>com.sun.jdmk</groupId>
			</exclusion>
			<exclusion>
				<artifactId>jmxri</artifactId>
				<groupId>com.sun.jmx</groupId>
			</exclusion>
		</exclusions>
	</dependency>
		<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.14.0</version>
	</dependency>
	<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>2.0.0-alpha1</version>
</dependency>
	<dependency>
		<groupId>mysql</groupId>
		<artifactId>mysql-connector-java</artifactId>
		<version>8.0.16</version>
	</dependency>
	<dependency>
		<groupId>commons-codec</groupId>
		<artifactId>commons-codec</artifactId>
		<version>1.9</version>
	</dependency>
	<dependency>
		<groupId>commons-io</groupId>
		<artifactId>commons-io</artifactId>
		<version>2.4</version>
	</dependency>
	<dependency>
		<groupId>org.metawidget.modules</groupId>
		<artifactId>metawidget-all</artifactId>
		<version>3.9</version>
	</dependency>
	<dependency>
		<groupId>net.xeoh</groupId>
		<artifactId>jspf.core</artifactId>
		<version>1.0.2</version>
	</dependency>
	<dependency>
		<groupId>commons-cli</groupId>
		<artifactId>commons-cli</artifactId>
		<version>1.2</version>
	</dependency>

	<dependency>
		<groupId>net.authorize</groupId>
		<artifactId>anet-java-sdk</artifactId>
		<version>1.8.1</version>
	</dependency>

	<dependency>
		<groupId>org.apache.httpcomponents</groupId>
		<artifactId>httpclient</artifactId>
		<version>[4.3.6,)</version>
	</dependency>
	<dependency>
		<groupId>org.apache.httpcomponents</groupId>
		<artifactId>httpcore</artifactId>
		<version>4.0.1</version>
	</dependency>
	<dependency>
		<groupId>commons-validator</groupId>
		<artifactId>commons-validator</artifactId>
		<version>1.4.0</version>
	</dependency>

	<dependency>
		<groupId>com.jidesoft</groupId>
		<artifactId>jide-oss</artifactId>
		<version>3.6.1</version>
	</dependency>

	<dependency>
		<groupId>javax.json</groupId>
		<artifactId>javax.json-api</artifactId>
		<version>1.0</version>
	</dependency>

	<dependency>
		<groupId>org.glassfish</groupId>
		<artifactId>javax.json</artifactId>
		<version>1.0.4</version>
	</dependency>
	<dependency>
		<groupId>net.sourceforge.barbecue</groupId>
		<artifactId>barbecue</artifactId>
		<version>1.5-beta1</version>
	</dependency>

	<dependency>
		<groupId>xerces</groupId>
		<artifactId>xercesImpl</artifactId>
		<version>2.12.0</version>
	</dependency>

	<dependency>
		<groupId>us.fatehi</groupId>
		<artifactId>magnetictrackparser</artifactId>
		<version>1.0</version>
	</dependency>

	<dependency>
		<groupId>org.jdom</groupId>
		<artifactId>jdom2</artifactId>
		<version>2.0.5</version>
	</dependency>
	<dependency>
		<groupId>jaxen</groupId>
		<artifactId>jaxen</artifactId>
		<version>1.1.4</version>
	</dependency>
	<dependency>
		<groupId>c3p0</groupId>
		<artifactId>c3p0</artifactId>
		<version>0.9.1.2</version>
	</dependency>
	<dependency>
		<groupId>com.orocube</groupId>
		<artifactId>orocube-common-classes</artifactId>
		<version>1.4.2</version>
	</dependency>
	<dependency>
		<groupId>joda-time</groupId>
		<artifactId>joda-time</artifactId>
		<version>2.3</version>
	</dependency>
	<dependency>
		<groupId>org.scream3r</groupId>
		<artifactId>jssc</artifactId>
		<version>2.8.0</version>
	</dependency>
	<dependency>
		<groupId>org.postgresql</groupId>
		<artifactId>postgresql</artifactId>
		<version>9.3-1103-jdbc3</version>
	</dependency>
	<dependency>
		<groupId>com.pax</groupId>
		<artifactId>poslink</artifactId>
		<version>20161230</version>
	</dependency>
	<dependency>
		<groupId>com.google.maps</groupId>
		<artifactId>google-maps-services</artifactId>
		<version>0.1.12</version>
	</dependency>
	<dependency>
		<groupId>net.java.dev.jna</groupId>
		<artifactId>jna</artifactId>
		<version>4.2.2</version>
	</dependency>
	<dependency>
		<groupId>net.java.dev.jna</groupId>
		<artifactId>jna-platform</artifactId>
		<version>4.2.2</version>
	</dependency>
	<dependency>
		<groupId>com.floreantpos</groupId>
		<artifactId>ploader</artifactId>
		<version>1.1.2</version>
	</dependency>
</dependencies>

<repositories>
	<repository>
		<id>orodev.net</id>
		<url>http://orodev.net:8081/nexus/content/groups/public/</url>
		<releases>
			<enabled>true</enabled>
		</releases>
		<snapshots>
			<enabled>true</enabled>
		</snapshots>
	</repository>
</repositories>

<profiles>
	<profile>
		<id>default</id>
		<properties>
			<build.profile.id>default</build.profile.id>
		</properties>
		<activation>
			<activeByDefault>true</activeByDefault>
		</activation>
	</profile>
	<profile>
		<id>devinepos</id>
		<properties>
			<build.profile.id>devinepos</build.profile.id>
		</properties>
	</profile>
</profiles>

image

image

@fat-tire
Copy link
Owner

fat-tire commented Mar 24, 2021

It looks like you have more than one provider listed for log4j-- I checked out http://www.slf4j.org/codes.html#multiple_bindings and it seems to confirm. What happens if you take out the bits relating to "org.apache.logging.log4j" (or the other one)?

The instructions at slf4j.org I linked to above also say you can explicitly exclude bindings to avoid the conflict as well. Maybe play with these and see if you can get the build to finish.

@fat-tire
Copy link
Owner

Also-- take a look at this pull request and let me know if it fixes the build for ya!

If so, please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants