Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

class java.lang.RuntimeException in glassfish when i try to create new JDBC Resources

Tags:

glassfish

class java.lang.RuntimeException in glassfish when i try to create new JDBC Resources.

This is the exception. Following is the snapshot:

Snapshot

like image 713
Mohammad Joud Avatar asked Dec 02 '15 04:12

Mohammad Joud


1 Answers

I've been having same issues with the latest Glassfish 4.1. I couldn't find any solution on how to resolve RuntimeException when using web interface to add new resources. From what I understand it is a major bug that hasn't been resolved yet (GLASSFISH-21437). Meanwhile, I manually add JDBC Connection Pool and JDBC Resource entries by modifying domain.xml file located in the domain's config folder:

    glassfish4/glassfish/domains/domain1/config/domain.xml

Just make sure that you make a backup copy just in case you make a mistake. You will need to restart Glassfish.

You can also use asadmin CLI commands to add resources. I have not done this myself but instructions on how to do that can be found in Glassfish administration guide (chapter 5).

I hope this helps.

like image 198
Mike Kachaluba Avatar answered Oct 18 '22 10:10

Mike Kachaluba