• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Error while execution of session facade pattern

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everybody,
I was to execute example of session facade pattern. All the files compile properly, but when ejbc command is run, i get the following error:
ERROR: Error from ejbc:
In EJB sf_entity_method, method create(int,java.lang.String,int,int) exposes local interfac
e types or local home interface types through the remote home interface of the bean. This is not al
lowed.
In EJB sf_entity_method, method findByPrimaryKey(ejb.com.sessionfacade.entity.AccountPK) ex
poses local interface types or local home interface types through the remote home interface of the
bean. This is not allowed.
ERROR: Error from ejbc:
In EJB sf_entity_method, method remove(java.lang.Object) on the home interface does not thr
ow java.rmi.RemoteException. This is a required exception.
In EJB sf_entity_method, method create(int,java.lang.String,int,int) on the home interface
does not throw java.rmi.RemoteException. This is a required exception.
In EJB sf_entity_method, method findByPrimaryKey(ejb.com.sessionfacade.entity.AccountPK) on
the home interface does not throw java.rmi.RemoteException. This is a required exception.
ERROR: Error from ejbc: In EJB sf_entity_method, the home interface ejb.com.sessionfacade.entity.Ac
countHI must extend the javax.ejb.EJBHome interface.
ERROR: ejbc found errors
Thanx in Advance
Amit
 
Saloon Keeper
Posts: 28493
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you read the messages and do what they say, you'll solve most of your problems - unlike many systems, these messages actually say what's wrong and how to fix them.
If you still come up with problems, ask in the WebLogic forum - they're better equipped to help with WebLogic-specific questions.
 
I'm just a poor boy, I need no sympathy, because I'm easy come, easy go, little high, little low, little ad
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic