geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "steve.hostettler" <>
Subject Security requires interfaces on @Stateless ejb
Date Fri, 19 Oct 2012 09:33:38 GMT
Hi there,

we have found a strange behavior in our application. After having secured
the context, some of the injection were not working anymore. We narrowed it
down to the fact that @Stateless ejb without interface were not injected. As
soon as we add an interface with @Local it works.

We have numerous such beans and therefore the refactoring cost is quite
high. As this is not mandatory in the specification I would like to know if
it is considered as a bug and if there is a workaround (apart from
refactoring everything)

Here is the error message
java.lang.InstantiationException: Some objects to be injected were not found
in jndi: [javax.naming.NamingException: could not look up
[Root exception is javax.naming.NotContextException:

And h geronimo-web.xml
web.xml <> 
ere are the web.xml and geronimo-web.xml files

View this message in context:
Sent from the Users mailing list archive at

View raw message