Problem z jdbc-connection-pool i add-resources w glassfish

0

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>
0

Może literówka w pierwszej linii:

<property name="URL" value="jdbc:derby://localhost:1527/auctionhaouse"/>
 <property name="serverName" value="localhost"/>
 <property name="PortNumber" value="1527"/>
 <property name="DatabaseName" value="auctionhouse"/>
0

A weź spróbuj datasource-classname, czyli bez drugiego myślnika. Rozumiem że już restartowałeś serwer? Popatrz też (jeśli jeszcze nie patrzyłeś) na te linki, może pomogą:
https://docs.oracle.com/cd/E19226-01/820-7693/giyil/index.html
https://docs.oracle.com/cd/E19575-01/821-0185/ablip/index.html
https://docs.oracle.com/cd/E72452_01/tuxedo/docs1222/javaserv/javaservconfig.html

0

Było trochę błędów, brakowało myślników @Pinek po prostu wziąłem i sprawdziłem czy poprawnie napisana jest każda własność z komunikatu, dzięki wszystkim.

1 użytkowników online, w tym zalogowanych: 0, gości: 1