79325183

Date: 2025-01-02 23:23:23
Score: 1
Natty:
Report link

As expected this was an error in my application, specifically the META-INF/context.xml. I believe the url was incorrect in the Resource definition, and was thus being ignored. I also had a "id" element, which is not required.

My haste to consult StackOverflow was mainly because my payara wasn't showing any logging in my container, but this was a separate unrelated issue.

In summary, I was able to resolve with something akin to:

<Resource type="javax.sql.DataSource" 
    driverClassName="com.mysql.cj.jdbc.Driver"
    url="jdbc:mysql://172.0.0.1:3306/mydb"     
    username="user" 
    password="pass" 
    maxActive="20" 
    maxIdle="10" 
    maxWait="10000"/>
Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Hemmels