This will happen, when Application Module will be configured to use JDBC DataSource (most common setting while deploying):
I have solved deployment error after reading Steve Muench blog post. He writes there about 'Auto-generate and Synchronize weblogic-jdbc.xml Descriptors During Deployment' checkbox. Its exactly what I was looking for, since I'm doing manual deployment, automatic mechanism for Data Source declaration on WebLogic is not triggered and you're getting errors. So, what you need to do is to uncheck this checkbox:
After this change, application is deployed and works properly (just don't forget to define manually Data Source on WLS):
To illustrate the difference when weblogic-jdbc.xml auto synchronization is on, I have extracted contents for both EAR files:
On the left - when auto synchronization is on, on the right - when it is off. You can see that with auto synchronization option on, one additional file is created - Hr-jdbc.xml. This file contains database connection information and creates problem during manual EAR deployment on WLS. When 'Auto-generate and Synchronize weblogic-jdbc.xml Descriptors During Deployment' checkbox is unchecked, this file is not generated and manual deployment succeeds.
Download manually deployable sample application - DSDeployment.zip.