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>,删除即可

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-11
  • 2021-12-22
  • 2022-12-23
  • 2021-11-02
  • 2021-08-05
猜你喜欢
  • 2021-06-26
  • 2021-09-15
  • 2022-12-23
  • 2021-06-17
  • 2022-02-01
  • 2022-02-21
相关资源
相似解决方案