« Return to Thread: Java EE Applications tutorial help desired

RE: Java EE Applications tutorial help desired

by Gavin Ross(i) :: Rate this Message:

Reply to Author | View in Thread

Hi Russ,

Your problem is a typo some where in your NewsEntityFacadeLocal. Refer to
error "Lejb/NewsEntityFacadeLocal" versus expected
"ejb/NewsEntityFacadeLocal". Note the "L" infornt of the ejb.

Regards
Gavin

-----Original Message-----
From: Russ ² [mailto:toolshed51@...]
Sent: 07 May 2008 08:54 PM
To: nbj2ee@...
Subject: [nbj2ee] Java EE Applications tutorial help desired



Hello, I'm trying to complete the Getting Started with Java EE Applications
tutorial located here http://www.netbeans.org/kb/60/javaee/ejb30.html
I'm using Netbeans 6.1 with everything default during setup

Everything goes fine until I try to run it, and the glassfish server gives
me this error about the ListNews servlet

        Class [ Lejb/NewsEntityFacadeLocal; ] not found. Error while loading
[ class web.ListNews ]
        Error in annotation processing: java.lang.NoClassDefFoundError:
Lejb/NewsEntityFacadeLocal;
        deployed with moduleid = NewsApp
        StandardWrapperValve[ListNews]: PWC1406: Servlet.service() for
servlet ListNews threw exception
        java.lang.NoClassDefFoundError: ejb/NewsEntityFacadeLocal

And this error with the PostMessage servlet

        StandardWrapperValve[PostMessage]: PWC1406: Servlet.service() for
servlet PostMessage threw exception
        java.lang.NullPointerException

I have been unable to determine on my own, or with google's help, what the
problem is.  It appears that the EJB binding isn't happening, but I'm
clueless how to debug or fix.



So I try this tutorial on a fresh install on a different computer, and I
can't even get the servlet to call the bean This part of the instructions:

        When you click Finish, the class ListNews.java opens in the Source
Editor. In the Source Editor, do the following:
           1. Right-click in the source code and select Enterprise Resources
> Call Enterprise Bean.
           2. In the Call Enterprise Bean dialog box, select
NewsEntityFacade and click OK. When you click OK, the entity bean resource
is injected in the servlet using the @EJB annotation.
   
When I select NewsEntityFacade, the UI says "Selected bean is not in the
same module or enterprise application"

This is another problem I'm confused about, both the war and ejb are in my
enterprise application, so what could be the problem?


Other problems:
        When clicking finish on the Create New Enterprise Application, it
frequently stalls at 11% and "Creating new project"
        Cancelling and redoing the dialog is a work around


Thanks for your help - Russ


 
____________________________________________________________________________
________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


--
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.23.9/1418 - Release Date: 2008/05/06
05:17 PM


 « Return to Thread: Java EE Applications tutorial help desired

LightInTheBox - Buy quality products at wholesale price