Skip to content

Commit 0c1a644

Browse files
committed
jakarta updates
1 parent f51ec83 commit 0c1a644

7 files changed

Lines changed: 38 additions & 38 deletions

File tree

.github/workflows/java.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Build
22

33
on:
44
push:
5-
branches: ["cicsts/v5.5"]
5+
branches: ["cicsts/v6.1"]
66
pull_request:
7-
branches: ["cicsts/v5.5"]
7+
branches: ["cicsts/v6.1"]
88
schedule:
99
- cron: '0 0 * * *'
1010

@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ubuntu-latest
2929
strategy:
3030
matrix:
31-
jdk: [8, 11, 17, 21]
31+
jdk: [17, 21]
3232
steps:
3333
- uses: actions/checkout@v3
3434
- name: Set up JDK ${{ matrix.jdk }}
@@ -47,7 +47,7 @@ jobs:
4747
runs-on: ubuntu-latest
4848
strategy:
4949
matrix:
50-
jdk: [8, 11, 17, 21]
50+
jdk: [17, 21]
5151
steps:
5252
- uses: actions/checkout@v3
5353
- name: Set up JDK ${{ matrix.jdk }}

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ This sample demonstrates a Java EE web application running on a Liberty JVM serv
1111
- [etc/config/liberty/server.xml](./etc/config/liberty/server.xml) - A template `server.xml` demonstrating the minimum configuration required to run the sample.
1212

1313
## Prerequisites
14-
- CICS TS V5.5 or later
15-
- Java SE 1.8 or later on the workstation
14+
- CICS TS V6.1 or later
15+
- Java SE 17 or later on the workstation
1616
- One of the following on your workstation:
1717
- Eclipse with the IBM CICS SDK for Java EE, Jakarta EE and Liberty
1818
- An IDE of your choice that supports Gradle or Maven (or can run the Wrappers)
@@ -21,7 +21,7 @@ This sample demonstrates a Java EE web application running on a Liberty JVM serv
2121
## Downloading
2222

