Home > Java > Business-local in EJB3 deployment descriptor

Business-local in EJB3 deployment descriptor

I recently tried to migrate an EJB3 application from OC4J to WebLogic. It used both annotations and an ejb-jar.xml file. Everything worked just fine in OC4J, but WebLogic complained:

In EJB SomeEJB, both the local home and local component interface must be specified. Currently, only one of them is specified.

After some time I found the problem. Apparently:

<local>com.example.SomeEJBLocal</local>

Should be:

<business-local>com.example.SomeEJBLocal</business-local>

Perhaps obvious in hindsight, but not from the error message.

Advertisements
Categories: Java
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: