Hope I haven't made any errors in the example causing to to waiste your
time (as i did with my typo comp:/java/env). If so let me know. I'll fix
the example.
The error messages tell me that the system can't find the home interface.
>From the output I can't deduct what is wrong (which could be a lack of
understanding from my side). I see two possibilities: 1) either there is a
naming problem, or 2) resolving the class file for the home interface goes
wrong.
Here are some things I would have a look at:
1. Check wether there is a orion-application-client.xml in the META-INF
folder/directory on your client and whether the name you are using is in
there. You specify the name in java:/comp/env/<name>. The name in the
orion-application-client.xml file points you to the name in the
application-client.xml (on the client) file.
2. Check that the <name> in the application-client.xml file corresponds
with the <name> in the ejb-jar.xml file on the server.
3. When you are sure that it is all correct, I would have a look at the
mapping for the Home (plus the Remote and EJB) classes. Check whether the
home interfaces defined in application-client.xml and in the ejb-jar.xml
refer to the correct class files. All though I think that if the one in
ejb-jar.xml is wrong the server will complain when starting the
application. Make also sure they are in the right folders/directories
(<install-root>/hello/ejb).
Hope this helps,
Frank
On Friday, October 06, 2000 9:22 PM, Kurt Hoyt [SMTP:[EMAIL PROTECTED]] wrote:
> I've gotten that same error, usually the first time I run a client
program.
> I run it again, and it works fine with no NamingException. Very strange.
>
> Kurt in Atlanta
>
> >-----Original Message-----
> >From: Daniel C. DiCesare [mailto:[EMAIL PROTECTED]]
> >Sent: Friday, October 06, 2000 8:27 AM
> >To: Orion-Interest
> >Subject: Re: Client application
> >
> >
> >Thanks for your response Robert. You were right about the
> >typo. It really
> >was in my email. The path that I use is
> >;\orion\orion.jar;\orion\ejb.jar;\orion\jdbc.jar;\orion\jndi.ja
> >r;\orion\mai
> >l.jar;orion-primer-client.jar
> >
> >
> >Since this email I have gotten the client to run, now I get
> >the following
> >error:
> >
> >Unable to get initial JNDI context: javax.naming.NamingException: Error
> >reading application-client descriptor: No location specified
> >and no suitable
> >instance of the type 'hello.ejb.Hello' found for the ejb-ref
> >ejb/HelloHome
> >Exception in thread "main" java.lang.Exception: We're going to
> >the dogs!
> > at hello.client.HelloClient.main(HelloClient.java:26)
> >
> >----- Original Message -----
> >From: "Robert Krueger" <[EMAIL PROTECTED]>
> >To: "Orion-Interest" <[EMAIL PROTECTED]>
> >Sent: Friday, October 06, 2000 4:33 PM
> >Subject: Re: Client application
> >
> >
> >At 09:48 06.10.00 , you wrote:
> >>Frank,
> >>I followed your example and deployed the orion-primer
> >application. I copied
> >>the necessary JAR's into my directory along with the
> >jndi.properties file.
> >I
> >>also copied the orion-primer-client.jar into my directory. I
> >then ran the
> >>following
> >>
> >>java -classpath .:orion.jar:ejb.jar:jndi.jar:orion-primer-clinet.jar
> >>
> >>hello.client.HelloClient
> >>
> >>I got the following error:
> >>Exception in thread "main" java.lang.NoClassDefFoundError:
> >>hello/client/HelloClient
> >>
> >>Any idea?
> >
> >it obviously doesn't find the class. a typo in the classpath maybe ;-)
> >
> >robert
> >
> >>-Danno
> >
> >(-) Robert Kruger
> >(-) SIGNAL 7 Gesellschaft fur Informationstechnologie mbH
> >(-) Bruder-Knau?-Str. 79 - 64285 Darmstadt,
> >(-) Tel: 06151 665401, Fax: 06151 665373
> >(-) [EMAIL PROTECTED], www.signal7.de
> >
> >
> >
> >
> << File: ATT00003.html >>