• 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:

Does anyone know the answer of this question ?

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my WSAD 5.0 workspace there is an EJB project named OafTestEJB.

Within this project there is a file /OafTestEJB/ejbModule/com/company/elslon/common/oaf
/general/servicelocator/ejb/test/ServiceLocatorTestBean.java.

I add to ServiceLocatorTestBean the method:

public String test(String s) {return s;}

When I �Promote to Remote Interface� this method, WSAD adds some code to the remote interface and a couple errors appear in the tasks view. The errors are similar. One of the errors says:

�Class must implement the inherited abstract method com.company.elslon.common.oaf.general.servicelocator.ejb.test.ServiceLocatorTest.test(String). Location: line 9 in EJSRemoteStatelessServiceLocatorTestBean_fd75a2e6�.

What code has WSAD added to the remote interface, and how do I fix the errors?
 
author & internet detective
Posts: 42105
933
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sazzadul,
When you change/add/remove any signatures in an EJB, you need to regenerate the deployed code. You can do this by right clicking the project and choosing the deploy option.
 
a fool thinks himself to be wise, but a wise man knows himself to be a fool - shakespeare. foolish tiny 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