Fixes SAML tests in testsuite

- adds dependency to saaj-impl in saml core public
- updates test apps' web.xml files to use jakarta namespaces
- small cleanup in main pom
- changes order of e-mail servers in testsuite pom to enforce usage of greenmail (changes order in Undertow's classpath)

Closes #16711
This commit is contained in:
Stefan Guilhen 2023-01-30 22:36:58 -03:00 committed by Václav Muzikář
parent 7b51d8617d
commit 3409a0c840
10 changed files with 39 additions and 33 deletions

View file

@ -22,6 +22,7 @@
<groupId>org.jboss</groupId> <groupId>org.jboss</groupId>
<artifactId>jboss-parent</artifactId> <artifactId>jboss-parent</artifactId>
<version>39</version> <version>39</version>
<relativePath/>
</parent> </parent>
<groupId>org.keycloak.bom</groupId> <groupId>org.keycloak.bom</groupId>

View file

@ -115,10 +115,9 @@
<slf4j-api.version>1.7.30</slf4j-api.version> <slf4j-api.version>1.7.30</slf4j-api.version>
<slf4j.version>1.7.30</slf4j.version> <slf4j.version>1.7.30</slf4j.version>
<sun.istack.version>3.0.10</sun.istack.version> <sun.istack.version>3.0.10</sun.istack.version>
<sun.saaj.version>2.0.1</sun.saaj.version>
<sun.xml.bind.version>2.3.3-b02</sun.xml.bind.version> <sun.xml.bind.version>2.3.3-b02</sun.xml.bind.version>
<javax.xml.bind.jaxb.version>2.4.0-b180830.0359</javax.xml.bind.jaxb.version>
<javax.annotation-api.version>1.3.2</javax.annotation-api.version> <javax.annotation-api.version>1.3.2</javax.annotation-api.version>
<sun.xml.ws.version>2.3.1</sun.xml.ws.version>
<sun.activation.version>1.2.2</sun.activation.version> <sun.activation.version>1.2.2</sun.activation.version>
<org.glassfish.jaxb.xsom.version>2.3.3-b02</org.glassfish.jaxb.xsom.version> <org.glassfish.jaxb.xsom.version>2.3.3-b02</org.glassfish.jaxb.xsom.version>
<undertow.version>2.2.22.Final</undertow.version> <undertow.version>2.2.22.Final</undertow.version>
@ -358,9 +357,9 @@
<version>${sun.istack.version}</version> <version>${sun.istack.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax.xml.bind</groupId> <groupId>com.sun.xml.messaging.saaj</groupId>
<artifactId>jaxb-api</artifactId> <artifactId>saaj-impl</artifactId>
<version>${javax.xml.bind.jaxb.version}</version> <version>${sun.saaj.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.sun.xml.bind.external</groupId> <groupId>com.sun.xml.bind.external</groupId>

View file

@ -57,6 +57,10 @@
<groupId>jakarta.xml.ws</groupId> <groupId>jakarta.xml.ws</groupId>
<artifactId>jakarta.xml.ws-api</artifactId> <artifactId>jakarta.xml.ws-api</artifactId>
</dependency> </dependency>
<dependency>
<groupId>com.sun.xml.messaging.saaj</groupId>
<artifactId>saaj-impl</artifactId>
</dependency>
</dependencies> </dependencies>
<build> <build>
<resources> <resources>

View file

@ -15,15 +15,16 @@
* License for the specific language governing permissions and limitations under * License for the specific language governing permissions and limitations under
* the License. * the License.
--> -->
<web-app xmlns="http://java.sun.com/xml/ns/javaee" <web-app xmlns = "https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" xsi:schemaLocation = "https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_5_0.xsd"
version="3.0"> version = "5.0">
<module-name>app-profile-jee</module-name> <module-name>app-profile-jee</module-name>
<security-constraint> <security-constraint>
<web-resource-collection> <web-resource-collection>
<web-resource-name>Protected</web-resource-name>
<url-pattern>/profile.jsp</url-pattern> <url-pattern>/profile.jsp</url-pattern>
</web-resource-collection> </web-resource-collection>
<auth-constraint> <auth-constraint>

View file

@ -16,15 +16,16 @@
~ limitations under the License. ~ limitations under the License.
--> -->
<web-app xmlns="http://java.sun.com/xml/ns/javaee" <web-app xmlns = "https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" xsi:schemaLocation = "https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_5_0.xsd"
version="3.0"> version = "5.0">
<module-name>cors-database</module-name> <module-name>cors-database</module-name>
<security-constraint> <security-constraint>
<web-resource-collection> <web-resource-collection>
<web-resource-name>All Resources</web-resource-name>
<url-pattern>/*</url-pattern> <url-pattern>/*</url-pattern>
</web-resource-collection> </web-resource-collection>
<!-- <user-data-constraint> <!-- <user-data-constraint>

View file

@ -17,10 +17,10 @@
~ ~
--> -->
<web-app xmlns="http://java.sun.com/xml/ns/javaee" <web-app xmlns = "https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" xsi:schemaLocation = "https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_5_0.xsd"
version="3.0"> version = "5.0">
<module-name>hello-world-authz-service</module-name> <module-name>hello-world-authz-service</module-name>

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" <web-app xmlns = "https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" xsi:schemaLocation = "https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_5_0.xsd"
version="3.0"> version = "5.0">
<module-name>photoz-restful-api</module-name> <module-name>photoz-restful-api</module-name>

View file

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" <web-app xmlns = "https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" xsi:schemaLocation = "https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_5_0.xsd"
version="3.0"> version = "5.0">
<module-name>servlet-authz-app</module-name> <module-name>servlet-authz-app</module-name>

View file

@ -17,10 +17,10 @@
~ ~
--> -->
<web-app xmlns="http://java.sun.com/xml/ns/javaee" <web-app xmlns = "https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" xsi:schemaLocation = "https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_5_0.xsd"
version="3.0"> version = "5.0">
<module-name>servlet-policy-enforcer</module-name> <module-name>servlet-policy-enforcer</module-name>

View file

@ -98,13 +98,13 @@
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.subethamail</groupId> <groupId>com.icegreen</groupId>
<artifactId>subethasmtp</artifactId> <artifactId>greenmail</artifactId>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.icegreen</groupId> <groupId>org.subethamail</groupId>
<artifactId>greenmail</artifactId> <artifactId>subethasmtp</artifactId>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>