users@glassfish.java.net

Re: Deploy Problems

From: <glassfish_at_javadesktop.org>
Date: Fri, 03 Aug 2007 03:58:54 PDT

Hi Tim,

Thanks again for your prompt response.

I'm glad to see that the app deploys on your system and runs with the same result as on my system. Now, we both have the same version of the app giving the same error on my Sun AS 9.0 and your GF V2.

The dialog box that you're getting is the stack trace that I print out when I catch the exception thrown when the menueFacade is null. The app should be showing a dialog box with "hello world" when everything works right.

The big question is: why is the facade null? Is this a classpath problem? Do I need any deployment descriptors?

A short description of the app:
In main, I create an instance of the class Menue. Then I call a method of the class Menue (getString) that returns a string (which should be "hello world") and show it in a dialog box.

The method Menue.getString() calls a method (thru a remote interface) of the facade MenueFacade (getString). This is where the error is. The variable menueFacade is an instance of the remote interface with the @EJB annotation.
This variable is null. I'm assuming that the EJB injection didn't work. Here is where I don't know what to do to get the injection to work.

Danny.

P.S.
Our project is still in the development phase, so we will be checking for newer stable releases of Sun AS. The reason we're not using GF versions is because we have to use the same version in development that will be used in production. In a later phase, the customer will install Sun AS in his system and we will have a harder time updating to newer releases. The customer will have a support contract for Sun AS.
[Message sent by forum member 'dsmith9094' (dsmith9094)]

http://forums.java.net/jive/thread.jspa?messageID=229323