WebLogic81配置问题~~, 各位给偶看看哪里没弄对~~~

来源:互联网  时间:2016/8/31 10:57:08

关于网友提出的“ WebLogic81配置问题~~, 各位给偶看看哪里没弄对~~~”问题疑问,本网通过在网上对“ WebLogic81配置问题~~, 各位给偶看看哪里没弄对~~~”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:

问题: WebLogic81配置问题~~, 各位给偶看看哪里没弄对~~~
描述:

实体Bean(名为TestTable)使用数据源mscredit_source,已经在WebLogic上发布成功,但测试时出现如下错误:
The EJB TestTable has not been tested successfully. There was a problem determining the JNDI Name of the given bean. 
以下是JDBC配置:
连接沲配置如下:
Name | URL | Driver | Classname | Deployed 
mscredit| jdbc:microsoft:sqlserver://localhost:1433 com.microsoft.jdbc.sqlserver.SQLServerDriver true 
数据源配置如下:
Name | JNDIName | Pool Name 
mscredit_source | mscredit_source | mscredit 
各位帮偶想想是哪里没有配置对?或者哪里还需要配置?
ejb-jar.xml
代码  



 EntityBean
 
   
     TestTable
     TestTable
     entitybean.TestTableHome
     entitybean.TestTable
     entitybean.TestTableBean
     Container
     java.lang.Integer
     False
     2.x
     TestTable
     
       id
     

     
       name
     

     
       password
     

     id
   

 

 
   
     
       TestTable
       *
     

     Required
   

 


 
weblogic-ejb-jar.xml
代码  



 
   TestTable
   
     
       
         WebLogic_CMP_RDBMS
         6.0
         META-INF/weblogic-cmp-rdbms-jar.xml
       

     

   

   TestTable
 


 
weblogic-cmp-rdbms-jar.xml
代码  



 
   TestTable
   mscredit_source
   
     TestTable
     
       id
       ID
     

     
       name
       Name
     

     
       password
       Password
     

   

 


 
帮偶看看有没有哪里没弄对? 


解决方案1:


    
      Enterprise1
      Enterprise1
      //你的少了下面这两个.都不要自己手工添加,用工具自动生成保险些.
      untitled11.Enterprise1RemoteHome
      untitled11.Enterprise1Remote
      untitled11.Enterprise1Home
      untitled11.Enterprise1
      untitled11.Enterprise1Bean
      Bean
      java.lang.String
      False
      2.x
    

  
    Enterprise1
    Enterprise1Local
  

  
    Enterprise2
    Enterprise2
//看看这里,你的是个带local的. TestTable
  


解决方案2:

你是用jbuilder开发的吧。在designer界面中选该Bean名那个位置,右侧弹出部分Interface选local/remote.你这里只实现了本地接口(localhome,localobject),没有实现远程接口.
没有配置远程接口的jndi名称.
因为实际应用中一般实体bean不用远程接口,而是再用session bean封装一层.所以很多软件缺省对实体ejb不实现远程接口.

上一篇Weblogic81中本地接口无状态session EJB该如何发布?
下一篇java如何调用可变返回值的储存过程???
明星图片
相关文章
《 WebLogic81配置问题~~, 各位给偶看看哪里没弄对~~~》由码蚁之家搜集整理于网络,
联系邮箱:mxgf168#qq.com(#改为@)