2323
- Clone the repository using your IDEs support, such as the Eclipse Git plugin
24-
- **or**, download the sample as a [ZIP](https://github.com/cicsdev/cics-java-liberty-tsq/archive/main.zip) and unzip onto the workstation
24+
- **or**, download the sample as a [ZIP](https://github.com/cicsdev/cics-java-liberty-tsq/archive/cicsts/v6.1.zip) and unzip onto the workstation
2525

2626
> [!TIP]
2727
> Eclipse Git provides an 'Import existing Projects' check-box when cloning a repository.
@@ -61,7 +61,7 @@ You can build the sample in a variety of ways:
6161

6262

6363
> [!IMPORTANT]
64-
> The sample comes pre-configured for use with a JDK 1.8 and CICS TS V5.5 Libraries for Java EE 8. When you initially import the project to your IDE, if your IDE is not configured for a JDK 1.8, or does not have CICS Explorer SDK installed, you might experience local project compile errors. To resolve issues you should configure the Project's build-path to add/remove your preferred combination of CICS TS, JDK, and Liberty's Enterprise Java libraries (Java EE or Jakarta EE). Resolving errors might also depend on how you wish to build and deploy the sample. If you are building and deploying through CICS Explorer SDK and 'Export to zFS' you should edit the tsq-app's Project properties. Select 'Java Build Path', on the Libraries tab select 'Classpath', click 'Add Library', select 'CICS with Enterprise Java and Liberty' Library, and choose the appropriate CICS and Enterprise Java versions.
64+
> The sample comes pre-configured for use with a JDK 17 and CICS TS V6.1 Libraries for Jakarta EE 9. When you initially import the project to your IDE, if your IDE is not configured for a JDK 17, or does not have CICS Explorer SDK installed, you might experience local project compile errors. To resolve issues you should configure the Project's build-path to add/remove your preferred combination of CICS TS, JDK, and Liberty's Enterprise Java libraries (Java EE or Jakarta EE). Resolving errors might also depend on how you wish to build and deploy the sample. If you are building and deploying through CICS Explorer SDK and 'Export to zFS' you should edit the tsq-app's Project properties. Select 'Java Build Path', on the Libraries tab select 'Classpath', click 'Add Library', select 'CICS with Enterprise Java and Liberty' Library, and choose the appropriate CICS and Enterprise Java versions.
6565
If you are building and deploying with Gradle or Maven then you don't necessarily need to fix the local errors, but to do so, you can do as above, or you can run a tooling refresh on the tsq-app project. For example, in Eclipse: right-click on "Project", select "Gradle -> Refresh Gradle Project", **or** right-click on "Project", select "Maven -> Update Project...".
6666
6767
> [!TIP]
@@ -127,7 +127,7 @@ mvn clean verify -Dcics.jvmserver=MYJVM
127127
## Deploying to a Liberty JVM server
128128

129129
Ensure you have the following features defined in your Liberty server.xml:
130-
* `<feature>servlet-4.0</feature>`
130+
* `<feature>servlet-5.0</feature>`
131131

132132
A template server.xml is provided [here](./etc/config/liberty/server.xml).
133133

cics-java-liberty-tsq-app/src/main/java/com/ibm/cics/server/examples/wlp/tsq/BrowseTsq.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
import java.io.IOException;
1616
import java.util.ArrayList;
1717

18-
import javax.servlet.ServletException;
19-
import javax.servlet.ServletOutputStream;
20-
import javax.servlet.annotation.WebServlet;
21-
import javax.servlet.http.HttpServlet;
22-
import javax.servlet.http.HttpServletRequest;
23-
import javax.servlet.http.HttpServletResponse;
18+
import jakarta.servlet.ServletException;
19+
import jakarta.servlet.ServletOutputStream;
20+
import jakarta.servlet.annotation.WebServlet;
21+
import jakarta.servlet.http.HttpServlet;
22+
import jakarta.servlet.http.HttpServletRequest;
23+
import jakarta.servlet.http.HttpServletResponse;
2424

2525

2626
/**

cics-java-liberty-tsq-app/src/main/java/com/ibm/cics/server/examples/wlp/tsq/DeleteTsq.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313

1414
import java.io.IOException;
1515

16-
import javax.servlet.ServletException;
17-
import javax.servlet.ServletOutputStream;
18-
import javax.servlet.annotation.WebServlet;
19-
import javax.servlet.http.HttpServlet;
20-
import javax.servlet.http.HttpServletRequest;
21-
import javax.servlet.http.HttpServletResponse;
16+
import jakarta.servlet.ServletException;
17+
import jakarta.servlet.ServletOutputStream;
18+
import jakarta.servlet.annotation.WebServlet;
19+
import jakarta.servlet.http.HttpServlet;
20+
import jakarta.servlet.http.HttpServletRequest;
21+
import jakarta.servlet.http.HttpServletResponse;
2222

2323
import com.ibm.cics.server.InvalidRequestException;
2424
import com.ibm.cics.server.Task;

cics-java-liberty-tsq-app/src/main/java/com/ibm/cics/server/examples/wlp/tsq/TsqInfo.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
package com.ibm.cics.server.examples.wlp.tsq;
1313

1414
import java.io.IOException;
15-
import javax.servlet.ServletException;
16-
import javax.servlet.ServletOutputStream;
17-
import javax.servlet.annotation.WebServlet;
18-
import javax.servlet.http.HttpServlet;
19-
import javax.servlet.http.HttpServletRequest;
20-
import javax.servlet.http.HttpServletResponse;
15+
import jakarta.servlet.ServletException;
16+
import jakarta.servlet.ServletOutputStream;
17+
import jakarta.servlet.annotation.WebServlet;
18+
import jakarta.servlet.http.HttpServlet;
19+
import jakarta.servlet.http.HttpServletRequest;
20+
import jakarta.servlet.http.HttpServletResponse;
2121

2222

2323
/**

cics-java-liberty-tsq-app/src/main/java/com/ibm/cics/server/examples/wlp/tsq/WriteTsq.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
package com.ibm.cics.server.examples.wlp.tsq;
1313

1414
import java.io.IOException;
15-
import javax.servlet.ServletException;
16-
import javax.servlet.ServletOutputStream;
17-
import javax.servlet.annotation.WebServlet;
18-
import javax.servlet.http.HttpServlet;
19-
import javax.servlet.http.HttpServletRequest;
20-
import javax.servlet.http.HttpServletResponse;
15+
import jakarta.servlet.ServletException;
16+
import jakarta.servlet.ServletOutputStream;
17+
import jakarta.servlet.annotation.WebServlet;
18+
import jakarta.servlet.http.HttpServlet;
19+
import jakarta.servlet.http.HttpServletRequest;
20+
import jakarta.servlet.http.HttpServletResponse;
2121

2222
import com.ibm.cics.server.InvalidRequestException;
2323
import com.ibm.cics.server.Task;

cics-java-liberty-tsq-app/src/main/webapp/WEB-INF/web.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
<!-- (C) Copyright IBM Corp. 2009, 2021 All Rights Reserved. -->
1010
<!-- US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. -->
1111
<!-- </copyright> -->
12-
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
13-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14-
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
15-
http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
16-
version="4.0">
12+
<web-app xmlns="https://jakarta.ee/xml/ns/jakartaee"
13+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
14+
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee
15+
https://jakarta.ee/xml/ns/jakartaee/web-app_5_0.xsd"
16+
version="5.0">
1717
<display-name>cics-java-liberty-tsq-app</display-name>
1818
<!-- AUTHENTICATION METHOD: Basic authentication -->
1919
<login-config>

0 commit comments

Comments
 (0)