ejb@glassfish.java.net

Re: Project Deployment Fails

From: Kenneth Saks <Kenneth.Saks_at_Sun.COM>
Date: Thu, 15 Jun 2006 11:32:44 -0400

Daniel Cavalcanti wrote:

> Hi Ken.
>
> I used NetBeans to generate that project. I haven't written the client
> side yet.
> I wanted to first write the EJB side and deploy it.

I know this is a bit confusing but Java Persistence API classes are not
EJB components,
so essentially this app doesn't have any Java EE components. When it
comes to
usage of Java Persistence API entities from within Java EE apps, that
can only be done from
within an EJB component(session bean, message-driven bean), web
application, or
Java EE Application Client. Of course, those components have various
ways to
pass the entity classes to other tiers, but the initial access is done
from within the
Java EE App itself.

> Then I'd use it inside a standalone client app or a web app.

You'll need to add the Application Client or Web Application to the same
.ear as
contains the Java Persistence API. Otherwise, you're talking about
what's referred
to as J2SE usage of the Java Persistence API.

We also have a separate alias for Java Persistence API questions :

persistence_at_glassfish.dev.java.net

 --ken

>
>
> Daniel.
>
> On 6/14/06, *Kenneth Saks* <Kenneth.Saks_at_sun.com
> <mailto:Kenneth.Saks_at_sun.com>> wrote:
>
> Daniel Cavalcanti wrote:
>
>> Hello,
>>
>> I have a simple project that I'm trying to deploy, but it fails
>> and I can't figure out why.
>> Could someone help me?
>
> Hi Daniel,
>
> I haven't tried deploying it but I don't see any Java EE modules
> (.wars, ejb-jars, app clients)
> in the project. How are you planning to access the Java
> Persistence API entity classes?
>
>
> I attached the sample project.
>
> thanks,
> Daniel.
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail:
>ejb-unsubscribe_at_glassfish.dev.java.net <mailto:ejb-unsubscribe_at_glassfish.dev.java.net>
>For additional commands, e-mail: ejb-help_at_glassfish.dev.java.net <mailto:ejb-help_at_glassfish.dev.java.net>
>
>
>
>
>