Class name is wrong or classpath is not set for : com.mysql.cj.jdbc. #25670
Replies: 14 comments 10 replies
-
What’s your connection pool configuration? What is the datasource class used in the configuration? The error suggests that “com.mysql.cj.jdbc.” class cannot be found. But it’s not a class name. It seems like your configuration is corrupted and doesn’t contain the full class name |
Beta Was this translation helpful? Give feedback.
-
Hello Ondro,
I have copied the configuration that I have working for version 4.1. This is:
Pool Name: HolidaysConnectionPool
Resource Type: java.sql.Driver
Driver Classname: com.mysql.cj.jdbc.Drive
and I have put the driver file mysql-connector-java-8.0.17.jar in C:\glassfish7\glassfish\domains\domain1\lib
From: Ondro Mihályi ***@***.***>
Sent: Sunday, August 17, 2025 8:01 PM
To: eclipse-ee4j/glassfish ***@***.***>
Cc: Daniel Schwartz ***@***.***>; Author ***@***.***>
Subject: Re: [eclipse-ee4j/glassfish] Class name is wrong or classpath is not set for : com.mysql.cj.jdbc. (Discussion #25670)
What’s your connection pool configuration? What is the datasource class used in the configuration?
—
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_eclipse-2Dee4j_glassfish_discussions_25670-23discussioncomment-2D14135070&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AbCalLxzopgQUG9LLcXdB80OM-GtDfItX76RMxNYqz4&m=vT_vm622IOdP_udeDp-XSC4Of8Pk1lblhI06e97QbrhaI_gLXpFBAZWgPKM9wora&s=cay7lZozRYBCy28g1cvNLAZ_-abDWDUumltWW5Za6jg&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AAPBGPPQLCAFG4CDFKDKP733OEJSHAVCNFSM6AAAAACEDIMTWCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMJTGUYDOMA&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AbCalLxzopgQUG9LLcXdB80OM-GtDfItX76RMxNYqz4&m=vT_vm622IOdP_udeDp-XSC4Of8Pk1lblhI06e97QbrhaI_gLXpFBAZWgPKM9wora&s=jzF45wbFYrCSJ2e4id-qlU2g8MKnm7Gq1mpASIjvt6o&e=>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
From: Ondro Mihályi ***@***.***>
Sent: Monday, August 18, 2025 3:40 AM
To: eclipse-ee4j/glassfish ***@***.***>
Cc: Daniel Schwartz ***@***.***>; Author ***@***.***>
Subject: Re: [eclipse-ee4j/glassfish] Class name is wrong or classpath is not set for : com.mysql.cj.jdbc. (Discussion #25670)
According to the error message, GlassFish only picks up part of the driver class name: "com.mysql.cj.jdbc." Can you post the full error from the log?
—
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_eclipse-2Dee4j_glassfish_discussions_25670-23discussioncomment-2D14137635&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AbCalLxzopgQUG9LLcXdB80OM-GtDfItX76RMxNYqz4&m=T3YD2T_TsuAa_nLGE1MHt9I6UsxGBzbK--AYgWaIoZFanyfF_PoJS9U2Mc4_Gpt2&s=0FCVnpxCwcUeSFIYYy31om6zK9ms5kFVoWUQUKdEUm4&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AAPBGPK4SBUSD2TCP75F26D3OF7LNAVCNFSM6AAAAACEDIMTWCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMJTG43DGNI&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AbCalLxzopgQUG9LLcXdB80OM-GtDfItX76RMxNYqz4&m=T3YD2T_TsuAa_nLGE1MHt9I6UsxGBzbK--AYgWaIoZFanyfF_PoJS9U2Mc4_Gpt2&s=NrPodqvO3wprb8SRjTG1XjN3ZMoUI3vJokmG38o2ss8&e=>.
You are receiving this Here is where the error is thrown:
[2025-08-18T10:20:46.099507-04:00] [GF 7.0.25] [SEVERE] [jdbc.exc_cnfe_ds] [jakarta.enterprise.resource.resourceadapter.com.sun.gjc.util] [tid: _ThreadID=97 _ThreadName=admin-listener(4)] [levelValue: 1000] [[
RAR5099 : Wrong class name or classpath for Datasource Object
java.lang.ClassNotFoundException: com.mysql.cj.jdbc.Drive
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
...stack trace ...
[2025-08-18T10:20:46.105489-04:00] [GF 7.0.25] [SEVERE] [] [org.glassfish.admingui] [tid: _ThreadID=217 _ThreadName=admin-listener(7)] [levelValue: 1000] [[
RestResponse.getResponse() gives FAILURE. endpoint = 'http://localhost:4848/management/domain/resources/ping-connection-pool.json'; attrs = '{id=HolidaysConnectionPool}']]because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
There were two options in the drop-down menu, one with the "r" and one without. There seemed to be something messed up in the Glassfish instance, so I reinstalled it and started over. Here is my current set up.
The JDBC Connection Pools page shows:
HolidaysConnectionPool java.sql.Driver com.mysql.cj.jdbc.Driver
The Edit JDBC Connection Pool page shows:
Pool Name: HolidaysConnectionPool
Resource Type: java.sql.Driver
Datasource Classname:
Driver Classname: com.mysql.cj.jdbc.Driver
When I click the ping button I get:
An error has occurred Ping Connection Pool failed for ***@***.******@***.***[jndiName=HolidaysConnectionPool>, applicationName=null, moduleName=null].
Class name is wrong or classpath is not set for : com.mysql.cj.jdbc.Driver Please check the server.log for more details. An error has occurred
Ping Connection Pool failed for ***@***.******@***.***[jndiName=HolidaysConnectionPool>, applicationName=null, moduleName=null]. Class name is wrong or classpath is not set for : com.mysql.cj.jdbc.Driver Please check the server.log for more details.
The server.log file shows:
[2025-08-18T12:49:11.664158-04:00] [GF 7.0.25] [SEVERE] [] [jakarta.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service] [tid: _ThreadID=218 _ThreadName=admin-listener(6)] [levelValue: 1000] [[
Exception while creating an unpooled [test] connection for pool ***@***.******@***.***[jndiName=HolidaysConnectionPool>, applicationName=null, moduleName=null]
jakarta.resource.ResourceException: Class name is wrong or classpath is not set for : com.mysql.cj.jdbc.Driver
at Connector(__ds_jdbc_ra)//com.sun.gjc.common.DataSourceObjectBuilder.getDataSourceObject(DataSourceObjectBuilder.java:282)
... stack trace ...
From: Piotrek Żygieło ***@***.***>
Sent: Monday, August 18, 2025 10:51 AM
To: eclipse-ee4j/glassfish ***@***.***>
Cc: Daniel Schwartz ***@***.***>; Author ***@***.***>
Subject: Re: [eclipse-ee4j/glassfish] Class name is wrong or classpath is not set for : com.mysql.cj.jdbc. (Discussion #25670)
If this is real log, then
com.mysql.cj.jdbc.Drive
I'm pretty sure there is missing r. (https://dev.mysql.com/doc/connector-j/en/connector-j-reference-driver-name.html<https://urldefense.proofpoint.com/v2/url?u=https-3A__dev.mysql.com_doc_connector-2Dj_en_connector-2Dj-2Dreference-2Ddriver-2Dname.html&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AbCalLxzopgQUG9LLcXdB80OM-GtDfItX76RMxNYqz4&m=eMQu6DT6sNKGhb4IkbnxDf9UuJDph-blpmjcBXp2xFUvVjpGtWhqkgIQodrPGd59&s=_WWRwK62AzNgMA0v_6env2D2VA-Y2XAH87v0FAVEgJE&e=>):
The name of the class that implements java.sql.Driver in MySQL Connector/J is com.mysql.cj.jdbc.Driver.
-
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_eclipse-2Dee4j_glassfish_discussions_25670-23discussioncomment-2D14142126&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AbCalLxzopgQUG9LLcXdB80OM-GtDfItX76RMxNYqz4&m=eMQu6DT6sNKGhb4IkbnxDf9UuJDph-blpmjcBXp2xFUvVjpGtWhqkgIQodrPGd59&s=9yldsEqsOO0QL3NCSF3UgZaHKc-fvNs9XqXB6rbKilg&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AAPBGPJMCG5HTVH4FCX637T3OHR3NAVCNFSM6AAAAACEDIMTWCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMJUGIYTENQ&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AbCalLxzopgQUG9LLcXdB80OM-GtDfItX76RMxNYqz4&m=eMQu6DT6sNKGhb4IkbnxDf9UuJDph-blpmjcBXp2xFUvVjpGtWhqkgIQodrPGd59&s=vfh8jy5w9ZXHhUGAcQyzCwAAhj1zqOIlaGoPdMejKf8&e=>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Sorry, when I reinstalled Glassfish I forgot to copy in the driver file. Now when I run
dir C:\glassfish7\glassfish\domains\domain1\lib\*mysql*
I get:
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 9/17/2019 2:41 PM 2321813 mysql-connector-java-8.0.17.jar
Also, I tried doing the ping again and this time got:
An error has occurred Ping Connection Pool failed for ***@***.******@***.***[jndiName=HolidaysConnectionPool>, applicationName=null, moduleName=null].
The connection could not be allocated: No suitable driver found for jdbc.mysql.localhost.3306/holidays Please check the server.log for more details. An error has occurred
Ping Connection Pool failed for ***@***.******@***.***[jndiName=HolidaysConnectionPool>, applicationName=null, moduleName=null]. The connection could not be allocated: No suitable driver found for jdbc.mysql.localhost.3306/holidays Please check the server.log for more details.
The server log shows:
[2025-08-18T14:31:49.854218-04:00] [GF 7.0.25] [SEVERE] [jdbc.exc_create_mc] [jakarta.enterprise.resource.resourceadapter.com.sun.gjc.spi] [tid: _ThreadID=94 _ThreadName=admin-listener(1)] [levelValue: 1000] [[
RAR5110 : Error creating managed Connection with user and password : {0}
java.sql.SQLException: No suitable driver found for jdbc.mysql.localhost.3306/holidays
This all works in Glassfish 4.1. Why not here with 7.0.25?
From: Piotrek Żygieło ***@***.***>
Sent: Monday, August 18, 2025 2:15 PM
To: eclipse-ee4j/glassfish ***@***.***>
Cc: Daniel Schwartz ***@***.***>; Author ***@***.***>
Subject: Re: [eclipse-ee4j/glassfish] Class name is wrong or classpath is not set for : com.mysql.cj.jdbc. (Discussion #25670)
This return nothing. There is no such file mysql in that lib directory.
What do you mean by that?
I have set up the new version exactly as the previous one, with the JDBC driver mysql-connector-java-8.0.17.jar in C:\glassfish7\glassfish\domains\domain1\lib.
I do not understand.
—
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_eclipse-2Dee4j_glassfish_discussions_25670-23discussioncomment-2D14144607&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AbCalLxzopgQUG9LLcXdB80OM-GtDfItX76RMxNYqz4&m=xY2w88LkwvMNnC8RJhCE52eqvOAhlrvdXz0y7wSRrcup0XUcREtjwljOwksZMsrg&s=lq67y2Sxs9NYgznI0SO9ygg2x9vqxE_anvINoPvWp2s&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AAPBGPM66ROS6ODY2PZELQD3OIJ25AVCNFSM6AAAAACEDIMTWCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMJUGQ3DANY&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AbCalLxzopgQUG9LLcXdB80OM-GtDfItX76RMxNYqz4&m=xY2w88LkwvMNnC8RJhCE52eqvOAhlrvdXz0y7wSRrcup0XUcREtjwljOwksZMsrg&s=s6-p0rnytsP8-IUPq_847tcvWfeevGnm1fMhZW4Jw4Q&e=>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
bad format |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Okay, I have converted these to text.
This is the Edit JDBC Connection Pool Properties page for version 4.1:
Pool Name:
HolidaysConnectionPool
Additional Properties (7)
Select All Deselect All
Select
Name Button to sort column Name as the primary sort column.
Value Button to sort column Value as the primary sort column.
Description Button to sort column Description as the primary sort column.
allowPublicKeyRetrieval
true
useSSL
false
password
rootpwd
useLegacyDatetimeCode
false
serverTimezone
UTC
URL
jdbc:mysql://localhost:3306/holidays
user
root
This is the domain.xml file for version 4.1:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<domain application-root="${com.sun.aas.instanceRoot}/applications" version="13" log-root="${com.sun.aas.instanceRoot}/logs">
<security-configurations>
<authentication-service default="true" name="adminAuth" use-password-credential="true">
<security-provider provider-name="adminSpc" name="spcrealm" type="LoginModule">
<login-module-config module-class="com.sun.enterprise.admin.util.AdminLoginModule" control-flag="sufficient" name="adminSpecialLM">
<property name="config" value="server-config"/>
<property name="auth-realm" value="admin-realm"/>
</login-module-config>
</security-provider>
<security-provider provider-name="adminFile" name="filerealm" type="LoginModule">
<login-module-config module-class="com.sun.enterprise.security.auth.login.FileLoginModule" control-flag="sufficient" name="adminFileLM">
<property name="config" value="server-config"/>
<property name="auth-realm" value="admin-realm"/>
</login-module-config>
</security-provider>
</authentication-service>
<authorization-service default="true" name="authorizationService">
<security-provider provider-name="simpleAuthorizationProvider" name="simpleAuthorization" type="Simple">
<authorization-provider-config name="simpleAuthorizationProviderConfig" support-policy-deploy="false"/>
</security-provider>
</authorization-service>
</security-configurations>
<managed-job-config/>
<system-applications>
<application context-root="" object-type="system-admin" directory-deployed="true" name="__admingui" location="${com.sun.aas.installRootURI}/lib/install/applications/__admingui">
<module name="__admingui">
<engine sniffer="web"/>
<engine sniffer="security"/>
</module>
</application>
</system-applications>
<resources>
<jdbc-resource pool-name="__TimerPool" object-type="system-admin" jndi-name="jdbc/__TimerPool"/>
<jdbc-resource pool-name="DerbyPool" object-type="system-all" jndi-name="jdbc/__default"/>
<jdbc-connection-pool datasource-classname="org.apache.derby.jdbc.EmbeddedXADataSource" name="__TimerPool" res-type="javax.sql.XADataSource">
<property name="databaseName" value="${com.sun.aas.instanceRoot}/lib/databases/ejbtimer"/>
<property name="connectionAttributes" value=";create=true"/>
</jdbc-connection-pool>
<jdbc-connection-pool is-isolation-level-guaranteed="false" datasource-classname="org.apache.derby.jdbc.ClientDataSource" name="DerbyPool" res-type="javax.sql.DataSource">
<property name="PortNumber" value="1527"/>
<property name="Password" value="APP"/>
<property name="User" value="APP"/>
<property name="serverName" value="localhost"/>
<property name="DatabaseName" value="sun-appserv-samples"/>
<property name="connectionAttributes" value=";create=true"/>
</jdbc-connection-pool>
<connector-connection-pool resource-adapter-name="jmsra" max-pool-size="250" steady-pool-size="1" name="jms/__defaultConnectionFactory-Connection-Pool" connection-definition-name="javax.jms.ConnectionFactory"/>
<connector-resource pool-name="jms/__defaultConnectionFactory-Connection-Pool" object-type="system-all-req" jndi-name="jms/__defaultConnectionFactory"/>
<context-service object-type="system-all" jndi-name="concurrent/__defaultContextService"/>
<managed-executor-service object-type="system-all" jndi-name="concurrent/__defaultManagedExecutorService"/>
<managed-scheduled-executor-service object-type="system-all" jndi-name="concurrent/__defaultManagedScheduledExecutorService"/>
<managed-thread-factory object-type="system-all" jndi-name="concurrent/__defaultManagedThreadFactory"/>
<jdbc-connection-pool max-pool-size="1" driver-classname="com.mysql.cj.jdbc.Driver" steady-pool-size="1" name="HolidaysConnectionPool" res-type="java.sql.Driver">
<property name="allowPublicKeyRetrieval" value="true"/>
<property name="useSSL" value="false"/>
<property name="password" value="rootpwd"/>
<property name="useLegacyDatetimeCode" value="false"/>
<property name="serverTimezone" value="UTC"/>
<property name="URL" value="jdbc:mysql://localhost:3306/holidays"/>
<property name="user" value="root"/>
</jdbc-connection-pool>
<jdbc-resource pool-name="HolidaysConnectionPool" jndi-name="jdbc/holidays"/>
</resources>
<servers>
<server config-ref="server-config" name="server">
<application-ref ref="__admingui" virtual-servers="__asadmin"/>
<application-ref ref="HolidaysRESTJSON-1.0-SNAPSHOT" virtual-servers="server"/>
<resource-ref ref="jdbc/__TimerPool"/>
<resource-ref ref="jdbc/__default"/>
<resource-ref ref="jms/__defaultConnectionFactory"/>
<resource-ref ref="concurrent/__defaultContextService"/>
<resource-ref ref="concurrent/__defaultManagedExecutorService"/>
<resource-ref ref="concurrent/__defaultManagedScheduledExecutorService"/>
<resource-ref ref="concurrent/__defaultManagedThreadFactory"/>
<resource-ref ref="jdbc/holidays"/>
</server>
</servers>
<nodes>
<node name="localhost-domain1" install-dir="${com.sun.aas.productRoot}" type="CONFIG" node-host="localhost"/>
</nodes>
<configs>
<config name="server-config">
<system-property name="JMS_PROVIDER_PORT" description="Port Number that JMS Service will listen for remote clients connection." value="7676"/>
<http-service access-logging-enabled="true">
<access-log/>
<virtual-server network-listeners="http-listener-1,http-listener-2" id="server"/>
<virtual-server network-listeners="admin-listener" id="__asadmin"/>
</http-service>
<iiop-service>
<orb use-thread-pool-ids="thread-pool-1"/>
<iiop-listener address="0.0.0.0" port="3700" lazy-init="true" id="orb-listener-1"/>
<iiop-listener address="0.0.0.0" port="3820" id="SSL" security-enabled="true">
<ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as"/>
</iiop-listener>
<iiop-listener address="0.0.0.0" port="3920" id="SSL_MUTUALAUTH" security-enabled="true">
<ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as" client-auth-enabled="true"/>
</iiop-listener>
</iiop-service>
<admin-service system-jmx-connector-name="system" type="das-and-server">
<jmx-connector address="0.0.0.0" port="8686" name="system" auth-realm-name="admin-realm" security-enabled="false"/>
<property name="adminConsoleContextRoot" value="/admin"/>
<property name="adminConsoleDownloadLocation" value="${com.sun.aas.installRoot}/lib/install/applications/admingui.war"/>
<property name="ipsRoot" value="${com.sun.aas.installRoot}/.."/>
<das-config/>
</admin-service>
<connector-service/>
<transaction-service tx-log-dir="${com.sun.aas.instanceRoot}/logs"/>
<batch-runtime-configuration/>
<jms-service default-jms-host="default_JMS_host" type="EMBEDDED">
<jms-host port="${JMS_PROVIDER_PORT}" name="default_JMS_host" host="localhost"/>
</jms-service>
<cdi-service/>
<web-container>
<session-config>
<session-manager>
<store-properties/>
<manager-properties/>
</session-manager>
<session-properties/>
</session-config>
</web-container>
<ejb-container>
<ejb-timer-service/>
</ejb-container>
<rest-config/>
<diagnostic-service/>
<security-service>
<auth-realm classname="com.sun.enterprise.security.auth.realm.file.FileRealm" name="admin-realm">
<property name="file" value="${com.sun.aas.instanceRoot}/config/admin-keyfile"/>
<property name="jaas-context" value="fileRealm"/>
</auth-realm>
<auth-realm classname="com.sun.enterprise.security.auth.realm.file.FileRealm" name="file">
<property name="file" value="${com.sun.aas.instanceRoot}/config/keyfile"/>
<property name="jaas-context" value="fileRealm"/>
</auth-realm>
<auth-realm classname="com.sun.enterprise.security.auth.realm.certificate.CertificateRealm" name="certificate"/>
<jacc-provider policy-provider="com.sun.enterprise.security.provider.PolicyWrapper" name="default" policy-configuration-factory-provider="com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl">
<property name="repository" value="${com.sun.aas.instanceRoot}/generated/policy"/>
</jacc-provider>
<jacc-provider policy-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyProvider" name="simple" policy-configuration-factory-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyConfigurationFactory"/>
<audit-module classname="com.sun.enterprise.security.ee.Audit" name="default">
<property name="auditOn" value="false"/>
</audit-module>
<message-security-config auth-layer="SOAP">
<provider-config provider-type="client" provider-id="XWS_ClientProvider" class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule">
<request-policy auth-source="content"/>
<response-policy auth-source="content"/>
<property name="encryption.key.alias" value="s1as"/>
<property name="signature.key.alias" value="s1as"/>
<property name="dynamic.username.password" value="false"/>
<property name="debug" value="false"/>
</provider-config>
<provider-config provider-type="client" provider-id="ClientProvider" class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule">
<request-policy auth-source="content"/>
<response-policy auth-source="content"/>
<property name="encryption.key.alias" value="s1as"/>
<property name="signature.key.alias" value="s1as"/>
<property name="dynamic.username.password" value="false"/>
<property name="debug" value="false"/>
<property name="security.config" value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"/>
</provider-config>
<provider-config provider-type="server" provider-id="XWS_ServerProvider" class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule">
<request-policy auth-source="content"/>
<response-policy auth-source="content"/>
<property name="encryption.key.alias" value="s1as"/>
<property name="signature.key.alias" value="s1as"/>
<property name="debug" value="false"/>
</provider-config>
<provider-config provider-type="server" provider-id="ServerProvider" class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule">
<request-policy auth-source="content"/>
<response-policy auth-source="content"/>
<property name="encryption.key.alias" value="s1as"/>
<property name="signature.key.alias" value="s1as"/>
<property name="debug" value="false"/>
<property name="security.config" value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"/>
</provider-config>
</message-security-config>
<message-security-config auth-layer="HttpServlet">
<provider-config provider-type="server" provider-id="GFConsoleAuthModule" class-name="org.glassfish.admingui.common.security.AdminConsoleAuthModule">
<request-policy auth-source="sender"/>
<response-policy/>
<property name="loginPage" value="/login.jsf"/>
<property name="loginErrorPage" value="/loginError.jsf"/>
</provider-config>
</message-security-config>
<property name="default-digest-algorithm" value="SHA-256"/>
</security-service>
<java-config classpath-suffix="" debug-options="-agentlib:jdwp=transport=dt_socket,address=9009,server=n,suspend=y" java-home="C:\Program Files\Java\jdk1.8.0_144" system-classpath="">
<jvm-options>-XX:MaxPermSize=192m</jvm-options>
<jvm-options>-client</jvm-options>
<jvm-options>-Djava.awt.headless=true</jvm-options>
<jvm-options>-Djdk.corba.allowOutputStreamSubclass=true</jvm-options>
<jvm-options>-Djavax.xml.accessExternalSchema=all</jvm-options>
<jvm-options>-Djavax.management.builder.initial=com.sun.enterprise.v3.admin.AppServerMBeanServerBuilder</jvm-options>
<jvm-options>-XX:+UnlockDiagnosticVMOptions</jvm-options>
<jvm-options>-Djava.endorsed.dirs=${com.sun.aas.installRoot}/modules/endorsed${path.separator}${com.sun.aas.installRoot}/lib/endorsed</jvm-options>
<jvm-options>-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy</jvm-options>
<jvm-options>-Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf</jvm-options>
<jvm-options>-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as</jvm-options>
<jvm-options>-Xmx512m</jvm-options>
<jvm-options>-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks</jvm-options>
<jvm-options>-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks</jvm-options>
<jvm-options>-Djava.ext.dirs=${com.sun.aas.javaRoot}/lib/ext${path.separator}${com.sun.aas.javaRoot}/jre/lib/ext${path.separator}${com.sun.aas.instanceRoot}/lib/ext</jvm-options>
<jvm-options>-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver</jvm-options>
<jvm-options>-DANTLR_USE_DIRECT_CLASS_LOADING=true</jvm-options>
<jvm-options>-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory</jvm-options>
<jvm-options>-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall</jvm-options>
<jvm-options>-Dosgi.shell.telnet.port=6666</jvm-options>
<jvm-options>-Dosgi.shell.telnet.maxconn=1</jvm-options>
<jvm-options>-Dosgi.shell.telnet.ip=127.0.0.1</jvm-options>
<jvm-options>-Dgosh.args=--nointeractive</jvm-options>
<jvm-options>-Dfelix.fileinstall.dir=${com.sun.aas.installRoot}/modules/autostart/</jvm-options>
<jvm-options>-Dfelix.fileinstall.poll=5000</jvm-options>
<jvm-options>-Dfelix.fileinstall.log.level=2</jvm-options>
<jvm-options>-Dfelix.fileinstall.bundles.new.start=true</jvm-options>
<jvm-options>-Dfelix.fileinstall.bundles.startTransient=true</jvm-options>
<jvm-options>-Dfelix.fileinstall.disableConfigSave=false</jvm-options>
<jvm-options>-XX:NewRatio=2</jvm-options>
<jvm-options>-Dcom.ctc.wstx.returnNullForDefaultNamespace=true</jvm-options>
</java-config>
<network-config>
<protocols>
<protocol name="http-listener-1">
<http max-connections="250" default-virtual-server="server">
<file-cache/>
</http>
</protocol>
<protocol name="http-listener-2" security-enabled="true">
<http max-connections="250" default-virtual-server="server">
<file-cache/>
</http>
<ssl ssl3-enabled="false" classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as"/>
</protocol>
<protocol name="admin-listener">
<http encoded-slash-enabled="true" max-connections="250" default-virtual-server="__asadmin">
<file-cache/>
</http>
</protocol>
</protocols>
<network-listeners>
<network-listener protocol="http-listener-1" port="8080" name="http-listener-1" thread-pool="http-thread-pool" transport="tcp"/>
<network-listener protocol="http-listener-2" port="8181" name="http-listener-2" thread-pool="http-thread-pool" transport="tcp"/>
<network-listener protocol="admin-listener" port="4848" name="admin-listener" thread-pool="admin-thread-pool" transport="tcp"/>
</network-listeners>
<transports>
<transport name="tcp"/>
</transports>
</network-config>
<thread-pools>
<thread-pool name="admin-thread-pool" max-queue-size="256" max-thread-pool-size="50"/>
<thread-pool name="http-thread-pool"/>
<thread-pool name="thread-pool-1" max-thread-pool-size="200"/>
</thread-pools>
<group-management-service>
<failure-detection/>
</group-management-service>
<monitoring-service>
<module-monitoring-levels jdbc-connection-pool="HIGH" http-service="HIGH"/>
</monitoring-service>
<availability-service/>
</config>
<config name="default-config">
<http-service>
<access-log/>
<virtual-server network-listeners="http-listener-1, http-listener-2" id="server">
<property name="default-web-xml" value="${com.sun.aas.instanceRoot}/config/default-web.xml"/>
</virtual-server>
<virtual-server network-listeners="admin-listener" id="__asadmin"/>
</http-service>
<iiop-service>
<orb use-thread-pool-ids="thread-pool-1"/>
<iiop-listener address="0.0.0.0" port="${IIOP_LISTENER_PORT}" id="orb-listener-1"/>
<iiop-listener address="0.0.0.0" port="${IIOP_SSL_LISTENER_PORT}" id="SSL" security-enabled="true">
<ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as"/>
</iiop-listener>
<iiop-listener address="0.0.0.0" port="${IIOP_SSL_MUTUALAUTH_PORT}" id="SSL_MUTUALAUTH" security-enabled="true">
<ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as" client-auth-enabled="true"/>
</iiop-listener>
</iiop-service>
<admin-service system-jmx-connector-name="system">
<jmx-connector address="0.0.0.0" port="${JMX_SYSTEM_CONNECTOR_PORT}" name="system" auth-realm-name="admin-realm" security-enabled="false"/>
<property name="adminConsoleDownloadLocation" value="${com.sun.aas.installRoot}/lib/install/applications/admingui.war"/>
<das-config/>
</admin-service>
<web-container>
<session-config>
<session-manager>
<manager-properties/>
<store-properties/>
</session-manager>
<session-properties/>
</session-config>
</web-container>
<ejb-container>
<ejb-timer-service/>
</ejb-container>
<mdb-container/>
<jms-service addresslist-behavior="priority" default-jms-host="default_JMS_host" type="EMBEDDED">
<jms-host port="${JMS_PROVIDER_PORT}" host="localhost" name="default_JMS_host"/>
</jms-service>
<log-service file="${com.sun.aas.instanceRoot}/logs/server.log" log-rotation-limit-in-bytes="2000000">
<module-log-levels/>
</log-service>
<security-service>
<auth-realm classname="com.sun.enterprise.security.auth.realm.file.FileRealm" name="admin-realm">
<property name="file" value="${com.sun.aas.instanceRoot}/config/admin-keyfile"/>
<property name="jaas-context" value="fileRealm"/>
</auth-realm>
<auth-realm classname="com.sun.enterprise.security.auth.realm.file.FileRealm" name="file">
<property name="file" value="${com.sun.aas.instanceRoot}/config/keyfile"/>
<property name="jaas-context" value="fileRealm"/>
</auth-realm>
<auth-realm classname="com.sun.enterprise.security.auth.realm.certificate.CertificateRealm" name="certificate"/>
<jacc-provider policy-provider="com.sun.enterprise.security.provider.PolicyWrapper" name="default" policy-configuration-factory-provider="com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl">
<property name="repository" value="${com.sun.aas.instanceRoot}/generated/policy"/>
</jacc-provider>
<jacc-provider policy-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyProvider" name="simple" policy-configuration-factory-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyConfigurationFactory"/>
<audit-module classname="com.sun.enterprise.security.ee.Audit" name="default">
<property name="auditOn" value="false"/>
</audit-module>
<message-security-config auth-layer="SOAP">
<provider-config provider-type="client" provider-id="XWS_ClientProvider" class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule">
<request-policy auth-source="content"/>
<response-policy auth-source="content"/>
<property name="encryption.key.alias" value="s1as"/>
<property name="signature.key.alias" value="s1as"/>
<property name="dynamic.username.password" value="false"/>
<property name="debug" value="false"/>
</provider-config>
<provider-config provider-type="client" provider-id="ClientProvider" class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule">
<request-policy auth-source="content"/>
<response-policy auth-source="content"/>
<property name="encryption.key.alias" value="s1as"/>
<property name="signature.key.alias" value="s1as"/>
<property name="dynamic.username.password" value="false"/>
<property name="debug" value="false"/>
<property name="security.config" value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"/>
</provider-config>
<provider-config provider-type="server" provider-id="XWS_ServerProvider" class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule">
<request-policy auth-source="content"/>
<response-policy auth-source="content"/>
<property name="encryption.key.alias" value="s1as"/>
<property name="signature.key.alias" value="s1as"/>
<property name="debug" value="false"/>
</provider-config>
<provider-config provider-type="server" provider-id="ServerProvider" class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule">
<request-policy auth-source="content"/>
<response-policy auth-source="content"/>
<property name="encryption.key.alias" value="s1as"/>
<property name="signature.key.alias" value="s1as"/>
<property name="debug" value="false"/>
<property name="security.config" value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"/>
</provider-config>
</message-security-config>
</security-service>
<transaction-service automatic-recovery="true" tx-log-dir="${com.sun.aas.instanceRoot}/logs"/>
<diagnostic-service/>
<java-config classpath-suffix="" debug-options="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=${JAVA_DEBUGGER_PORT}" system-classpath="">
<jvm-options>-XX:MaxPermSize=192m</jvm-options>
<jvm-options>-server</jvm-options>
<jvm-options>-Djava.awt.headless=true</jvm-options>
<jvm-options>-Djdk.corba.allowOutputStreamSubclass=true</jvm-options>
<jvm-options>-XX:+UnlockDiagnosticVMOptions</jvm-options>
<jvm-options>-Djava.endorsed.dirs=${com.sun.aas.installRoot}/modules/endorsed${path.separator}${com.sun.aas.installRoot}/lib/endorsed</jvm-options>
<jvm-options>-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy</jvm-options>
<jvm-options>-Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf</jvm-options>
<jvm-options>-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as</jvm-options>
<jvm-options>-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks</jvm-options>
<jvm-options>-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks</jvm-options>
<jvm-options>-Djava.ext.dirs=${com.sun.aas.javaRoot}/lib/ext${path.separator}${com.sun.aas.javaRoot}/jre/lib/ext${path.separator}${com.sun.aas.instanceRoot}/lib/ext</jvm-options>
<jvm-options>-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver</jvm-options>
<jvm-options>-DANTLR_USE_DIRECT_CLASS_LOADING=true</jvm-options>
<jvm-options>-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory</jvm-options>
<jvm-options>-XX:NewRatio=2</jvm-options>
<jvm-options>-Xmx512m</jvm-options>
<jvm-options>-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.fileinstall</jvm-options>
<jvm-options>-Dosgi.shell.telnet.port=${OSGI_SHELL_TELNET_PORT}</jvm-options>
<jvm-options>-Dosgi.shell.telnet.maxconn=1</jvm-options>
<jvm-options>-Dosgi.shell.telnet.ip=127.0.0.1</jvm-options>
<jvm-options>-Dgosh.args=--noshutdown -c noop=true</jvm-options>
<jvm-options>-Dfelix.fileinstall.dir=${com.sun.aas.installRoot}/modules/autostart/</jvm-options>
<jvm-options>-Dfelix.fileinstall.poll=5000</jvm-options>
<jvm-options>-Dfelix.fileinstall.log.level=3</jvm-options>
<jvm-options>-Dfelix.fileinstall.bundles.new.start=true</jvm-options>
<jvm-options>-Dfelix.fileinstall.bundles.startTransient=true</jvm-options>
<jvm-options>-Dfelix.fileinstall.disableConfigSave=false</jvm-options>
</java-config>
<availability-service>
<web-container-availability/>
<ejb-container-availability sfsb-store-pool-name="jdbc/hastore"/>
<jms-availability/>
</availability-service>
<network-config>
<protocols>
<protocol name="http-listener-1">
<http default-virtual-server="server">
<file-cache/>
</http>
</protocol>
<protocol name="http-listener-2" security-enabled="true">
<http default-virtual-server="server">
<file-cache/>
</http>
<ssl ssl3-enabled="false" classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as"/>
</protocol>
<protocol name="admin-listener">
<http max-connections="250" default-virtual-server="__asadmin">
<file-cache/>
</http>
</protocol>
<protocol name="sec-admin-listener" security-enabled="true">
<http encoded-slash-enabled="true" default-virtual-server="__asadmin">
<file-cache/>
</http>
<ssl ssl3-enabled="false" classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" client-auth="want" cert-nickname="glassfish-instance" renegotiate-on-client-auth-want="false"/>
</protocol>
<protocol name="admin-http-redirect">
<http-redirect secure="true"/>
</protocol>
<protocol name="pu-protocol">
<port-unification>
<protocol-finder protocol="sec-admin-listener" classname="org.glassfish.grizzly.config.portunif.HttpProtocolFinder" name="http-finder"/>
<protocol-finder protocol="admin-http-redirect" classname="org.glassfish.grizzly.config.portunif.HttpProtocolFinder" name="admin-http-redirect"/>
</port-unification>
</protocol>
</protocols>
<network-listeners>
<network-listener protocol="http-listener-1" port="${HTTP_LISTENER_PORT}" name="http-listener-1" thread-pool="http-thread-pool" transport="tcp"/>
<network-listener protocol="http-listener-2" port="${HTTP_SSL_LISTENER_PORT}" name="http-listener-2" thread-pool="http-thread-pool" transport="tcp"/>
<network-listener protocol="pu-protocol" port="${ASADMIN_LISTENER_PORT}" name="admin-listener" thread-pool="http-thread-pool" transport="tcp"/>
</network-listeners>
<transports>
<transport name="tcp"/>
</transports>
</network-config>
<thread-pools>
<thread-pool name="http-thread-pool"/>
<thread-pool name="thread-pool-1" max-thread-pool-size="200"/>
<thread-pool name="admin-thread-pool" max-queue-size="256" max-thread-pool-size="50"/>
</thread-pools>
<group-management-service>
<failure-detection/>
</group-management-service>
<system-property name="JMS_PROVIDER_PORT" description="Port Number that JMS Service will listen for remote clients connection." value="27676"/>
<system-property name="ASADMIN_LISTENER_PORT" value="24848"/>
<system-property name="HTTP_LISTENER_PORT" value="28080"/>
<system-property name="HTTP_SSL_LISTENER_PORT" value="28181"/>
<system-property name="IIOP_LISTENER_PORT" value="23700"/>
<system-property name="IIOP_SSL_LISTENER_PORT" value="23820"/>
<system-property name="IIOP_SSL_MUTUALAUTH_PORT" value="23920"/>
<system-property name="JMX_SYSTEM_CONNECTOR_PORT" value="28686"/>
<system-property name="OSGI_SHELL_TELNET_PORT" value="26666"/>
<system-property name="JAVA_DEBUGGER_PORT" value="29009"/>
<monitoring-service>
<module-monitoring-levels/>
</monitoring-service>
</config>
</configs>
<property name="administrative.domain.name" value="domain1"/>
<secure-admin special-admin-indicator="718fe3ff-df18-49f8-84a0-3aeedb3250db">
<secure-admin-principal dn="CN=localhost,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US"/>
<secure-admin-principal dn="CN=localhost-instance,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US"/>
</secure-admin>
<clusters/>
<applications>
<application context-root="/HolidaysRESTJSON-1.0-SNAPSHOT" object-type="user" name="HolidaysRESTJSON-1.0-SNAPSHOT" location="${com.sun.aas.instanceRootURI}/applications/HolidaysRESTJSON-1.0-SNAPSHOT/">
<property name="appLocation" value="${com.sun.aas.instanceRootURI}/applications/__internal/HolidaysRESTJSON-1.0-SNAPSHOT/HolidaysRESTJSON-1.0-SNAPSHOT.war"/>
<property name="archiveType" value="war"/>
<property name="defaultAppName" value="HolidaysRESTJSON-1.0-SNAPSHOT"/>
<module name="HolidaysRESTJSON-1.0-SNAPSHOT">
<engine sniffer="security"/>
<engine sniffer="web"/>
</module>
</application>
</applications>
</domain>
This is the domain.xml file for version 7.0.25:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<domain application-root="${com.sun.aas.instanceRoot}/applications" version="13" log-root="${com.sun.aas.instanceRoot}/logs">
<security-configurations>
<authentication-service default="true" name="adminAuth" use-password-credential="true">
<security-provider provider-name="adminSpc" name="spcrealm" type="LoginModule">
<login-module-config module-class="com.sun.enterprise.admin.util.AdminLoginModule" control-flag="sufficient" name="adminSpecialLM">
<property name="config" value="server-config"/>
<property name="auth-realm" value="admin-realm"/>
</login-module-config>
</security-provider>
<security-provider provider-name="adminFile" name="filerealm" type="LoginModule">
<login-module-config module-class="com.sun.enterprise.security.auth.login.FileLoginModule" control-flag="sufficient" name="adminFileLM">
<property name="config" value="server-config"/>
<property name="auth-realm" value="admin-realm"/>
</login-module-config>
</security-provider>
</authentication-service>
<authorization-service default="true" name="authorizationService">
<security-provider provider-name="simpleAuthorizationProvider" name="simpleAuthorization" type="Simple">
<authorization-provider-config name="simpleAuthorizationProviderConfig" support-policy-deploy="false"/>
</security-provider>
</authorization-service>
</security-configurations>
<managed-job-config/>
<system-applications>
<application context-root="" object-type="system-admin" directory-deployed="true" name="__admingui" location="${com.sun.aas.installRootURI}/lib/install/applications/__admingui">
<module name="__admingui">
<engine sniffer="web"/>
<engine sniffer="security"/>
</module>
</application>
</system-applications>
<resources>
<jdbc-resource pool-name="__TimerPool" object-type="system-admin" jndi-name="jdbc/__TimerPool"/>
<jdbc-resource pool-name="DerbyPool" object-type="system-all" jndi-name="jdbc/__default"/>
<jdbc-connection-pool datasource-classname="org.apache.derby.jdbc.EmbeddedXADataSource" name="__TimerPool" res-type="javax.sql.XADataSource">
<property name="databaseName" value="${com.sun.aas.instanceRoot}/lib/databases/ejbtimer"/>
<property name="connectionAttributes" value=";create=true"/>
</jdbc-connection-pool>
<jdbc-connection-pool is-isolation-level-guaranteed="false" datasource-classname="org.apache.derby.jdbc.ClientDataSource" name="DerbyPool" res-type="javax.sql.DataSource">
<property name="PortNumber" value="1527"/>
<property name="Password" value="APP"/>
<property name="User" value="APP"/>
<property name="serverName" value="localhost"/>
<property name="DatabaseName" value="sun-appserv-samples"/>
<property name="connectionAttributes" value=";create=true"/>
</jdbc-connection-pool>
<connector-connection-pool resource-adapter-name="jmsra" max-pool-size="250" steady-pool-size="1" name="jms/__defaultConnectionFactory-Connection-Pool" connection-definition-name="javax.jms.ConnectionFactory"/>
<connector-resource pool-name="jms/__defaultConnectionFactory-Connection-Pool" object-type="system-all-req" jndi-name="jms/__defaultConnectionFactory"/>
<context-service object-type="system-all" jndi-name="concurrent/__defaultContextService"/>
<managed-executor-service object-type="system-all" jndi-name="concurrent/__defaultManagedExecutorService"/>
<managed-scheduled-executor-service object-type="system-all" jndi-name="concurrent/__defaultManagedScheduledExecutorService"/>
<managed-thread-factory object-type="system-all" jndi-name="concurrent/__defaultManagedThreadFactory"/>
<jdbc-connection-pool max-pool-size="1" driver-classname="com.mysql.cj.jdbc.Driver" steady-pool-size="1" name="HolidaysConnectionPool" res-type="java.sql.Driver">
<property name="allowPublicKeyRetrieval" value="true"/>
<property name="useSSL" value="false"/>
<property name="password" value="rootpwd"/>
<property name="useLegacyDatetimeCode" value="false"/>
<property name="serverTimezone" value="UTC"/>
<property name="URL" value="jdbc:mysql://localhost:3306/holidays"/>
<property name="user" value="root"/>
</jdbc-connection-pool>
<jdbc-resource pool-name="HolidaysConnectionPool" jndi-name="jdbc/holidays"/>
</resources>
<servers>
<server config-ref="server-config" name="server">
<application-ref ref="__admingui" virtual-servers="__asadmin"/>
<application-ref ref="HolidaysRESTJSON-1.0-SNAPSHOT" virtual-servers="server"/>
<resource-ref ref="jdbc/__TimerPool"/>
<resource-ref ref="jdbc/__default"/>
<resource-ref ref="jms/__defaultConnectionFactory"/>
<resource-ref ref="concurrent/__defaultContextService"/>
<resource-ref ref="concurrent/__defaultManagedExecutorService"/>
<resource-ref ref="concurrent/__defaultManagedScheduledExecutorService"/>
<resource-ref ref="concurrent/__defaultManagedThreadFactory"/>
<resource-ref ref="jdbc/holidays"/>
</server>
</servers>
<nodes>
<node name="localhost-domain1" install-dir="${com.sun.aas.productRoot}" type="CONFIG" node-host="localhost"/>
</nodes>
<configs>
<config name="server-config">
<system-property name="JMS_PROVIDER_PORT" description="Port Number that JMS Service will listen for remote clients connection." value="7676"/>
<http-service access-logging-enabled="true">
<access-log/>
<virtual-server network-listeners="http-listener-1,http-listener-2" id="server"/>
<virtual-server network-listeners="admin-listener" id="__asadmin"/>
</http-service>
<iiop-service>
<orb use-thread-pool-ids="thread-pool-1"/>
<iiop-listener address="0.0.0.0" port="3700" lazy-init="true" id="orb-listener-1"/>
<iiop-listener address="0.0.0.0" port="3820" id="SSL" security-enabled="true">
<ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as"/>
</iiop-listener>
<iiop-listener address="0.0.0.0" port="3920" id="SSL_MUTUALAUTH" security-enabled="true">
<ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as" client-auth-enabled="true"/>
</iiop-listener>
</iiop-service>
<admin-service system-jmx-connector-name="system" type="das-and-server">
<jmx-connector address="0.0.0.0" port="8686" name="system" auth-realm-name="admin-realm" security-enabled="false"/>
<property name="adminConsoleContextRoot" value="/admin"/>
<property name="adminConsoleDownloadLocation" value="${com.sun.aas.installRoot}/lib/install/applications/admingui.war"/>
<property name="ipsRoot" value="${com.sun.aas.installRoot}/.."/>
<das-config/>
</admin-service>
<connector-service/>
<transaction-service tx-log-dir="${com.sun.aas.instanceRoot}/logs"/>
<batch-runtime-configuration/>
<jms-service default-jms-host="default_JMS_host" type="EMBEDDED">
<jms-host port="${JMS_PROVIDER_PORT}" name="default_JMS_host" host="localhost"/>
</jms-service>
<cdi-service/>
<web-container>
<session-config>
<session-manager>
<store-properties/>
<manager-properties/>
</session-manager>
<session-properties/>
</session-config>
</web-container>
<ejb-container>
<ejb-timer-service/>
</ejb-container>
<rest-config/>
<diagnostic-service/>
<security-service>
<auth-realm classname="com.sun.enterprise.security.auth.realm.file.FileRealm" name="admin-realm">
<property name="file" value="${com.sun.aas.instanceRoot}/config/admin-keyfile"/>
<property name="jaas-context" value="fileRealm"/>
</auth-realm>
<auth-realm classname="com.sun.enterprise.security.auth.realm.file.FileRealm" name="file">
<property name="file" value="${com.sun.aas.instanceRoot}/config/keyfile"/>
<property name="jaas-context" value="fileRealm"/>
</auth-realm>
<auth-realm classname="com.sun.enterprise.security.auth.realm.certificate.CertificateRealm" name="certificate"/>
<jacc-provider policy-provider="com.sun.enterprise.security.provider.PolicyWrapper" name="default" policy-configuration-factory-provider="com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl">
<property name="repository" value="${com.sun.aas.instanceRoot}/generated/policy"/>
</jacc-provider>
<jacc-provider policy-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyProvider" name="simple" policy-configuration-factory-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyConfigurationFactory"/>
<audit-module classname="com.sun.enterprise.security.ee.Audit" name="default">
<property name="auditOn" value="false"/>
</audit-module>
<message-security-config auth-layer="SOAP">
<provider-config provider-type="client" provider-id="XWS_ClientProvider" class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule">
<request-policy auth-source="content"/>
<response-policy auth-source="content"/>
<property name="encryption.key.alias" value="s1as"/>
<property name="signature.key.alias" value="s1as"/>
<property name="dynamic.username.password" value="false"/>
<property name="debug" value="false"/>
</provider-config>
<provider-config provider-type="client" provider-id="ClientProvider" class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule">
<request-policy auth-source="content"/>
<response-policy auth-source="content"/>
<property name="encryption.key.alias" value="s1as"/>
<property name="signature.key.alias" value="s1as"/>
<property name="dynamic.username.password" value="false"/>
<property name="debug" value="false"/>
<property name="security.config" value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"/>
</provider-config>
<provider-config provider-type="server" provider-id="XWS_ServerProvider" class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule">
<request-policy auth-source="content"/>
<response-policy auth-source="content"/>
<property name="encryption.key.alias" value="s1as"/>
<property name="signature.key.alias" value="s1as"/>
<property name="debug" value="false"/>
</provider-config>
<provider-config provider-type="server" provider-id="ServerProvider" class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule">
<request-policy auth-source="content"/>
<response-policy auth-source="content"/>
<property name="encryption.key.alias" value="s1as"/>
<property name="signature.key.alias" value="s1as"/>
<property name="debug" value="false"/>
<property name="security.config" value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"/>
</provider-config>
</message-security-config>
<message-security-config auth-layer="HttpServlet">
<provider-config provider-type="server" provider-id="GFConsoleAuthModule" class-name="org.glassfish.admingui.common.security.AdminConsoleAuthModule">
<request-policy auth-source="sender"/>
<response-policy/>
<property name="loginPage" value="/login.jsf"/>
<property name="loginErrorPage" value="/loginError.jsf"/>
</provider-config>
</message-security-config>
<property name="default-digest-algorithm" value="SHA-256"/>
</security-service>
<java-config classpath-suffix="" debug-options="-agentlib:jdwp=transport=dt_socket,address=9009,server=n,suspend=y" java-home="C:\Program Files\Java\jdk1.8.0_144" system-classpath="">
<jvm-options>-XX:MaxPermSize=192m</jvm-options>
<jvm-options>-client</jvm-options>
<jvm-options>-Djava.awt.headless=true</jvm-options>
<jvm-options>-Djdk.corba.allowOutputStreamSubclass=true</jvm-options>
<jvm-options>-Djavax.xml.accessExternalSchema=all</jvm-options>
<jvm-options>-Djavax.management.builder.initial=com.sun.enterprise.v3.admin.AppServerMBeanServerBuilder</jvm-options>
<jvm-options>-XX:+UnlockDiagnosticVMOptions</jvm-options>
<jvm-options>-Djava.endorsed.dirs=${com.sun.aas.installRoot}/modules/endorsed${path.separator}${com.sun.aas.installRoot}/lib/endorsed</jvm-options>
<jvm-options>-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy</jvm-options>
<jvm-options>-Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf</jvm-options>
<jvm-options>-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as</jvm-options>
<jvm-options>-Xmx512m</jvm-options>
<jvm-options>-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks</jvm-options>
<jvm-options>-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks</jvm-options>
<jvm-options>-Djava.ext.dirs=${com.sun.aas.javaRoot}/lib/ext${path.separator}${com.sun.aas.javaRoot}/jre/lib/ext${path.separator}${com.sun.aas.instanceRoot}/lib/ext</jvm-options>
<jvm-options>-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver</jvm-options>
<jvm-options>-DANTLR_USE_DIRECT_CLASS_LOADING=true</jvm-options>
<jvm-options>-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory</jvm-options>
<jvm-options>-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.shell.remote,org.apache.felix.fileinstall</jvm-options>
<jvm-options>-Dosgi.shell.telnet.port=6666</jvm-options>
<jvm-options>-Dosgi.shell.telnet.maxconn=1</jvm-options>
<jvm-options>-Dosgi.shell.telnet.ip=127.0.0.1</jvm-options>
<jvm-options>-Dgosh.args=--nointeractive</jvm-options>
<jvm-options>-Dfelix.fileinstall.dir=${com.sun.aas.installRoot}/modules/autostart/</jvm-options>
<jvm-options>-Dfelix.fileinstall.poll=5000</jvm-options>
<jvm-options>-Dfelix.fileinstall.log.level=2</jvm-options>
<jvm-options>-Dfelix.fileinstall.bundles.new.start=true</jvm-options>
<jvm-options>-Dfelix.fileinstall.bundles.startTransient=true</jvm-options>
<jvm-options>-Dfelix.fileinstall.disableConfigSave=false</jvm-options>
<jvm-options>-XX:NewRatio=2</jvm-options>
<jvm-options>-Dcom.ctc.wstx.returnNullForDefaultNamespace=true</jvm-options>
</java-config>
<network-config>
<protocols>
<protocol name="http-listener-1">
<http max-connections="250" default-virtual-server="server">
<file-cache/>
</http>
</protocol>
<protocol name="http-listener-2" security-enabled="true">
<http max-connections="250" default-virtual-server="server">
<file-cache/>
</http>
<ssl ssl3-enabled="false" classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as"/>
</protocol>
<protocol name="admin-listener">
<http encoded-slash-enabled="true" max-connections="250" default-virtual-server="__asadmin">
<file-cache/>
</http>
</protocol>
</protocols>
<network-listeners>
<network-listener protocol="http-listener-1" port="8080" name="http-listener-1" thread-pool="http-thread-pool" transport="tcp"/>
<network-listener protocol="http-listener-2" port="8181" name="http-listener-2" thread-pool="http-thread-pool" transport="tcp"/>
<network-listener protocol="admin-listener" port="4848" name="admin-listener" thread-pool="admin-thread-pool" transport="tcp"/>
</network-listeners>
<transports>
<transport name="tcp"/>
</transports>
</network-config>
<thread-pools>
<thread-pool name="admin-thread-pool" max-queue-size="256" max-thread-pool-size="50"/>
<thread-pool name="http-thread-pool"/>
<thread-pool name="thread-pool-1" max-thread-pool-size="200"/>
</thread-pools>
<group-management-service>
<failure-detection/>
</group-management-service>
<monitoring-service>
<module-monitoring-levels jdbc-connection-pool="HIGH" http-service="HIGH"/>
</monitoring-service>
<availability-service/>
</config>
<config name="default-config">
<http-service>
<access-log/>
<virtual-server network-listeners="http-listener-1, http-listener-2" id="server">
<property name="default-web-xml" value="${com.sun.aas.instanceRoot}/config/default-web.xml"/>
</virtual-server>
<virtual-server network-listeners="admin-listener" id="__asadmin"/>
</http-service>
<iiop-service>
<orb use-thread-pool-ids="thread-pool-1"/>
<iiop-listener address="0.0.0.0" port="${IIOP_LISTENER_PORT}" id="orb-listener-1"/>
<iiop-listener address="0.0.0.0" port="${IIOP_SSL_LISTENER_PORT}" id="SSL" security-enabled="true">
<ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as"/>
</iiop-listener>
<iiop-listener address="0.0.0.0" port="${IIOP_SSL_MUTUALAUTH_PORT}" id="SSL_MUTUALAUTH" security-enabled="true">
<ssl classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as" client-auth-enabled="true"/>
</iiop-listener>
</iiop-service>
<admin-service system-jmx-connector-name="system">
<jmx-connector address="0.0.0.0" port="${JMX_SYSTEM_CONNECTOR_PORT}" name="system" auth-realm-name="admin-realm" security-enabled="false"/>
<property name="adminConsoleDownloadLocation" value="${com.sun.aas.installRoot}/lib/install/applications/admingui.war"/>
<das-config/>
</admin-service>
<web-container>
<session-config>
<session-manager>
<manager-properties/>
<store-properties/>
</session-manager>
<session-properties/>
</session-config>
</web-container>
<ejb-container>
<ejb-timer-service/>
</ejb-container>
<mdb-container/>
<jms-service addresslist-behavior="priority" default-jms-host="default_JMS_host" type="EMBEDDED">
<jms-host port="${JMS_PROVIDER_PORT}" host="localhost" name="default_JMS_host"/>
</jms-service>
<log-service file="${com.sun.aas.instanceRoot}/logs/server.log" log-rotation-limit-in-bytes="2000000">
<module-log-levels/>
</log-service>
<security-service>
<auth-realm classname="com.sun.enterprise.security.auth.realm.file.FileRealm" name="admin-realm">
<property name="file" value="${com.sun.aas.instanceRoot}/config/admin-keyfile"/>
<property name="jaas-context" value="fileRealm"/>
</auth-realm>
<auth-realm classname="com.sun.enterprise.security.auth.realm.file.FileRealm" name="file">
<property name="file" value="${com.sun.aas.instanceRoot}/config/keyfile"/>
<property name="jaas-context" value="fileRealm"/>
</auth-realm>
<auth-realm classname="com.sun.enterprise.security.auth.realm.certificate.CertificateRealm" name="certificate"/>
<jacc-provider policy-provider="com.sun.enterprise.security.provider.PolicyWrapper" name="default" policy-configuration-factory-provider="com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl">
<property name="repository" value="${com.sun.aas.instanceRoot}/generated/policy"/>
</jacc-provider>
<jacc-provider policy-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyProvider" name="simple" policy-configuration-factory-provider="com.sun.enterprise.security.jacc.provider.SimplePolicyConfigurationFactory"/>
<audit-module classname="com.sun.enterprise.security.ee.Audit" name="default">
<property name="auditOn" value="false"/>
</audit-module>
<message-security-config auth-layer="SOAP">
<provider-config provider-type="client" provider-id="XWS_ClientProvider" class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule">
<request-policy auth-source="content"/>
<response-policy auth-source="content"/>
<property name="encryption.key.alias" value="s1as"/>
<property name="signature.key.alias" value="s1as"/>
<property name="dynamic.username.password" value="false"/>
<property name="debug" value="false"/>
</provider-config>
<provider-config provider-type="client" provider-id="ClientProvider" class-name="com.sun.xml.wss.provider.ClientSecurityAuthModule">
<request-policy auth-source="content"/>
<response-policy auth-source="content"/>
<property name="encryption.key.alias" value="s1as"/>
<property name="signature.key.alias" value="s1as"/>
<property name="dynamic.username.password" value="false"/>
<property name="debug" value="false"/>
<property name="security.config" value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"/>
</provider-config>
<provider-config provider-type="server" provider-id="XWS_ServerProvider" class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule">
<request-policy auth-source="content"/>
<response-policy auth-source="content"/>
<property name="encryption.key.alias" value="s1as"/>
<property name="signature.key.alias" value="s1as"/>
<property name="debug" value="false"/>
</provider-config>
<provider-config provider-type="server" provider-id="ServerProvider" class-name="com.sun.xml.wss.provider.ServerSecurityAuthModule">
<request-policy auth-source="content"/>
<response-policy auth-source="content"/>
<property name="encryption.key.alias" value="s1as"/>
<property name="signature.key.alias" value="s1as"/>
<property name="debug" value="false"/>
<property name="security.config" value="${com.sun.aas.instanceRoot}/config/wss-server-config-1.0.xml"/>
</provider-config>
</message-security-config>
</security-service>
<transaction-service automatic-recovery="true" tx-log-dir="${com.sun.aas.instanceRoot}/logs"/>
<diagnostic-service/>
<java-config classpath-suffix="" debug-options="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=${JAVA_DEBUGGER_PORT}" system-classpath="">
<jvm-options>-XX:MaxPermSize=192m</jvm-options>
<jvm-options>-server</jvm-options>
<jvm-options>-Djava.awt.headless=true</jvm-options>
<jvm-options>-Djdk.corba.allowOutputStreamSubclass=true</jvm-options>
<jvm-options>-XX:+UnlockDiagnosticVMOptions</jvm-options>
<jvm-options>-Djava.endorsed.dirs=${com.sun.aas.installRoot}/modules/endorsed${path.separator}${com.sun.aas.installRoot}/lib/endorsed</jvm-options>
<jvm-options>-Djava.security.policy=${com.sun.aas.instanceRoot}/config/server.policy</jvm-options>
<jvm-options>-Djava.security.auth.login.config=${com.sun.aas.instanceRoot}/config/login.conf</jvm-options>
<jvm-options>-Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as</jvm-options>
<jvm-options>-Djavax.net.ssl.keyStore=${com.sun.aas.instanceRoot}/config/keystore.jks</jvm-options>
<jvm-options>-Djavax.net.ssl.trustStore=${com.sun.aas.instanceRoot}/config/cacerts.jks</jvm-options>
<jvm-options>-Djava.ext.dirs=${com.sun.aas.javaRoot}/lib/ext${path.separator}${com.sun.aas.javaRoot}/jre/lib/ext${path.separator}${com.sun.aas.instanceRoot}/lib/ext</jvm-options>
<jvm-options>-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver</jvm-options>
<jvm-options>-DANTLR_USE_DIRECT_CLASS_LOADING=true</jvm-options>
<jvm-options>-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory</jvm-options>
<jvm-options>-XX:NewRatio=2</jvm-options>
<jvm-options>-Xmx512m</jvm-options>
<jvm-options>-Dorg.glassfish.additionalOSGiBundlesToStart=org.apache.felix.shell,org.apache.felix.gogo.runtime,org.apache.felix.gogo.shell,org.apache.felix.gogo.command,org.apache.felix.fileinstall</jvm-options>
<jvm-options>-Dosgi.shell.telnet.port=${OSGI_SHELL_TELNET_PORT}</jvm-options>
<jvm-options>-Dosgi.shell.telnet.maxconn=1</jvm-options>
<jvm-options>-Dosgi.shell.telnet.ip=127.0.0.1</jvm-options>
<jvm-options>-Dgosh.args=--noshutdown -c noop=true</jvm-options>
<jvm-options>-Dfelix.fileinstall.dir=${com.sun.aas.installRoot}/modules/autostart/</jvm-options>
<jvm-options>-Dfelix.fileinstall.poll=5000</jvm-options>
<jvm-options>-Dfelix.fileinstall.log.level=3</jvm-options>
<jvm-options>-Dfelix.fileinstall.bundles.new.start=true</jvm-options>
<jvm-options>-Dfelix.fileinstall.bundles.startTransient=true</jvm-options>
<jvm-options>-Dfelix.fileinstall.disableConfigSave=false</jvm-options>
</java-config>
<availability-service>
<web-container-availability/>
<ejb-container-availability sfsb-store-pool-name="jdbc/hastore"/>
<jms-availability/>
</availability-service>
<network-config>
<protocols>
<protocol name="http-listener-1">
<http default-virtual-server="server">
<file-cache/>
</http>
</protocol>
<protocol name="http-listener-2" security-enabled="true">
<http default-virtual-server="server">
<file-cache/>
</http>
<ssl ssl3-enabled="false" classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" cert-nickname="s1as"/>
</protocol>
<protocol name="admin-listener">
<http max-connections="250" default-virtual-server="__asadmin">
<file-cache/>
</http>
</protocol>
<protocol name="sec-admin-listener" security-enabled="true">
<http encoded-slash-enabled="true" default-virtual-server="__asadmin">
<file-cache/>
</http>
<ssl ssl3-enabled="false" classname="com.sun.enterprise.security.ssl.GlassfishSSLImpl" client-auth="want" cert-nickname="glassfish-instance" renegotiate-on-client-auth-want="false"/>
</protocol>
<protocol name="admin-http-redirect">
<http-redirect secure="true"/>
</protocol>
<protocol name="pu-protocol">
<port-unification>
<protocol-finder protocol="sec-admin-listener" classname="org.glassfish.grizzly.config.portunif.HttpProtocolFinder" name="http-finder"/>
<protocol-finder protocol="admin-http-redirect" classname="org.glassfish.grizzly.config.portunif.HttpProtocolFinder" name="admin-http-redirect"/>
</port-unification>
</protocol>
</protocols>
<network-listeners>
<network-listener protocol="http-listener-1" port="${HTTP_LISTENER_PORT}" name="http-listener-1" thread-pool="http-thread-pool" transport="tcp"/>
<network-listener protocol="http-listener-2" port="${HTTP_SSL_LISTENER_PORT}" name="http-listener-2" thread-pool="http-thread-pool" transport="tcp"/>
<network-listener protocol="pu-protocol" port="${ASADMIN_LISTENER_PORT}" name="admin-listener" thread-pool="http-thread-pool" transport="tcp"/>
</network-listeners>
<transports>
<transport name="tcp"/>
</transports>
</network-config>
<thread-pools>
<thread-pool name="http-thread-pool"/>
<thread-pool name="thread-pool-1" max-thread-pool-size="200"/>
<thread-pool name="admin-thread-pool" max-queue-size="256" max-thread-pool-size="50"/>
</thread-pools>
<group-management-service>
<failure-detection/>
</group-management-service>
<system-property name="JMS_PROVIDER_PORT" description="Port Number that JMS Service will listen for remote clients connection." value="27676"/>
<system-property name="ASADMIN_LISTENER_PORT" value="24848"/>
<system-property name="HTTP_LISTENER_PORT" value="28080"/>
<system-property name="HTTP_SSL_LISTENER_PORT" value="28181"/>
<system-property name="IIOP_LISTENER_PORT" value="23700"/>
<system-property name="IIOP_SSL_LISTENER_PORT" value="23820"/>
<system-property name="IIOP_SSL_MUTUALAUTH_PORT" value="23920"/>
<system-property name="JMX_SYSTEM_CONNECTOR_PORT" value="28686"/>
<system-property name="OSGI_SHELL_TELNET_PORT" value="26666"/>
<system-property name="JAVA_DEBUGGER_PORT" value="29009"/>
<monitoring-service>
<module-monitoring-levels/>
</monitoring-service>
</config>
</configs>
<property name="administrative.domain.name" value="domain1"/>
<secure-admin special-admin-indicator="718fe3ff-df18-49f8-84a0-3aeedb3250db">
<secure-admin-principal dn="CN=localhost,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US"/>
<secure-admin-principal dn="CN=localhost-instance,OU=GlassFish,O=Oracle Corporation,L=Santa Clara,ST=California,C=US"/>
</secure-admin>
<clusters/>
<applications>
<application context-root="/HolidaysRESTJSON-1.0-SNAPSHOT" object-type="user" name="HolidaysRESTJSON-1.0-SNAPSHOT" location="${com.sun.aas.instanceRootURI}/applications/HolidaysRESTJSON-1.0-SNAPSHOT/">
<property name="appLocation" value="${com.sun.aas.instanceRootURI}/applications/__internal/HolidaysRESTJSON-1.0-SNAPSHOT/HolidaysRESTJSON-1.0-SNAPSHOT.war"/>
<property name="archiveType" value="war"/>
<property name="defaultAppName" value="HolidaysRESTJSON-1.0-SNAPSHOT"/>
<module name="HolidaysRESTJSON-1.0-SNAPSHOT">
<engine sniffer="security"/>
<engine sniffer="web"/>
</module>
</application>
</applications>
</domain>
From: Piotrek Żygieło ***@***.***>
Sent: Monday, August 18, 2025 3:19 PM
To: eclipse-ee4j/glassfish ***@***.***>
Cc: Daniel Schwartz ***@***.***>; Author ***@***.***>
Subject: Re: [eclipse-ee4j/glassfish] Class name is wrong or classpath is not set for : com.mysql.cj.jdbc. (Discussion #25670)
I see no attachments here. Maybe they do not go through e-mail interface.
—
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_eclipse-2Dee4j_glassfish_discussions_25670-23discussioncomment-2D14145193&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AbCalLxzopgQUG9LLcXdB80OM-GtDfItX76RMxNYqz4&m=-3N7b_EGMfS6Rz3sV1KPVKXfoCxQtnWEkJRSuF53dC8gF5m8c-LWLiPw-i08thya&s=7lyylrOq-v8jVh4xAtNrt1KaZ8EQZrrkAwng3KZ2grY&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AAPBGPO3RR3MI7CG54D55LD3OIRLDAVCNFSM6AAAAACEDIMTWCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMJUGUYTSMY&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AbCalLxzopgQUG9LLcXdB80OM-GtDfItX76RMxNYqz4&m=-3N7b_EGMfS6Rz3sV1KPVKXfoCxQtnWEkJRSuF53dC8gF5m8c-LWLiPw-i08thya&s=xWjzAH9ZBIP6tX2Ks544SqTFOwcBp8NpA5qma-djAVI&e=>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
I found it. In copying “jdbc:mysql://localhost:3306/holidays”, I typed it manually instead of doing cut and paste, and I inadvertently left out the “//” in front of local host. The ping just worked.
My apologies for the time and confusion.
From: Piotrek Żygieło ***@***.***>
Sent: Monday, August 18, 2025 3:38 PM
To: eclipse-ee4j/glassfish ***@***.***>
Cc: Daniel Schwartz ***@***.***>; Author ***@***.***>
Subject: Re: [eclipse-ee4j/glassfish] Class name is wrong or classpath is not set for : com.mysql.cj.jdbc. (Discussion #25670)
Getting closer.
Can you spot something similar to the value I claim to be in bad format - in that converted to text piece? Search for let's say 3306. Find it, compare and let me know if there is any difference.
—
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_eclipse-2Dee4j_glassfish_discussions_25670-23discussioncomment-2D14145370&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AbCalLxzopgQUG9LLcXdB80OM-GtDfItX76RMxNYqz4&m=qn8LJ4acsUsiWCXdvJ6Vy9bS435hFCpyTRsHye2aGlOrCJkv8WtwpCGFcDtnXVSx&s=RrmMefLbE91HrBc1Tc4SUzkGmaja6AVX-mk9hHHU98w&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AAPBGPIGUT3XUVUJ4JLJXGT3OITSDAVCNFSM6AAAAACEDIMTWCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIMJUGUZTOMA&d=DwMCaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=AbCalLxzopgQUG9LLcXdB80OM-GtDfItX76RMxNYqz4&m=qn8LJ4acsUsiWCXdvJ6Vy9bS435hFCpyTRsHye2aGlOrCJkv8WtwpCGFcDtnXVSx&s=34Q-Q2vT1ODBiU5LjnhsSboJrZDIX3c8XfHSIFHQJwM&e=>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
Wow, @pzygielo , good job! You deserve a beer or two from @DanSchwartz ;-) |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm guessing that this is a frequently asked question, but I was unable to find a match in these discussions on "Class name is wrong or classpath is not set for : com.mysql.cj.jdbc."
I'm trying to upgrade from Glassfish 4.1 to the current version 7.0.25. I have set up the new version exactly as the previous one, with the JDBC driver mysql-connector-java-8.0.17.jar in C:\glassfish7\glassfish\domains\domain1\lib. I believe that this is correct. Why am I getting this error message when I try to ping the database in the administration console?
Beta Was this translation helpful? Give feedback.
All reactions