本人刚学EJB,你的数据库连接池配好了没有,可以在WebLogic中测试一下。
是不是在代码中直接连接数据库的?把代码贴出来看看。
cmpentitysample.StudentBean_3jpbl1__WebLogic_CMP_RDBMS.__WL_loadGroup0(StudentBean_3jpbl1__WebLogic_CMP_RDBMS.java:556)
at cmpentitysample.StudentBean_3jpbl1__WebLogic_CMP_RDBMS.getStudid(StudentBean_3jpbl1__WebLogic_CMP_RDBMS.java:264)
at cmpentitysample.StudentBean_3jpbl1_EOImpl.getStudid(StudentBean_3jpbl1_EOImpl.java:45)
看到这一段你写的应该是容器管理持久的Bean,检查一下WebLogic数据库配置吧
是不是在代码中直接连接数据库的?把代码贴出来看看。
cmpentitysample.StudentBean_3jpbl1__WebLogic_CMP_RDBMS.__WL_loadGroup0(StudentBean_3jpbl1__WebLogic_CMP_RDBMS.java:556)
at cmpentitysample.StudentBean_3jpbl1__WebLogic_CMP_RDBMS.getStudid(StudentBean_3jpbl1__WebLogic_CMP_RDBMS.java:264)
at cmpentitysample.StudentBean_3jpbl1_EOImpl.getStudid(StudentBean_3jpbl1_EOImpl.java:45)
看到这一段你写的应该是容器管理持久的Bean,检查一下WebLogic数据库配置吧
应该是关于事务方面的,事务有多种类型:Required,RequiresNew,Mandatory,NotSupported,Supports,Never,一定是CMP BEAN没有配置好。(仅供参考, 还没用WebLogic呢^-^,在J2EE 自带的布署工具下练习)