Mohammad Joud
Mohammad Joud

Reputation: 133

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

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

This is the exception. Following is the snapshot:

Snapshot

Upvotes: 10

Views: 14660

Answers (5)

John Rodriguez
John Rodriguez

Reputation: 1

I have to download another version of glassfish, in my case "GlassFish 5.0 - Web Profile" https://javaee.github.io/glassfish/download , after in netbeans i removed the old GlassFish setting up the new version and everything was fine.

Upvotes: 0

kintaro horowitz
kintaro horowitz

Reputation: 1

Update to 4.1.2 .

I had the same issue with Glassfish 4.1.1 , until now I set up all with asadmin commands , but the bug has been fixed with version 4.1.2 , no more exception thrown while creating new JDBC ressources .

Upvotes: 0

Marian Adamjak
Marian Adamjak

Reputation: 1

I have found that BUG is fixed (https://java.net/jira/browse/GLASSFISH-21314). I created JDBC resurce without exception

Upvotes: 0

Eliheyder Qubatov
Eliheyder Qubatov

Reputation: 9

I had the same issue. I found the only solution to replace glassfish 4.1.1 with version 4.1.0. This fixed my problem.

Upvotes: 0

Mike Kachaluba
Mike Kachaluba

Reputation: 84

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.

Upvotes: 5

Related Questions