Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Java EE 综合讨论区
打印话题 寄给朋友 订阅主题 |
话题被移动 | ||
该话题已被移动 - why , 2003-06-29 11:08 如果您尚不清楚该话题被移动的原因,请参考论坛规则以及本版公告或者联系本版版主。 |
作者 | Re:(原创)在JBOSS3.0.X和JBOSS3.2.X下的一个CMP实现的全过程(源码中文注释) [Re:why] |
ringayumi
发贴: 155 积分: 10 |
于 2003-07-10 14:53
14:34:36,992 ERROR [STDERR] javax.naming.NameNotFoundException: RingRemote not bound hello everybody!! I have a question!~~when i deploy the JAR for Jboss 3.2.1~(Deploy it's ok!!) run the client ~~ Why happend preceding Exception~~~~ thanks client code: InitialContext ic = new InitialContext(); DemoHome home = (DemoHome)javax.rmi.PortableRemoteObject.narrow(ic.lookup("RingRemote"), DemoHome.class); Demo v = home.create(); file list: META-INF/ META-INF/MANIFEST.MF Ring/DAO.class Ring/Demo.class Ring/DemoDAO.class Ring/DemoHome.class Ring/VO.class Ring/META-INF/ejb-jar.xml Ring/META-INF/jboss.xml my ejb-jar.xml : <?xml version="1.0"?> <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd"> <ejb-jar> <enterprise-beans> <session> <ejb-name>RingDemo</ejb-name> <home>Ring.DemoHome</home> <remote>Ring.Demo</remote> <ejb-class>Ring.DemoDAO</ejb-class> <session-type>Stateless</session-type> <transaction-type>Container</transaction-type> </session> </enterprise-beans> </ejb-jar> my jboss.xml: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd"> <jboss> <enterprise-beans> <session> <ejb-name>RingDemo</ejb-name> <jndi-name>RingRemote</jndi-name> </session> </enterprise-beans> </jboss> 我有一点感想和初学者们同享(原创) |
话题树型展开 |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |