Payara icon indicating copy to clipboard operation
Payara copied to clipboard

Bug Report: Attribute "skip-client-info-validation" must be declared for element type "jdbc-connection-pool".

Open albanf opened this issue 4 months ago • 1 comments

Brief Summary

Using Payara Community 6.2025.8. When using a resource XML file to create JDBC connection pools, the attribute skip-client-info-validation is not supported. Related to https://github.com/payara/Payara/pull/7271

Expected Outcome

add-resources command fails

Current Outcome

add-resources command succeeds

Reproducer

Resource file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE resources PUBLIC
        "-//Payara.fish//DTD Payara Server 4 Resource Definitions//EN"
        "http://docs.payara.fish/schemas/payara-resources_1_8.dtd">
<resources>
    <jdbc-connection-pool name="DbPool"
                          datasource-classname="com.mysql.cj.jdbc.MysqlDataSource"
                          res-type="javax.sql.DataSource"
                          skip-client-info-validation="true">
        <description>Connection pool</description>
        <property name="url" value="jdbc:mysql://localhost:3306/db"/>
        <property name="user" value="user"/>
        <property name="password" value="password"/>
    </jdbc-connection-pool>
</resources>
asadmin add-resources resources.xml
remote failure: add-resources <resources.xml> failed
Attribute "skip-client-info-validation" must be declared for element type "jdbc-connection-pool".
Command add-resources failed.

Operating System

Linux

JDK Version

Temurin-21.0.7+6

Payara Distribution

Payara Server Full Profile

albanf avatar Aug 25 '25 10:08 albanf

I have verified the issue and escalated it to the platform development team with the reference FISH-12088.

Before we add a new attribute for Payara Server distributions, you can add it to your existing installation:

  1. Locate the payara-resources_1_8.dtd file in PayaraServerInstalationFolder\glassfish\lib\dtds
  2. Make the following changes:

Current [line 585] wrap-jdbc-objects %boolean; "true">

New [lines 585-586]

wrap-jdbc-objects %boolean; "true"
skip-client-info-validation (true|false) "false">

artur-mal avatar Sep 10 '25 09:09 artur-mal