ytl198395
发贴: 2
积分: 0
|
于 2005-08-17 23:24
我安装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
|