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

Using ejbdeploy for CMPs : Deployment Descriptor Problem!!

 
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 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 JAVA_HOME=%WAS_HOME%/java
set ejbdeploy=%WAS_HOME_WIN%\bin\ejbdeploy.bat
:
SET COMPUTERNAME=LOCALHOST
SET DBDRIVER_JARS=
SET DBDRIVER_PATH=
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_EXT_DIRS=%JAVA_HOME%\lib;%WAS_HOME%\classes;%WAS_HOME%\lib;%WAS_HOME%\lib\ext;%WAS_HOME%\web\help;%DBDRIVER_JARS%
SET WAS_CLASSPATH=%WAS_HOME%\properties;%WAS_HOME%\lib\bootstrap.jar
SET QUALIFYNAMES=
:
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!
Thanx
Pinak
 
Thanks tiny ad, for helping me escape the terrible comfort of this chair.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic