• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Pls Urgent ....Compilation error in petstore while deploying

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
I met with this error
in the class SupplierOrderEJB_PM.java there is a method setLineItems(java.util.Collection)
pls go thru the folloing error ...
c:\j2sdkee1.3.1\repository\client-18\gnrtrTMP\SupplierEAR\com\sun\j2ee\blueprint
s\supplierpo\ejb\SupplierOrderEJB_PM.java:3: com.sun.j2ee.blueprints.supplierpo.
ejb.SupplierOrderEJB_PM should be declared abstract; it does not define setLineI
tems(java.util.Collection) in com.sun.j2ee.blueprints.supplierpo.ejb.SupplierOrd
erEJB
public final class SupplierOrderEJB_PM extends SupplierOrderEJB implements com.s
un.ejb.PersistentInstance {
^
c:\j2sdkee1.3.1\repository\client-18\gnrtrTMP\SupplierEAR\com\sun\j2ee\blueprint
s\supplierpo\ejb\SupplierOrderEJB_PM.java:57: getLineItems() in com.sun.j2ee.blu
eprints.supplierpo.ejb.SupplierOrderEJB_PM cannot override getLineItems() in com
.sun.j2ee.blueprints.supplierpo.ejb.SupplierOrderEJB; attempting to use incompat
ible return type
found : com.sun.j2ee.blueprints.lineitem.ejb.LineItemLocal
required: java.util.Collection
public com.sun.j2ee.blueprints.lineitem.ejb.LineItemLocal getLineItems() {
^
2 errors
Compilation failed ...

thank u,
regards,
Palash
 
Yes, of course, and I accept that blame. In fact, i covet that blame. As does this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic