当前位置: 技术问答>java相关
请问为什么会出现这种错误呢?
来源: 互联网 发布时间:2015-10-16
本文导语: 我在编写实体BEAN时,出现了这种错误,可能是WEBLOGIC 没有配好,但是我在WEBLOGIC 中加了DATASOURCE 还是没有用,请问我怎么解决呢? "EntityBeanTest.ejbgrpx": Missing data source name for "EntityTest". Use the WebLogic Properties viewer for...
我在编写实体BEAN时,出现了这种错误,可能是WEBLOGIC 没有配好,但是我在WEBLOGIC 中加了DATASOURCE 还是没有用,请问我怎么解决呢?
"EntityBeanTest.ejbgrpx": Missing data source name for "EntityTest". Use the WebLogic Properties viewer for your EJB Module to set this value.
"EntityBeanTest.ejbgrpx": ERROR: Error from ejbc: Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was:
"EntityBeanTest.ejbgrpx": .weblogic-rdbms-jar.weblogic-rdbms-bean.data-source-name. must be a non-empty string
"EntityBeanTest.ejbgrpx": ERROR: ejbc found errors
"EntityBeanTest.ejbgrpx": Missing data source name for "EntityTest". Use the WebLogic Properties viewer for your EJB Module to set this value.
"EntityBeanTest.ejbgrpx": ERROR: Error from ejbc: Error while reading 'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was:
"EntityBeanTest.ejbgrpx": .weblogic-rdbms-jar.weblogic-rdbms-bean.data-source-name. must be a non-empty string
"EntityBeanTest.ejbgrpx": ERROR: ejbc found errors
|
你这一定是在JBuilder中做的程序吧!而且好象是将代码粘进去的?呵呵,你看看你的JB是不是生成了一个叫weblogic-cmp.jar的文件,然后看一看那一行是否为空,如果是空,就加上你在weblogic中的DataSource的jndi-name这是JB常出的错误。如果这里没错,那你就看一看Weblogic的配置!
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。