jboss中的jndi问题 InitialContext lContext = new InitialContext(??); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 问题解决了,原因在于用xdoclet生成的配置文件ejb-jar.jar文件中,对一个bean的配置: <session > <description><![CDATA[Session Bean Template ATTENTION: Some of the XDoclet tags are hidden from XDoclet by adding a "--" between @ and the namespace.]]></description> <display-name>Bug TestSession Bean</display-name> <ejb-name>test/TestSession</ejb-name> <home>test.interfaces.TestSessionHome</home> <remote>test.interfaces.TestSession</remote>/***说明:*原文件中,生成了local-home以及local两个元素,但是,test.interfaces.TestSessionLocalHome和test.interfaces.TestSessionLocal并没有生成.当往jboss上配置ejb时,jndi名字ejb/test/TestSession绑定类是test.interfaces.TestSessionLocalHome,当然就绑定不成功,运行也就是test 未绑定了!当把该两个元素隐藏,并用jar命令重新打包后,发布就成功了.*/ <!--local-home>test.interfaces.TestSessionLocalHome</local-home> <local>test.interfaces.TestSessionLocal</local--> <ejb-class>test.session.TestSessionBean</ejb-class> <session-type>Stateful</session-type> <transaction-type>Container</transaction-type> <ejb-ref > <ejb-ref-name>ejb/mytest/TestEntity</ejb-ref-name> <ejb-ref-type>Entity</ejb-ref-type> <home>test.interfaces.TestEntityHome</home> <remote>test.interfaces.TestEntity</remote> <ejb-link>test/TestEntity</ejb-link> </ejb-ref> <resource-ref> <res-ref-name>test/Mail</res-ref-name> <res-type>javax.mail.Session</res-type> <res-auth>Container</res-auth> </resource-ref> </session>但是,有谁知道?xdoclet为什么要生成这两个无用的元素?该怎样配置才不会生成他们? 【求助】jsp 页面缓存 TCP/IP struts2.0的标签问题 import com.beaconsystem.util.*; jap如何实现从数据库中的图象在表格中显示(初学者,多谢各位了~) 三个表,实现select联动 高分解答,为什么javac编译成功而appletviewer看结果时会出错啊??? 紧急求助:那里有struts实现翻页功能的介绍文档? 用过wsad4.0的请进 样向另一台机发送信息 (无内容) struct1.1 的 message resources 如何 解决 中文问题 用j2ee上的tomcat编译时总提示错误?关于io的,急切求解!!!
<session >
<description><![CDATA[Session Bean Template ATTENTION: Some of the XDoclet tags are hidden from XDoclet by adding a "--" between @ and the namespace.]]></description>
<display-name>Bug TestSession Bean</display-name> <ejb-name>test/TestSession</ejb-name> <home>test.interfaces.TestSessionHome</home>
<remote>test.interfaces.TestSession</remote>/**
*说明:
*原文件中,生成了local-home以及local两个元素,但是,test.interfaces.TestSessionLocalHome和test.interfaces.TestSessionLocal并没有生成.当往jboss上配置ejb时,jndi名字ejb/test/TestSession绑定类是test.interfaces.TestSessionLocalHome,
当然就绑定不成功,运行也就是test 未绑定了!当把该两个元素隐藏,并用jar命令重新打包后,发布就成功了.
*/ <!--local-home>test.interfaces.TestSessionLocalHome</local-home>
<local>test.interfaces.TestSessionLocal</local--> <ejb-class>test.session.TestSessionBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type> <ejb-ref >
<ejb-ref-name>ejb/mytest/TestEntity</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>test.interfaces.TestEntityHome</home>
<remote>test.interfaces.TestEntity</remote>
<ejb-link>test/TestEntity</ejb-link>
</ejb-ref> <resource-ref>
<res-ref-name>test/Mail</res-ref-name>
<res-type>javax.mail.Session</res-type>
<res-auth>Container</res-auth>
</resource-ref> </session>但是,有谁知道?xdoclet为什么要生成这两个无用的元素?该怎样配置才不会生成他们?