geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasad Kashyap" <>
Subject Cannot access a EJB 3.0 bean from a servlet
Date Tue, 23 Jan 2007 19:49:55 GMT
The easiest way to reference a 3.0 EJB is by dependency injection
(@EJB). But we don't have annotations working in servlets yet. So if
we go back to doing the traditional way of a lookup, we would have to
declare a <ejb-ref> in the web.xml

Even if the annotations are processed, they write an <ejb-ref> element
in the web.xml.

However for a 3.0 EJB, the interface elements like <home>, <local> etc
are not applicable inside a <ejb-ref>. So they are (should be)
omitted. Here is the schema:

But our deployer has a hard requirement on those interfaces. It fails
to deploy the module.
Here is the stack trace excerpt:

Here is the jira for this problem:


View raw message