Topic: jboss4.0中开发ejb3.0的问题? |
Print this page |
1.jboss4.0中开发ejb3.0的问题? | Copy to clipboard |
Posted by: ytl198395 Posted on: 2005-08-17 23:23 我安装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 |
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 |