From issues-return-33342-archive-asf-public=cust-asf.ponee.io@struts.apache.org Wed May 29 12:10:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 89B1618067E for ; Wed, 29 May 2019 14:10:02 +0200 (CEST) Received: (qmail 26042 invoked by uid 500); 29 May 2019 12:10:01 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 26030 invoked by uid 99); 29 May 2019 12:10:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 May 2019 12:10:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DADBCE2CCB for ; Wed, 29 May 2019 12:10:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 48D9A245A0 for ; Wed, 29 May 2019 12:10:00 +0000 (UTC) Date: Wed, 29 May 2019 12:10:00 +0000 (UTC) From: "Kiran Kumar (JIRA)" To: issues@struts.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WW-5032) Struts 2 Junit Plugin is not working with Zulu JDK11 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WW-5032?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1685079= 4#comment-16850794 ]=20 Kiran Kumar commented on WW-5032: --------------------------------- Hi Yasser, =C2=A0 =C2=A0 =C2=A0 =C2=A0Please try this=C2=A0[https://github.com/kkvaran= asi88/Test/tree/master/Struts2Example]. IDE : Eclipse IDE for Enterprise Java Developers. Version: 2019-03 (4.11.0) Build id: 20190314-1200 OS: Windows 10, v.10.0, x86_64 / win32 Java version: 11.0.2 Sample build o/p:=C2=A0=C2=A0 =C2=A0 [INFO] Scanning for projects... [INFO]=20 [INFO] ------------------< com.mkyong.common:Struts2Example >--------------= ---- [INFO] Building Struts2Example Maven Webapp com.mkyong.common [INFO] --------------------------------[ war ]-----------------------------= ---- [INFO]=20 [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ Struts2Example --= - [INFO] Deleting C:\Users\kvaranasi\Desktop\Struts2Example\target [INFO]=20 [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Strut= s2Example --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resour= ces, i.e. build is platform dependent! [INFO] Copying 4 resources [INFO]=20 [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ Struts2E= xample --- [WARNING] *****************************************************************= *************************************************** [WARNING] * Required filename-based automodules detected. Please don't publ= ish this project to a public artifact repository! * [WARNING] *****************************************************************= *************************************************** [INFO] Changes detected - recompiling the module! [WARNING] File encoding has not been set, using platform encoding Cp1252, i= .e. build is platform dependent! [INFO] Compiling 4 source files to C:\Users\kvaranasi\Desktop\Struts2Exampl= e\target\classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR :=20 [INFO] ------------------------------------------------------------- [ERROR] the unnamed module reads package org.apache.struts2 from both strut= s2.junit.plugin and struts2.core [ERROR] module struts2.core reads package org.apache.struts2 from both stru= ts2.junit.plugin and struts2.core [ERROR] module spring.core reads package org.apache.struts2 from both strut= s2.junit.plugin and struts2.core [ERROR] module org.apache.logging.log4j reads package org.apache.struts2 fr= om both struts2.junit.plugin and struts2.core [ERROR] module tomcat.servlet.api reads package org.apache.struts2 from bot= h struts2.junit.plugin and struts2.core [ERROR] module struts2.junit.plugin reads package org.apache.struts2 from b= oth struts2.junit.plugin and struts2.core [ERROR] module junit reads package org.apache.struts2 from both struts2.jun= it.plugin and struts2.core [ERROR] /C:/Users/kvaranasi/Desktop/Struts2Example/src/main/java/module-inf= o.java:[1,1] module Struts2Example reads package org.apache.struts2 from bo= th struts2.junit.plugin and struts2.core [INFO] 8 errors=20 [INFO] ------------------------------------------------------------- [INFO] --------------------------------------------------------------------= ---- [INFO] BUILD FAILURE [INFO] --------------------------------------------------------------------= ---- [INFO] Total time: 3.578 s [INFO] Finished at: 2019-05-29T17:36:18+05:30 [INFO] --------------------------------------------------------------------= ---- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plug= in:3.8.0:compile (default-compile) on project Struts2Example: Compilation f= ailure: Compilation failure:=20 [ERROR] the unnamed module reads package org.apache.struts2 from both strut= s2.junit.plugin and struts2.core [ERROR] module struts2.core reads package org.apache.struts2 from both stru= ts2.junit.plugin and struts2.core [ERROR] module spring.core reads package org.apache.struts2 from both strut= s2.junit.plugin and struts2.core [ERROR] module org.apache.logging.log4j reads package org.apache.struts2 fr= om both struts2.junit.plugin and struts2.core [ERROR] module tomcat.servlet.api reads package org.apache.struts2 from bot= h struts2.junit.plugin and struts2.core [ERROR] module struts2.junit.plugin reads package org.apache.struts2 from b= oth struts2.junit.plugin and struts2.core [ERROR] module junit reads package org.apache.struts2 from both struts2.jun= it.plugin and struts2.core [ERROR] /C:/Users/kvaranasi/Desktop/Struts2Example/src/main/java/module-inf= o.java:[1,1] module Struts2Example reads package org.apache.struts2 from bo= th struts2.junit.plugin and struts2.core [ERROR] -> [Help 1] [ERROR]=20 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e= switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR]=20 [ERROR] For more information about the errors and possible solutions, pleas= e read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailu= reException =C2=A0 Regards, Krian > Struts 2 Junit Plugin is not working with Zulu JDK11 > ---------------------------------------------------- > > Key: WW-5032 > URL: https://issues.apache.org/jira/browse/WW-5032 > Project: Struts 2 > Issue Type: Dependency > Components: Core, Plugin - JUnit > Affects Versions: 2.5.20 > Environment: Zulu JDK 11.0 > Struts 2.5.20 > Struts 2 Junit Plugin V 2.5.20 > Junit 4.12 > Reporter: Kiran Kumar > Priority: Blocker > Fix For: 2.6 > > Attachments: Error.PNG > > > Unable to execute Junit test cases on Struts 2 using JDK 11.0 platform.Pl= ease find the screens shots of the issues we are facing. Would really appre= ciate your help with this as we are stuck and unable to move forward and lo= sing time for a key deliverable.[^Junit_JDK 11.0_Struts 2 _Issue.docx] -- This message was sent by Atlassian JIRA (v7.6.3#76005)