Hej, chcę skonfigurować pulę połączeń przy pomocy asadmin i add-resources na serwerze payara/glassfish. Po wpisaniu polecenia i podaniu scieżki wyrzuca mi błąd:
Attribute "datasource-class-name" must be declared for element type "jdbc-connection-pool"
Może ktoś rzucić okiem i zobaczyć czy plik .xml jest dobrze opisany?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE resources PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Resource Definitions //EN" "http://glassfish.org/dtds/glassfish-resources_1_5.dtd">
<resources>
<jdbc-resource enabled="true" jndi-name="jdbc/db1" object-type="user" pool-name="db1pool">
<description/>
</jdbc-resource>
<jdbc-connection-pool
allow-non-component-callers="false"
associate-with-thread="false"
connection-creation-retry-attempts="0"
connection-leak-reclaim="false"
connection-leak-timeout-in-seconds="0"
connection-validation-method="auto-commit"
datasource-class-name="org.apache.derby.jdbc.ClientDataSource"
fail-all-connections="false"
idle-timeout-in-seconds="300"
is-connection-validationrequired="false"
is-isolation-level-guaranteed="true"
lazy-connection-association="false"
lazy-connection-enlistment="false"
match-connections="false"
max-connection-usage-count="0"
max-pool-size="32"
max-wait-time-in-millis="60000"
name="db1pool"
non-transactional-connections="false"
poolresize-quantity="2"
res-type="javax.sql.DataSource"
statement-timeout-in-seconds="-1"
steady-pool-size="8"
validate-atmost-once-period-inseconds="0"
wrap-jdbc-objects="false"
connection-creationretry-interval-in-seconds="10">
<property name="URL" value="jdbc:derby://localhost:1527/auctionhaouse"/>
<property name="serverName" value="localhost"/>
<property name="PortNumber" value="1527"/>
<property name="DatabaseName" value="auctionhouse"/>
<property name="User" value="app"/>
<property name="Password" value="app"/>
</jdbc-connection-pool>
</resources>