Jenkins failed to deploy ear to websphere 6.1 using websphere deployer plugin -
i trying deploy ear file websphere. throwing below error.. can me in this...?
[echo] creating war... @ 11-19-2014 04:21pm [war] building war: f:\workspace\pec_admin\buildarchive\providereconnect.war build-ear: [echo] copy meta-inf prepare ear... [echo] creating ear... @ 11-19-2014 04:21pm [ear] building ear: f:\workspace\pec_admin\buildarchive\providereconnect.ear build successful total time: 1 minute 38 seconds connecting ibm websphere application server... error deploying ibm websphere application server: java.io.ioexception: expecting ant glob pattern, saw 'f:\workspace\pec_admin\buildarchive\providereconnect.ear'. see http://ant.apache.org/manual/types/fileset.html syntax @ hudson.filepath.glob(filepath.java:1517) @ hudson.filepath.access$700(filepath.java:168) @ hudson.filepath$26.invoke(filepath.java:1498) @ hudson.filepath$26.invoke(filepath.java:1495) @ hudson.filepath.act(filepath.java:865) @ hudson.filepath.act(filepath.java:838) @ hudson.filepath.list(filepath.java:1495) @ hudson.filepath.list(filepath.java:1480) @ hudson.filepath.list(filepath.java:1466) @ org.jenkinsci.plugins.websphere_deployer.webspheredeployerplugin.gatherartifactpaths(webspheredeployerplugin.java:234) @ org.jenkinsci.plugins.websphere_deployer.webspheredeployerplugin.perform(webspheredeployerplugin.java:167) @ hudson.tasks.buildstepmonitor$3.perform(buildstepmonitor.java:36) @ hudson.model.abstractbuild$abstractbuildexecution.perform(abstractbuild.java:820) @ hudson.model.abstractbuild$abstractbuildexecution.performallbuildsteps(abstractbuild.java:792) @ hudson.model.build$buildexecution.post2(build.java:183) @ hudson.model.abstractbuild$abstractbuildexecution.post(abstractbuild.java:739) @ hudson.model.run.execute(run.java:1592) @ hudson.model.freestylebuild.run(freestylebuild.java:46) @ hudson.model.resourcecontroller.execute(resourcecontroller.java:88) @ hudson.model.executor.run(executor.java:237) build step 'deploy ibm websphere application server' changed build result failure finished: failure
i have mentioned below how configured websphere deployer plugin.
post-build actions deploy ibm websphere application server: websphere connectivity websphere ip/dns: 192.168.15.93 connector type : soap port : 8880 websphere authentication (if required) username feature: username password client keystore file path feature: client keystore file path client keystore password feature: client keystore password client truststore file path feature: client truststore file path client truststore password feature: client truststore password test connection connection successful! websphere deployment ear path f:\workspace\pec_admin\buildarchive\providereconnect.ear target node dt-guravaiahnode01 target cell dt-guravaiahnode01cell target server appsrv01 generated ear level feature: generated ear level start application precompile jsps jsp reloading
my build.xml mentioned below.
`enter code here`<?xml version="1.0" encoding="utf-8"?>
enter code here
enter code here
<property name="archive" value="buildarchive"/> <fileset id="lib" dir="${dst}/web-inf/lib"> <include name="*.jar"/> </fileset> <fileset id="war.file" dir="/"> <include name="${portal.context}.war"/> </fileset> <fileset id="ear.file" dir="/"> <include name="${portal.context}.war"/> </fileset> <fileset id="lib.j2ee" dir="j2ee"> <include name="*.jar"/> </fileset> <target name="providereconnect.ear" depends="build-war"> <subant target="build-ear"> <fileset dir="${admin.workspace.path}" includes="build_pec.xml"/> </subant> </target> <target name="build-war" depends="clear,build"> <mkdir dir="${admin.workspace.path}/buildarchive"/> <war basedir="${dst}" warfile="${portal.context}.war" webxml="${custom}/web/web-inf/web.xml"> <!-- <war basedir="${dst}" warfile="${portal.context}.war" webxml="web/web-inf/web.xml"> --> <exclude name="**/.svn"/> <exclude name="**/*.db"/> <exclude name="**/*.pdf"/> <exclude name="css/**/*.css"/> <exclude name="jsp/intakeform/*.*"/> <exclude name="web-inf/web.xml"/> <exclude name="advantis_nch_user_guide/*.*"/> <!-- <exclude name="templates/emailtemplete.vm"/> --> <exclude name="web-inf/classes/com/igi/phr/util/customsettings.properties"/> <exclude name="images/client-logo.png"/> <fileset dir="${custom}/web"> <include name="**/*.*" /> <exclude name="**/.svn"/> <exclude name="**/*.db" /> </fileset> </war> <move todir="${admin.workspace.path}/buildarchive"> <fileset dir="/" file="${portal.context}.war"/> </move> </target> <target name="clear"> <delete dir="${admin.workspace.path}/buildarchive"/> <delete dir="${dst}/${classes}"/> <delete dir="${archive}"/> </target> <target name="build"> <mkdir dir="${dst}/${classes}"/> <javac srcdir="${src}" destdir="${dst}/${classes}" debug="on" includeantruntime="false" debuglevel="lines,vars,source"> <classpath> <fileset refid="lib"/> <fileset refid="lib.j2ee"/> </classpath> </javac> <copy todir="${dst}/${classes}"> <fileset dir="${src}"> <exclude name="**/.svn"/> <exclude name="**/*.java"/> <exclude name="**/*.db" /> <exclude name="com/igi/phr/util/customsettings.properties"/> </fileset> </copy> </target> <target name="build-ear" depends="build-war"> <delete dir="buildarchive"/> <mkdir dir="buildarchive"/> <ear basedir="${archive}" appxml="${custom}/meta-inf/application.xml" earfile="${portal.context}.ear" > <!-- <ear basedir="${archive}" appxml="meta-inf/application.xml" earfile="${portal.context}.ear" > --> <exclude name="**/.svn"/> <exclude name="**/*.db"/> <exclude name="**/*.pdf"/> <exclude name="css/**/*.css"/> <exclude name="jsp/intakeform/*.*"/> <exclude name="web-inf/web.xml"/> <exclude name="advantis_nch_user_guide/*.*"/> <!-- <exclude name="templates/emailtemplete.vm"/> --> <exclude name="web-inf/classes/com/igi/phr/util/customsettings.properties"/> <exclude name="images/client-logo.png"/> <fileset dir="${custom}/web"> <include name="**/*.*" /> <exclude name="**/.svn"/> <exclude name="**/*.db" /> </fileset> </ear> <move todir="${archive}"> <fileset dir="/" file="${portal.context}.ear"/> </move> </target> <target name="quickdeploy-ibm" depends="build"> <delete dir="${ibm.server.temp.dir}\${admin.context}"/> <copy todir="${ibm.server.install.dir}\${admin.context}.ear\${portal.context}.war" verbose="true"> <fileset dir="${dst}"> <exclude name="**/.svn"/> <exclude name="**/*.db"/> <exclude name="**/*.pdf"/> <exclude name="css/**/*.css"/> <exclude name="jsp/intakeform/*.*"/> <exclude name="web-inf/web.xml"/> <exclude name="advantis_nch_user_guide/*.*"/> <!-- <exclude name="templates/emailtemplete.vm"/> --> <exclude name="web-inf/classes/com/igi/phr/util/customsettings.properties"/> <!-- <exclude name="web-inf/classes/com/igi/phr/util/applicationsettings.properties"/> --> <exclude name="web-inf/applicationcontext.xml"/> <exclude name="images/client-logo.png"/> </fileset> <fileset dir="${custom}/web"> <include name="**/*.*" /> <exclude name="**/.svn"/> <exclude name="**/*.db" /> </fileset> </copy> </target>
Comments
Post a Comment