Payara
Payara copied to clipboard
Bug Report: Attribute "skip-client-info-validation" must be declared for element type "jdbc-connection-pool".
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
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:
- Locate the
payara-resources_1_8.dtdfile inPayaraServerInstalationFolder\glassfish\lib\dtds - 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">