[jboss-jira] [JBoss JIRA] Updated: (JBAS-4930) Cannot lookup ejb3 remote proxy
Thomas Diesler (JIRA)
jira-events at lists.jboss.org
Wed Oct 31 05:15:44 EDT 2007
[ http://jira.jboss.com/jira/browse/JBAS-4930?page=all ]
Thomas Diesler updated JBAS-4930:
---------------------------------
Fix Version/s: JBossAS-5.0.0.Beta3
Description:
[tdiesler at tddell jbossws-native-2.0.2]$ ant -Dtest=org.jboss.test.ws.jaxws.samples.serviceref.ServiceRefEJBTestCase one-test
one-test:
[mkdir] Created dir: /home/tdiesler/svn/jbossws/stack/native/branches/jbossws-native-2.0.2/output/tests/reports
[junit] Running org.jboss.test.ws.jaxws.samples.serviceref.ServiceRefEJBTestCase
[junit] Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 3.901 sec
[junit] Test org.jboss.test.ws.jaxws.samples.serviceref.ServiceRefEJBTestCase FAILED
Testcase: testEJBClient took 0.023 sec
Caused an ERROR
ejb not bound
javax.naming.NameNotFoundException: ejb not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:179)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
at $Proxy0.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:669)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jboss.test.ws.jaxws.samples.serviceref.ServiceRefEJBTestCase.testEJBClient(ServiceRefEJBTestCase.java:86)
@Remote(EJBRemote.class)
@RemoteBinding(jndiBinding = "/ejb/EJBClient")
@Stateless
public class EJBClient
{
...
}
public void testEJBClient() throws Exception
{
// JAXWS <service-ref> is only supported in EE5
if (isTargetJBoss50())
{
InitialContext iniCtx = getInitialContext();
EJBRemote ejbRemote = (EJBRemote)iniCtx.lookup("/ejb/EJBClient");
String helloWorld = "Hello World!";
Object retObj = ejbRemote.echo(helloWorld);
assertEquals(helloWorld, retObj);
}
}
Assignee: Carlo de Wolf
> Cannot lookup ejb3 remote proxy
> -------------------------------
>
> Key: JBAS-4930
> URL: http://jira.jboss.com/jira/browse/JBAS-4930
> Project: JBoss Application Server
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Reporter: Thomas Diesler
> Assigned To: Carlo de Wolf
> Fix For: JBossAS-5.0.0.Beta3
>
>
> [tdiesler at tddell jbossws-native-2.0.2]$ ant -Dtest=org.jboss.test.ws.jaxws.samples.serviceref.ServiceRefEJBTestCase one-test
> one-test:
> [mkdir] Created dir: /home/tdiesler/svn/jbossws/stack/native/branches/jbossws-native-2.0.2/output/tests/reports
> [junit] Running org.jboss.test.ws.jaxws.samples.serviceref.ServiceRefEJBTestCase
> [junit] Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 3.901 sec
> [junit] Test org.jboss.test.ws.jaxws.samples.serviceref.ServiceRefEJBTestCase FAILED
> Testcase: testEJBClient took 0.023 sec
> Caused an ERROR
> ejb not bound
> javax.naming.NameNotFoundException: ejb not bound
> at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
> at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)
> at org.jnp.server.NamingServer.getObject(NamingServer.java:556)
> at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
> at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> at sun.rmi.transport.Transport$1.run(Transport.java:153)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
> at java.lang.Thread.run(Thread.java:595)
> at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
> at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
> at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:179)
> at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
> at $Proxy0.lookup(Unknown Source)
> at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:669)
> at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:629)
> at javax.naming.InitialContext.lookup(InitialContext.java:351)
> at org.jboss.test.ws.jaxws.samples.serviceref.ServiceRefEJBTestCase.testEJBClient(ServiceRefEJBTestCase.java:86)
> @Remote(EJBRemote.class)
> @RemoteBinding(jndiBinding = "/ejb/EJBClient")
> @Stateless
> public class EJBClient
> {
> ...
> }
> public void testEJBClient() throws Exception
> {
> // JAXWS <service-ref> is only supported in EE5
> if (isTargetJBoss50())
> {
> InitialContext iniCtx = getInitialContext();
> EJBRemote ejbRemote = (EJBRemote)iniCtx.lookup("/ejb/EJBClient");
> String helloWorld = "Hello World!";
> Object retObj = ejbRemote.echo(helloWorld);
> assertEquals(helloWorld, retObj);
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list