ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r abiram <abir...@yahoo.com>
Subject Websphere Server Deploy with ANT
Date Sat, 31 Aug 2002 05:48:54 GMT
Hi, 

Websphere4.0 with ANT 1.5beta1

Iam getting the following error when I do the deploy
of my EJB Bean my portion of the build file is as
below If any one rectified the problem please let me
know the  solution 
my build file for deploy is 
+++++My Global Properties
<property name="buildDir" value="classes"/>
<property name="srcDir" value="src"/>
<property name="descriptordir" value="dd"/>
<property name="tempdir" value="tmp"/>
<property name="was.home" 
value="D:/WebSphere/AppServer"/>
+++++++++ Global Properties

+++++++++++++++the deploy task
<target name="Deploy" depends="EJBjar" description="To
deploy in WAS">
<echo>Deploying EJB JAR</echo>
<exec executable="${was.home}/bin/ejbdeploy.bat">
<arg value="${srcDir}/Hello.jar"/>
<arg value="${srcDir}"/>
<arg value="${tempdir}/Hello.jar"/>
<arg value="-quiet"/>
++++++++++++++

The Error Iam getting is 

*************************************

ant -buildfile EJBDeploy.xml
Buildfile: EJBDeploy.xml

compile:

EJBjar:

Deploy:
     [echo] Deploying EJB JAR
     [exec] [*Error] An unexpected exception was
thrown.  Halting execution.

     [exec] Error importing jar: Error importing
Module File.
     [exec]
>com.ibm.etools.ejbdeploy.EJBDeploymentException
(Error importing ja
r: Error importing Module File.)
     [exec]
com.ibm.etools.wft.util.WFTWrappedException: Error
importing Module
File
     [exec] IWAJ0215E Stack trace of nested exception:
     [exec]
com.ibm.etools.archive.exception.DeploymentDescriptorLoadException:
META-INF/ejb-jar.xml
     [exec] IWAJ0060E Stack trace of nested exception:
     [exec]
com.ibm.etools.archive.exception.ResourceLoadException:
IWAJ0018E Co
uld not load resource "META-INF/ejb-jar.xml" in
archive "Hello.jar"
     [exec] IWAJ0060E Stack trace of nested exception:
     [exec]
com.ibm.etools.archive.exception.ArchiveRuntimeException:
IWAJ0240E
An Exception occurred while parsing xml: Line #: 3
:Column #: 22
     [exec] IWAJ0060E Stack trace of nested exception:
     [exec] org.xml.sax.SAXParseException: Element
type "websphere-sa-config" mu
st be declared.
     [exec]     at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.j
ava:1016)
     [exec]     at
org.apache.xerces.validators.common.XMLValidator.reportRecove
rableXMLError(XMLValidator.java:1258)
     [exec]     at
org.apache.xerces.validators.common.XMLValidator.validateElem
entAndAttributes(XMLValidator.java:2749)
     [exec]     at
org.apache.xerces.validators.common.XMLValidator.callStartEle
ment(XMLValidator.java:835)
     [exec]     at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatc
her.dispatch(XMLDocumentScanner.java:989)
     [exec]     at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLD
ocumentScanner.java:380)
     [exec]     at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:90
8)
     [exec]     at
java.lang.reflect.Method.invoke(Native Method)
     [exec]     at
com.ibm.etools.j2ee.xml.bridge.GeneralXmlDocumentReader.invok
eMethod(GeneralXmlDocumentReader.java:229)
     [exec]     at
com.ibm.etools.j2ee.xml.bridge.GeneralXmlDocumentReader.parse
(GeneralXmlDocumentReader.java:241)
     [exec]     at
com.ibm.etools.j2ee.xml.bridge.GeneralXmlDocumentReader.parse
Document(GeneralXmlDocumentReader.java:251)
     [exec]     at
com.ibm.etools.j2ee.xml.DeploymentDescriptorImportExport.prim
ImportFrom(DeploymentDescriptorImportExport.java:239)
     [exec]     at
com.ibm.etools.j2ee.xml.DeploymentDescriptorImportExport.prim
ImportFrom(DeploymentDescriptorImportExport.java:228)
     [exec]     at
