quality@glassfish.java.net

RE: problem with ejb3.1?

From: Wim Verreycken <wim_at_pizzastop.be>
Date: Tue, 4 Nov 2008 11:56:04 +0100

Hi Sherry,

YES! This seems to work!
I also tested glassfish with the jar moved up one level. It seems to work
fine as well.

This works for all projects in Netbeans, also the existing ones!
Thanks a lot!

Wim
-----Original Message-----
From: Sherry.Shen_at_Sun.COM [mailto:Sherry.Shen_at_Sun.COM]
Sent: dinsdag 4 november 2008 0:08
To: quality_at_glassfish.dev.java.net
Subject: Re: problem with ejb3.1?


Before NetBeans issue is resolved, is it a workaround by moving
glassfish/modules/ejb/javax.ejb.jar one level up?
GFv3 ealier build may have glassfish/modules/javax.ejb.jar (build 25 time?).
Thanks!

Sherry

Peter Williams wrote, On 11/3/2008 1:39 PM:

> Please file an issue in NetBeans issue tracker (issues.netbeans.org I
> think) assigned to category: serverplugins, subcategory: glassfish_v3
> so we can track this. It's unclear to me if this is a bug or an EE6
> deficiency. IIRC, it used to work, but jar packaging changes in V3
> Prelude may have caused a regression in behavior.
>
> FWIW, NetBeans 6.5 doesn't officially (or even unofficially) support
> EE6 style features (ejbs in web apps, for example) right now as we did
> not have any time to spend on them during this past cycle. Some
> things may work, but that would probably be a coincidence. EE6
> tooling is being performed for NB 7.0 (or whatever the next version
> ends up being.)
>
> -Peter
>
> Wim Verreycken wrote:
>
>> If I just add javax.ejb.jar as an extra server library to my project,
>> it is
>> ok. But this should not be necessary.
>>
>> wim
>>
>> -----Original Message-----
>> From: Wim Verreycken [mailto:wim_at_pizzastop.be] Sent: maandag 3
>> november 2008 22:26
>> To: quality_at_glassfish.dev.java.net
>> Subject: RE: problem with ejb3.1?
>>
>> Actually I was just doing that.
>> They are under modules/ejb.
>>
>> The problem is on the netbeans side.
>> If I check the libraries under "Glassfish V3 Prelude",
>> the one in modules/ejb is missing : javax.ejb.jar
>>
>> wim
>>
>> -----Original Message-----
>> From: Ludovic.Champenois_at_Sun.COM [mailto:Ludovic.Champenois_at_Sun.COM]
>> Sent: maandag 3 november 2008 22:05
>> To: quality_at_glassfish.dev.java.net
>> Subject: Re: problem with ejb3.1?
>>
>> Wim Verreycken wrote:
>>
>>
>>> Hi,
>>>
>>>
>>> When I try using the ejb from another class
>>>
>>> import javax.ejb.EJB; //this doesn't work
>>>
>>> @WebService()
>>> public class catV2Web {
>>> @EJB
>>> private catV2SessionLocal ejbRef;
>>>
>>> it says "package javax.ejb does not exist". If I change "server" in
>>> "properties" to glassfish v2, the error disappears. (This changes
>>>
>>
>> "Glassfish
>>
>>
>>> V2" to "Glassfish V3 Prelude" under libraries)
>>>
>>>
>>
>>
>> For this given real v3 prelude server, check if you really see the
>> ejb apis jars under the glassfish/modules/ejb directory?
>> Ludo
>>
>>
>>
>>> wim
>>>
>>> -----Original Message-----
>>> From: Ludovic.Champenois_at_Sun.COM [mailto:Ludovic.Champenois_at_Sun.COM]
>>> Sent: maandag 3 november 2008 16:47
>>> To: quality_at_glassfish.dev.java.net
>>> Subject: Re: problem with ejb3.1?
>>>
>>> Survivant 00 wrote:
>>>
>>>
>>>> need to install the ejb module. Use the update tool.
>>>>
>>>> This ejb container only works for EJBs inside a Web app, not via
>>>> ejb modules. It does not support remote, stateful of MDB beans.
>>>>
>>>
>>> It is a preview and not the focus for NetBeans 6.5.
>>>
>>> Please, put your local ejbs inside the web app src area. (Use the
>>> Class wizard, and add your ejb annotations.)
>>>
>>> Ludo
>>>
>>>
>>>> 2008/11/3 Wim Verreycken <wim_at_pizzastop.be <mailto:wim_at_pizzastop.be>>
>>>>
>>>> Hi everyone,
>>>>
>>>>
>>>>
>>>> I am trying to create an EJB project using Netbeans 6.5RC2 and gf
>>>> v3 prelude b28c.
>>>>
>>>> Just trying new project, EJB Module, then created a stateless
>>>> session bean.
>>>>
>>>> Then created a web project which uses the session bean.
>>>>
>>>> But the @EJB annotation is not recognized.
>>>>
>>>> It seems like the Glassfish V3 server library doesn't include
>>>> javax.ejb ?
>>>>
>>>>
>>>> Is this normal/known?
>>>>
>>>>
>>>> wim
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>>
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: quality-help_at_glassfish.dev.java.net
>


---------------------------------------------------------------------
To unsubscribe, e-mail: quality-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: quality-help_at_glassfish.dev.java.net