struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kiran Kumar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-5032) Struts 2 Junit Plugin is not working with Zulu JDK11
Date Fri, 24 May 2019 12:31:00 GMT

    [ https://issues.apache.org/jira/browse/WW-5032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16847509#comment-16847509
] 

Kiran Kumar commented on WW-5032:
---------------------------------

Hi Lukasz,

     All dependencies are latest one's. Below is my final pom.

 

<project xmlns="[http://maven.apache.org/POM/4.0.0]"
xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance]"
xsi:schemaLocation="[http://maven.apache.org/POM/4.0.0] [http://maven.apache.org/maven-v4_0_0.xsd]">
<modelVersion>4.0.0</modelVersion>
<groupId>com.test.junittest</groupId>
<artifactId>struts-junit-example</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<name>struts-Junit</name>
<url>[http://example.com|http://example.com/]</url>
<dependencies>
<!-- Struts 2 -->
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-core</artifactId>
<version>${struts.version}</version>
</dependency>
<dependency>
<groupId>org.apache.struts</groupId>
<artifactId>struts2-junit-plugin</artifactId>
<version>${struts.version}</version>
<scope>test</scope>
</dependency>
<!-- Spring framework -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-catalina</artifactId>
<version>${tomcat-current-version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<finalName>SampleJunit</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>${jdk.version}</source>
<target>${jdk.version}</target>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<project.build.sourceEncoding>Cp1252</project.build.sourceEncoding>
<spring.version>4.3.20.RELEASE</spring.version>
<jdk.version>11</jdk.version>
<struts.version>2.5.20</struts.version>
<tomcat-current-version>9.0.16</tomcat-current-version>
</properties>
</project>

 

 

And also I have checked StrutsInternalTestCase class which is making use of XWorkTestCase.
I have tried it by extending XWorkTestCase in my own class which is still doesn't work.Please
kindly let me know what is the issue. 

> 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
>         Attachments: Error.PNG
>
>
> Unable to execute Junit test cases on Struts 2 using JDK 11.0 platform.Please find the
screens shots of the issues we are facing. Would really appreciate your help with this as
we are stuck and unable to move forward and losing time for a key deliverable.[^Junit_JDK
11.0_Struts 2 _Issue.docx]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message