I didn't actually figure out how to resolve it. I fiddled around in domains/domain1/config/domain.xml a little, but in the end I think restarting Glassfish did the trick for me.
INFO: RAR7099: The mcf being used to allocate the connection and the MCF in the pool are not equal.
WARNING: RAR5038:Unexpected exception while creating resource for pool aum_pool. Exception : No PasswordCredential found
WARNING: RAR5117 : Failed to obtain/create connection from connection pool [ aum_pool ]. Reason : No PasswordCredential found
WARNING: RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: No PasswordCredential found]
WARNING: java.sql.SQLException: Error in allocating a connection. Cause: No PasswordCredential found
at com.sun.gjc.spi.base.DataSource.getConnection(DataSource.java:115)
How something so simple can solve a unknown problem - thanks for the help. Right, back to deploying my war's :)
ReplyDeleteOf course restarting works, why didn't I think of it? Thanks for the post.
ReplyDeleteEven though I wasn't having the same problem you had, I'd just like to express appreciation that reading your post did give me an idea how to address my problem and reconfigure settings to find the solution. Thanks!
ReplyDeleteI thought Glassfish will handle a change in the connection wihtout a restart and got the same problem. This message is really tricky and only thanks to your post I found a quick solution.
ReplyDeleteThanks for the head's up!
ReplyDeleteRest worked for me too. Nice post :). Would have been better if glassfish warned us that we may need to restart the server for the changes we made.
ReplyDeleteThanks, hadn't assumed this would be necessary but apparently it is!
ReplyDeleteGreat man, it worked for me. I am still wondering how this worked? actually I made changes through GF admin console pinged successfully datasource. then tried from application. May be the changes are not bind to the application without server restart!!!!
ReplyDelete-Ravi.
Thanks, I wish I had found your site earlier! I would have saved some time. I wish others would post their solutions when they find answers to issue such as this.
ReplyDeleteThanks! You saved me a lot of time.
ReplyDeleteQuick thanks
ReplyDeleteThanks dude. This has been a long and frustrating battle (getting hibernate to work with itself - let alone with Glassfish)
ReplyDeleteThank you! Worked!
ReplyDeletegood one :)
ReplyDeletethanks !!!
ReplyDeleteThank you, "asadmin restart-domain" worked for me!
ReplyDeleteUsually, when the system properties are changed, Glassfish prompts a "Restart Required" warning message. In this case it didn't and I assumed that it was OK with it. Apparently not! Thanks for the post!
ReplyDeleteCheers for posting it.
ReplyDelete+1 to restart
ReplyDeleteHehe - Nice! Saved me a lot of work. :)
ReplyDeleteThanks! This did the trick for us too!
ReplyDeleteI added the property "PasswordCredential" to the list of properties, with the value being my database password. That worked for me. I'm using GlassFish Server Open Source Edition 3
ReplyDeleteRestarting Glassfish? That's not an answer because it doesn't actually figure out what was wrong. I had a problem where the password on my database was blank. In this case I needed to follow the directions here. https://blogs.oracle.com/vkraemer/entry/no_passwordcredential_found
ReplyDeleteGreat job!! This worked for me. I had to change the url property and when I ran the application I received the "java.sql.SQLException: Error in allocating a connection. Cause: No PasswordCredential found" message. A simple restart fixed it. Thanks!!
ReplyDeletethanks man... *facepalm to myself*
ReplyDeleteThank you...
ReplyDeleteRestart for NoPasswordCredential? Yeah, right... Hey! It works!
ReplyDeleteJust setting the PasswordCredantial in the Pool-configuration fixed the problem without restart.
ReplyDeleteAwesome! Thanks! :)
ReplyDeleteRelated Post explaining that a restart in fact is required if you update the connection pool settings.
ReplyDeletehttps://netbeans.org/bugzilla/show_bug.cgi?id=150051#c19