thanks!!!, but it does contain the "missing" class
javax.ejb.SessionContext.
I'm not sure when to use the Geronimo artifact I used or a
geronimo-spec-ejb.
Anyway, my j2ee geronimo dependency does contain the SessionContext
artifact ...
why does compiling fail nevertheless?? :-(
Using a javax.ejb.SessionContext is necessary for all EJB 2 applications
.. so
I still wonder what others exactly use as J2EE dependency for compiling
EJB 2
projects with Maven 2 ??
Michael
Wayne Fay schrieb:
symbol: method lookup(java.lang.String)
location: interface javax.ejb.SessionContext
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-j2ee_1.4_spec</artifactId>
<version>1.1</version>
<scope>provided</scope>
</dependency>
Go into your Maven repo cache under ~/.m2/repository and find the jar
file corresponding to this artifact. Open it with a zip file tool like
WinZip etc. Dig around in the jar to confirm it has the class file
corresponding to the interface mentioned in the error.
I would be willing to bet it does not have the class. You probably
need to use geronimo-spec-ejb or another similar artifact instead.