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

Error while generating code for deployment

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Iam working on the titan books example by kyle. Iam trying to deploy the cabin.ear file. While doing the final step of generate code for deployment iam facing the following error:
Mapping "CabinEJB"...
No Mapping found for object: com.ibm.etools.ejb.impl.CMPAttributeImpl (name: id)
No Mapping found for object: com.ibm.etools.ejb.impl.CMPAttributeImpl (name: deckLevel)
No Mapping found for object: com.ibm.etools.ejb.impl.CMPAttributeImpl (name: shipId)
No Mapping found for object: com.ibm.etools.ejb.impl.CMPAttributeImpl (name: name)
No Mapping found for object: com.ibm.etools.ejb.impl.CMPAttributeImpl (name: bedCount)
Unable to get type for attribute id
Unable to get type for attribute name
Unable to get type for attribute deckLevel
Unable to get type for attribute shipId
Unable to get type for attribute bedCount
the CMP fields were not showing up in the properties,
I tried SimpleContainerManaged bean given in the WAS tutorial, it worked, the CMP fields were showing in the properties, and the deployment was succesful.
can anyone give some clue to solve this.
Thanks
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If the CMP fields aren't showing up in the properties in AAT (I'm guessing you're using AAT -- right?) then you probably don't have them in the ejb-jar.xml file. Doublecheck that that file is in the right directory (META-INF) and that it matches the file in the workbook EXACTLY.
Kyle
 
R Krishnan
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Kyle,
The ejb-jar.xml is in META-INF only, and it is the same ive downloaded, i didnt modify it. But i found many attributes(ids)are named differently in this from what the one given along with WAS tutorials.
Ive changed the attributes similar to those in the tutorial, then also i faced the same problem, now ive restored the xml again to the downloaded one, the problem still persists, and the problem is same, it is not showing-up in the properties, so when i do "generate code for deployment" get the above mentioned error.
thanks
 
Thanks tiny ad, for helping me escape the terrible comfort of this chair.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic