Topic: jndi出现问题.(高手指教)

  Print this page

1.jndi出现问题.(高手指教) Copy to clipboard
Posted by: etrustzhang2004
Posted on: 2004-11-08 16:58

客户端:
(com.test.HelloWorldEJBHome) getContext().lookup(
        com.test.HelloWorldEJBHome.JNDI_NAME);

出现命名服务异常,指示找不到naming.
第一次用eclipse开发ejb.
部署异常:

javax.naming.CommunicationException [Root exception is java.rmi.NoSuchOb
ctException: object not exported]]
:42:47,078 ERROR [STDERR] at org.jboss.deployment.MainDeployer.checkIncomp
teDeployments(MainDeployer.java:1127)
:42:47,093 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(Main
ployer.java:588)
:42:47,093 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(Main
ployer.java:569)
:42:47,093 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(
tive Method)
:42:47,109 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(N
iveMethodAccessorImpl.java:39)
:42:47,109 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invo
(DelegatingMethodAccessorImpl.java:25)
:42:47,109 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:3
)
:42:47,125 ERROR [STDERR] at org.jboss.mx.capability.ReflectedMBeanDispatc
r.invoke(ReflectedMBeanDispatcher.java:284)
:42:47,140 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
nServerImpl.java:517)
:42:47,140 ERROR [STDERR] at org.jboss.system.server.ServerImpl.doStart(Se
erImpl.java:324)
:42:47,140 ERROR [STDERR] at org.jboss.system.server.ServerImpl.start(Serv
Impl.java:221)
:42:47,140 ERROR [STDERR] at org.jboss.Main.boot(Main.java:148)
:42:47,156 ERROR [STDERR] at org.jboss.Main$1.run(Main.java:381)
:42:47,156 ERROR [STDERR] at java.lang.Thread.run(Thread.java:534)

这是仿照一个网上例子做的。http://blog.csdn.net/jjcwww/archive/2004/07/19/45399.aspx

没有调试成功.我没有改任何代码.

2.Re:jndi出现问题.(高手指教) [Re: etrustzhang2004] Copy to clipboard
Posted by: lot1
Posted on: 2004-11-10 18:15

check your deployment files.


   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