FAQ
Yes, that was the problem ! I replaced <local> with <business-local> and
everything works perfect now !
Thanks a lot David.

Olivier


David Blevins wrote:

The issue is <local> must refer to interfaces that extend
javax.ejb.EJBLocalObject, i.e. the old style EJB 2.x interfaces. You
just need to update your descriptor to use the <business-local>
element instead as in:

<session>
<ejb-name>EmployeeServiceBean</ejb-name>
<business-local>t4.core.employee.EmployeeServiceLocal</business-
local>
<ejb-class>t4.core.employee.EmployeeServiceBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>

That should fix the issue. Alternatively, you can let the annotation
do the work and leave EmployeeServiceLocal out of your ejb-jar.xml
entirely.
--
View this message in context: http://www.nabble.com/ClassCastException-on-JNDI-lookup-tp18342366p18357709.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 5 | next ›
Discussion Overview
groupusers @
categoriesopenejb
postedJul 8, '08 at 3:48p
activeJul 17, '08 at 5:47a
posts5
users3
websiteopenejb.apache.org
irc#openejb

People

Translate

site design / logo © 2021 Grokbase