Hi
I get the following error when i call a method search in Client that makes a call to
an EJB (home.findByName(naam);) When i do this from a Test.java everything goes as it
should. When i do this from within the TDK application i get this error:
java.lang.reflect.UndeclaredThrowableException: java.net.MalformedURLException:
unknown protocol: jndi
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
RemoteCall.java:245)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Un
known Source)
at org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.
java:182)
at $Proxy1.getDescription(Unknown Source)
at com.sogyo.ejbxml.client.Client.search(Client.java:59)
at org.sogyo.test.modules.actions.EjbTest.doRetrieve(EjbTest.java:94)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.turbine.util.velocity.VelocityActionEvent.executeEvents(Ve
locityActionEvent.java:167)
at org.apache.turbine.util.velocity.VelocityActionEvent.perform(Velocity
ActionEvent.java:114).
Calling a method that inserts data in a database through the EJB goes well. I also
moved all the packages from Jboss\client to the application\lib and removed the JNDI
packages. What could be the problem?
Hope someone can help,
Maarten