Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Application Server  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 jboss4.0中开发ejb3.0的问题?
ytl198395





发贴: 2
积分: 0
于 2005-08-17 23:23 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我安装jboss4.0后,下载了ejb3.0,安装好后,我来测试ejb3.0在jboss4.0中可不可以用
但是出现下面的问题,不知道是什么原因。
下面是说哪个类没找到,难道位置放的不对吗?这个位置该怎么放呢?

我的jboss4.0在c:\jboss
ejb3.0的动态库拷贝到了jboss\server\default\lib下,照网上说的
一个ejb3.0的带的例子,拷贝到c:\stateless

然后在c:\stateless下运行ant,报错
C:\stateless>ant run
Buildfile: build.xml

prepare:

compile:

ejbjar:

run:
[java] Exception in thread "main" javax.naming.NameNotFoundException: org.j
boss.tutorial.stateless.bean.CalculatorRemote not bound
[java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)

[java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)

[java] at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
[java] at org.jnp.server.NamingServer.lookup(NamingServer.java:278)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav
a:294)
[java] at sun.rmi.transport.Transport$1.run(Transport.java:153)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
[java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor
t.java:460)
[java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT
ransport.java:701)
[java] at java.lang.Thread.run(Thread.java:595)
[java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe
r(StreamRemoteCall.java:247)
[java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCa
ll.java:223)
[java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
[java] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:61
0)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:57
2)
[java] at javax.naming.InitialContext.lookup(InitialContext.java:351)
[java] at org.jboss.tutorial.stateless.client.Client.main(Client.java:1
9)
[java] Java Result: 1

BUILD SUCCESSFUL
Total time: 12 seconds




从Coding Fan到真正的技术专家

话题树型展开
人气 标题 作者 字数 发贴时间
9674 jboss4.0中开发ejb3.0的问题? ytl198395 2493 2005-08-17 23:23

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   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