Meaningless Drivel is fun!*
The moose likes EJB and other Java EE Technologies and the fly likes Please point out mistake while deploying EJB3.1 - No-Interface, 2.1 and 3.1 views together ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Please point out mistake while deploying EJB3.1 - No-Interface, 2.1 and 3.1 views together ??" Watch "Please point out mistake while deploying EJB3.1 - No-Interface, 2.1 and 3.1 views together ??" New topic
Author

Please point out mistake while deploying EJB3.1 - No-Interface, 2.1 and 3.1 views together ??

Anirudh Gupta
Ranch Hand

Joined: Dec 08, 2010
Posts: 43

Can an EJB expose a 3.1 Business Component Interface(Remote+Local), a 2.1 Interface(Remote+Local) and a No-Interface view together?

I am having trouble deploying an EJB which exposes all 3 views in Weblogic 12.1.1.

The server keeps throwing an Exception.

My deployed EJB is simple and is as below. The gotToDoOld() method is declared in the 2.1 remote component interface.
The declaration of the Remote interface has been been made in the ejb-jar.xml. The Home interface has been declared
in the bean class also as can be observed in the code below.

Can some one point out the mistake I am making

Exception,


EJB,


Regards,
Anirudh
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1012
    
    5



Remove the throws clause here. A RemoteException should only be thrown in a remote interface, not the implementing class.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please point out mistake while deploying EJB3.1 - No-Interface, 2.1 and 3.1 views together ??
 
Similar Threads
how to use local & remote intefaces in ejb3
DeploymentException encountered when trying to deploy an Enterprise Bean in WebSphere
Error while deploying in weblogic
EJB3.1-Weblogic12C. Problem creating dummy orb: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code
Error on using weblogic.appc for EJB3`