Unable to set the activation state to true for the application ' ' ,weblogic.common.ResourceException: is already bound

solution:

Whaaaaat? I don't have an 'application' Foo I only have a Datasource with this name... nice error message
I double checked that there is no double JNDI Name definition, checked the config files. Everything fine.
It took me quite a while to find the problem:
The JNDI Name field for the Datasource contained two linebreaks. Removed them and hoooray. Everything is back to green.

此报错原因 :

在对应的 *-jdbc.xml文件中

  <jdbc-data-source-params>
<jndi-name>jdbc/eshop_ops_eshopDS</jndi-name>
<jndi-name></jndi-name>
<jndi-name></jndi-name>
<global-transactions-protocol>TwoPhaseCommit</global-transactions-protocol>
</jdbc-data-source-params>


多了两行空的 <jndi-name></jndi-name>,删除即可

你可能感兴趣的:(application)