com.ibm.etools.j2ee.xml.EjbJarDeploymentDescriptorImportExpor
t.importFrom(EjbJarDeploymentDescriptorImportExport.java:45)
     [exec]     at
com.ibm.etools.ejb.impl.EJBJarResourceFactory.importXML(EJBJa
rResourceFactory.java:27)
     [exec]     at
com.ibm.etools.j2ee.common.impl.XMLResourceFactory.load(XMLRe
sourceFactory.java:62)
     [exec]     at
com.ibm.etools.j2ee.common.impl.XMLResourceFactory.load(XMLRe
sourceFactory.java:78)
     [exec]     at
com.ibm.etools.emf.resource.impl.ResourceFactoryImpl.load(Res
ourceFactoryImpl.java:79)
     [exec]     at
com.ibm.etools.emf.resource.impl.ResourceSetImpl.load(Resourc
eSetImpl.java:225)
     [exec]     at
com.ibm.etools.wft.workbench.util.WorkbenchResourceSet.load(W
orkbenchResourceSet.java:239)
     [exec]     at
com.ibm.etools.archive.impl.LoadStrategyImpl.getMofResource(L
oadStrategyImpl.java:136)
     [exec]     at
com.ibm.etools.commonarchive.impl.ArchiveImpl.getMofResource(
ArchiveImpl.java:407)
     [exec]     at
com.ibm.etools.commonarchive.impl.ModuleFileImpl.getDeploymen
tDescriptorResource(ModuleFileImpl.java:126)
     [exec]     at
com.ibm.etools.archive.impl.XmlBasedImportStrategyImpl.primLo
adDeploymentDescriptor(XmlBasedImportStrategyImpl.java:28)
     [exec]     at
com.ibm.etools.archive.impl.EjbJar11ImportStrategyImpl.loadDe
ploymentDescriptor(EjbJar11ImportStrategyImpl.java:64)
     [exec]     at
com.ibm.etools.archive.impl.EjbJar11ImportStrategyImpl.import
MetaData(EjbJar11ImportStrategyImpl.java:59)
     [exec]     at
com.ibm.etools.commonarchive.impl.EJBJarFileImpl.getDeploymen
tDescriptor(EJBJarFileImpl.java:168)
     [exec]     at
com.ibm.etools.commonarchive.impl.EJBJarFileImpl.reflectFinde
rDescriptorsIfNecessary(EJBJarFileImpl.java:253)
     [exec]     at
com.ibm.etools.archive.ejb.operations.EJBJarImportOperation.r
eflectFinderHelperMetaDataIfPossible(EJBJarImportOperation.java:194)
     [exec]     at
com.ibm.etools.archive.ejb.operations.EJBJarImportOperation.s
ave(EJBJarImportOperation.java:230)
     [exec]     at
com.ibm.etools.archive.j2ee.operations.J2EEImportOperation.im
portModuleFile(J2EEImportOperation.java:188)
     [exec]     at
com.ibm.etools.archive.j2ee.operations.J2EEImportOperation.ex
ecute(J2EEImportOperation.java:117)
     [exec]     at
com.ibm.etools.archive.ejb.operations.EJBJarImportOperation.e
xecute(EJBJarImportOperation.java:82)
     [exec]     at
com.ibm.etools.j2ee.operations.HeadlessJ2EEOperation$1.run(He
adlessJ2EEOperation.java:56)
     [exec]     at
org.eclipse.core.internal.resources.Workspace.run(Workspace.j
ava:1194)
     [exec]     at
com.ibm.etools.j2ee.operations.HeadlessJ2EEOperation.run(Head
lessJ2EEOperation.java:70)
     [exec]     at
com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.importJa
r(BatchExtension.java:624)
     [exec]     at
com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension.run(Batc
hExtension.java:813)
     [exec]     at
com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.execute(Batch
Deploy.java:122)
     [exec]     at
com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:60)

     [exec]     at
com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:207)
     [echo]  EJB Deployed

BUILD SUCCESSFUL

*************************************

Looking for the Reply

R.Abiram

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message