You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by John <li...@johndubchak.com> on 2008/06/02 17:45:39 UTC

EJB/JMS Dependency Jars

Hi,

I'm trying to put together a simple EAR application.  However, I am using
Ant rather than Maven and need to find a definitive list of dependencies to
compile an MDB EJB using annotations.

I've added these dependencies from Geronimo:

openejb-jee-3.0.jar
geronimo-jms_1.1_spec-1.1.1.jar
geronimo-annotation_1.0_spec-1.1.1.jar

To the classpath, but still get these errors:

[javac] Compiling 1 source file to /bin
[javac] TestMDB.java:7: package javax.ejb does not exist
[javac] import javax.ejb.MessageDrivenContext;
[javac]                  ^
[javac] TestMDB.java:8: package javax.ejb does not exist
[javac] import javax.ejb.ActivationConfigProperty;
[javac]                  ^
[javac] TestMDB.java:9: package javax.ejb does not exist
[javac] import javax.ejb.MessageDriven;
[javac]                  ^
[javac] TestMDB.java:23: cannot find symbol
[javac] symbol  : class MessageDrivenContext
[javac] location: class com.eliteswa.mdb.TestMDB
[javac]     private MessageDrivenContext ctx;
[javac]             ^
[javac] TestMDB.java:18: cannot find symbol
[javac] symbol: class MessageDriven
[javac] @MessageDriven(activationConfig = {
[javac]  ^
[javac] 5 errors

Can anyone tell me what dependencies I am missing?

Thanks,
John



Re: EJB/JMS Dependency Jars

Posted by David Jencks <da...@yahoo.com>.
On Jun 2, 2008, at 9:34 AM, John wrote:

>
> Hi Kevan,
>
>> geronimo-ejb_3.0_spec-1.0.1.jar
>
> Like shooting fish in a barrel - thanks!
>
> Are these compile-time dependencies or do they become part of either  
> the
> EAR archive or the EJB jar file?

Compile time.  These spec dependencies are supplied by geronimo (or  
other app server) at runtime.

You shouldn't need the openejb-jee-3.0.jar you mentioned in your first  
post.

thanks
david jencks

>
>
> Thanks again,
> John
>


Re: EJB/JMS Dependency Jars

Posted by John <li...@johndubchak.com>.
Hi Kevan,

> geronimo-ejb_3.0_spec-1.0.1.jar

Like shooting fish in a barrel - thanks!

Are these compile-time dependencies or do they become part of either the
EAR archive or the EJB jar file?

Thanks again,
John


Re: EJB/JMS Dependency Jars

Posted by Kevan Miller <ke...@gmail.com>.
On Jun 2, 2008, at 11:45 AM, John wrote:

> Hi,
>
> I'm trying to put together a simple EAR application.  However, I am  
> using
> Ant rather than Maven and need to find a definitive list of  
> dependencies to
> compile an MDB EJB using annotations.
>
> I've added these dependencies from Geronimo:
>
> openejb-jee-3.0.jar
> geronimo-jms_1.1_spec-1.1.1.jar
> geronimo-annotation_1.0_spec-1.1.1.jar
>
> To the classpath, but still get these errors:
>
> [javac] Compiling 1 source file to /bin
> [javac] TestMDB.java:7: package javax.ejb does not exist
> [javac] import javax.ejb.MessageDrivenContext;
> [javac]                  ^
> [javac] TestMDB.java:8: package javax.ejb does not exist
> [javac] import javax.ejb.ActivationConfigProperty;
> [javac]                  ^
> [javac] TestMDB.java:9: package javax.ejb does not exist
> [javac] import javax.ejb.MessageDriven;
> [javac]                  ^
> [javac] TestMDB.java:23: cannot find symbol
> [javac] symbol  : class MessageDrivenContext
> [javac] location: class com.eliteswa.mdb.TestMDB
> [javac]     private MessageDrivenContext ctx;
> [javac]             ^
> [javac] TestMDB.java:18: cannot find symbol
> [javac] symbol: class MessageDriven
> [javac] @MessageDriven(activationConfig = {
> [javac]  ^
> [javac] 5 errors
>
> Can anyone tell me what dependencies I am missing?

geronimo-ejb_3.0_spec-1.0.1.jar

--kevan