新问题,2。0能生成CLIENT生成运行时有错
在weblogic-rdbms-jar 里
<ejb-name>Fctecm</ejb-name>
<data-source-name>test</data-source-name>
<table-name>FCTECM</table-name>
在/weblogic-ejb-jar>里
<jndi-name>FctecmRemote</jndi-name>
在ejb-jar 里
<display-name>Fctecm</display-name>
<ejb-name>Fctecm</ejb-name>
在CLIENT里 Object ref = ctx.lookup("FctecmRemote"); 这样又说找不到我的javax.naming.NameNotFoundException: Unable to resolve FctecmRemote. Resolved: '' Unresolved:'FctecmRemote' ; remaining name ''
在weblogic-rdbms-jar 里
<ejb-name>Fctecm</ejb-name>
<data-source-name>test</data-source-name>
<table-name>FCTECM</table-name>
在/weblogic-ejb-jar>里
<jndi-name>FctecmRemote</jndi-name>
在ejb-jar 里
<display-name>Fctecm</display-name>
<ejb-name>Fctecm</ejb-name>
在CLIENT里 Object ref = ctx.lookup("FctecmRemote"); 这样又说找不到我的javax.naming.NameNotFoundException: Unable to resolve FctecmRemote. Resolved: '' Unresolved:'FctecmRemote' ; remaining name ''
解决方案 »
- java中如果实现对键盘进行监听?
- Windows2003 下的java软件权限问题
- 求一本有基于java的仿QQ聊天系统的书籍名!
- ssh整合时配置文件读取问题
- 求Java混淆加密JavaScript的代码
- 报表如何在网页中显示?
- hibernate中session的困惑
- hibernate 多个主表对应一个从表是否能实现
- 换了家新公司,开始学EJB,高兴,散分...
- 各位大哥:能否用VC访问部署到weblogic的EJB?
- 还是关于entitybean中cmp和cmr的问题,请高手指教
- java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Invalid operation for the current cursor position.(在线)
java.lang.NullPointerException
--------------- nested within: ------------------
"Footer.jsp": weblogic.utils.AssertionError: ***** ASSERTION FAILED ***** - with nested exception:
[java.lang.NullPointerException]
我在做两个实体BEAN的关联时报错
<relationships>
<ejb-relation>
<ejb-relation-name>cmp-fctecm</ejb-relation-name>
<ejb-relationship-role>
<description>cmp</description>
<ejb-relationship-role-name>cmpRelationshipRole</ejb-relationship-role-name>
<multiplicity>one</multiplicity>
<relationship-role-source />
<cmr-field>
<description>fctecm</description>
<cmr-field-name>fctecm</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<description>fctecm</description>
<ejb-relationship-role-name>fctecmRelationshipRole</ejb-relationship-role-name>
<multiplicity>one</multiplicity>
<relationship-role-source />
<cmr-field>
<description>cmp</description>
<cmr-field-name>cmp</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
</relationships>
我把<relationship-role-source />替换成<relationship-role-source>
<ejb-nam>cmpT</ejb-name>
</relationship-role-source>也不行
另外,请教 inprise_lyj(只愛一點點) ,我配置服务器,设置好后应该EJB和JSP的服务器都是一样的啊。还需要单独设置JSP的服务器啊?
你把jsp文件放入application的defaultwebapp就可以了
不需要另外配置了