在jb6中,如何把DataSource的jndi信息,打进ejb包中?(100分)

  • 主题发起人 主题发起人 leozmy
  • 开始时间 开始时间
L

leozmy

Unregistered / Unconfirmed
GUEST, unregistred user!
我写了一个ejb包,编译成功,分发到weblogic6.1时提示:
E:/jdk1.3.0_01/bin/javaw -classpath ";E:/Weblogic61/wlserver6.1/lib/
weblogic_sp.jar;E:/Weblogic61/wlserver6.1/lib/weblogic.jar;" weblogic.deploy
-component TimooNewsEJB:myserver update password TimooNewsEJB
D:/Practice/Java/Timoo/TimooNewsEJB.jar
weblogic.j2ee.DeploymentException: Error deploying application TimooNewsEJB:
Unable to deploy EJB: News from TimooNewsEJB.jar:
The DataSource with the JNDI name: TimooDataSource could not be located.
Please ensure that the DataSource has been deployed successfully
and that the JNDI name in your EJB Deployment descriptor is correct.
at weblogic.deploy.deploy(deploy.java:665)
at weblogic.deploy.runBody(deploy.java:358)
at weblogic.utils.compiler.Tool.run(Tool.java:79)
at weblogic.deploy.main(deploy.java:1601)
Error deploying application TimooNewsEJB:
Unable to deploy EJB: News from TimooNewsEJB.jar:
The DataSource with the JNDI name: TimooDataSource could not be located.
lease ensure that the DataSource has been deployed successfully and
that the JNDI name in your EJB Deployment descriptor is correct.
不知是在weblogic中配置,还是在jb中写好。
jb的jndi-definitions.xml是用来做什么的,
它其中有datasource的jndi信息,包括url,driver等,
但没起作用。
在EJB MODULE 中的JDBC 1 Datasources 增加Datasources也没用。

 
在weblogic中配置,启动weblogic测试是否配置正确。
 
没错,直接写config.xml。
 
接受答案了.
 
后退
顶部