This post is also available in: Japanese
When I developed with javaEE and GlassFish, tried to create JDBC Resources from GlassFish Dashbord(usually localhost:4848), I got an error as following.
So, I made a note.
Solution:Create JDBC Resources from Command Prompt
If you use Windows, there is a file ‘asadmin’ under ‘C:\Program Files\glassfish\bin’.
So, open a command prompt with administrator privileges under ‘bin’ folder, then you can create JDBC Resource by entering the command.
For example, if you want to create JDBC Resources named ‘sample_pool’, execute the following command.
asadmin create-jdbc-resource --connectionpoolid sample_pool jdbc/sample_dbNo tags for this post.