Failed to lookup JDBC Datasource. Please double check that the JNDI name defined in the resource-description of the EJB's weblogic-ejb-jar.xml file is the same as the JNDI name for the Datasource defined in your config.xml.
调试欢乐多
DatabSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/DataSource");
然后在XML里面配置
<res-ref-name>jdbc/DataSource</res-ref-name>
还是不行,还是找不到……XML里我已经是这样配置的了
就是和数据库直接有关的