• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Using ejbdeploy for CMPs : Deployment Descriptor Problem!!

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having a problem setting up my ant script to build the ear file.
I am running WAS 4.0.5, Ant 1.5, JDK 1.4. I am using ejbdeploy from WAS.
I am using the following bat file to build the ejb jar which contains 8 session and 20 CMP beans
set WAS_HOME=/WebSphere/AppServer
set WAS_HOME_WIN=\WebSphere\AppServer
set ITP_LOC=%WAS_HOME%/deploytool/itp
set ejbdeploy=%WAS_HOME_WIN%\bin\ejbdeploy.bat
SET CLIENTSAS=-Dcom.ibm.CORBA.ConfigURL=file:/%WAS_HOME%/properties/sas.client.props
SET WSCPCLIENTSAS=-Dcom.ibm.CORBA.ConfigURL=file:/%WAS_HOME%/properties/sas.client.props
SET SERVERSAS=-Dcom.ibm.CORBA.ConfigURL=file:/%WAS_HOME%/properties/sas.server.props
SET WAS_CLASSPATH=%WAS_HOME%\properties;%WAS_HOME%\lib\bootstrap.jar
call %ejbdeploy% ./temp/case.jar ../temp ./dist/case.jar -cp "./dist/common.jar" -novalidate -nowarn -keep
echo done case.jar
It builds the ejbjar (JAR A) but when I try to install the same, I get an error that the deployment descriptors
are incorrect.
I built the same ejbjar (JAR B) using the IBM Ant plugin for WSAD and that works just fine. On close inspection of the 2
ejbjars the foll are the differences I found.
1) JAR A contains 20 files, one for each CMP bean, with the foll. name CASE_NULLID_xxx.tblxmi, where "XXX" is the table name.
These are not present in JAR B.
2) JAR A contains files CASE_NULLID.schxmi and Table.ddl which are not present in JAR B.
3) The Schema.dbxmi in JAR A is of size 2 KB where as it is 96KB in JAR B
4) The Map.mapxmi are 81 KB and 75 KB in JAR A and B resp.
5) The manifest.mf is 1KB and 36KB in JAR A and B resp

So the IBM runANt is doing some extra processing on the descriptors which the ejbdeploy from WAS isnt? What is it? Looks like it merges the info into one file? Does that mean that I will have to use the IBM Ant plugin? Is there any way around this?
Any help on this would be greatly apprecitaed!
Thanks tiny ad, for helping me escape the terrible comfort of this chair.
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic