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

posted on 2011-12-01 15:47  七月逆流  阅读(6145)  评论(2编辑  收藏  举报