users@glassfish.java.net

Re: Need to access Stateless Session Bead from POJO

From: <glassfish_at_javadesktop.org>
Date: Sat, 03 Apr 2010 13:09:35 PDT

> > This is what the spec says:
> > [i]"The value of the ejb-link element must be the
> > ejb-name of an enterprise bean in the same ejb-jar
> > file or in another ejb-jar file in the same Java
> EE
> > application unit."[/i]
>
> I love it when you do that!
>
> > I guess, option #1 is simpler for you.
>
> Indeed, it is.
>
> > Your assesment of the problem is correct.
>
> [i]My[/i] assessment? You've got to be kidding! I
> was so far off the realization that I had to verify
> the ear to get the war to verify correctly ... No, I
> would never have come to that! Lord, that was
> obscure! No, ... I would never have put that
> together!
>
> However, all seems to work now. Thank, you, thank
> you, thank you!

I create a project .ear but there is a error:
- Deploy .ear successful
- Deploy .ejb successful
- Deploy .war failed and error is:

[i] Deploying application in domain failed; Error loading deployment descriptors for module [smart_ticket_temp] -- Error: Unresolved <ejb-link>: SmartTicketFacadeBean
C:\Users\DucPhuong\Documents\NetBeansProjects\temp\smart_ticket_temp\nbproject\build-impl.xml:574: The module has not been deployed.
BUILD FAILED (total time: 1 second)
[/i]
[b]
I added .ejb in library of .war, web.xml and sun-ejb.xml have ejb reference.[/b]

i see your topic but i can't solve.
Can you tell me solve it how?
[Message sent by forum member 'ngoclantim']

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