users@glassfish.java.net

Re: package javax.ejb does not exist - gf v3

From: Ludovic Champenois <Ludovic.Champenois_at_Sun.COM>
Date: Tue, 13 Oct 2009 08:39:48 -0700

Felipe Gaścho wrote:
> you need the packages during the compilation, and during the packaging
> you just can leave it out of your war/ear file...
>
> during compilation you need that in the classpath.. (that's why
> everyone migrated to maven)
>
? Not everyone migrates to maven...
Easy way for ant, you need to make sure you compile with all the gf v3
api jars located in modules/*.jar and modules/endorsed/*.jar directories.
Ludo
> On Tue, Oct 13, 2009 at 5:05 PM, Eve Pokua <gorgeous65_at_msn.com> wrote:
>
>> hI,
>>
>> I have glassfish V3 installed and I am trying to build my application
>> on the command line using ant. I get loads of errors such as -
>>
>> package javax.ejb does not exist
>>
>> essBean.java:15: cannot find symbol
>> [javac] symbol: class Stateful
>> [javac] @Stateful
>> [javac] ^
>>
>> It looks like it is looking for those package which should be within the
>> server installation.
>>
>> How do I sort this out?/
>>
>>
>> Thanking you.
>>
>> eve
>>
>> ________________________________
>> New! Receive and respond to mail from other email accounts from within
>> Hotmail Find out how.
>>
>
>
>
>