I did the integration with JBoss as told, added nonaming to the startup.bat
etc.. What i don't understand is that from the Test.java everything goes
fine, it uses the same .jar file (in the tdk webapp lib). But when i do it
from my webapplication i get the error you see below. I can however do
home.create() and it creates another row in the DBIt goes wrong in this
code:
while(enum.hasMoreElements())
   {
    Product prod = (Product) enum.nextElement();
    description = prod.getDescription();  <<<-------------------
    }
----- Original Message -----
From: "mroosendaal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 14, 2001 3:30 PM
Subject: Jboss integration error?


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to