Hi,
I’m trying to come-up with ant build script for deploying Webcenter Portal application on weblogic Server.
I have the below queries.
1) Is there any documentation from oracle or any pointers to guide the steps of deployment.
2) Is it mandatory to create the MAR ?
3) My current ANT script will clean, compile, package and deploy the Portal app. I have used wldeploy for deployment.
But I am getting below error. Any idea?
[wldeploy] weblogic.application.descriptor.MissingRootElementException: [Munger:2156204]The root element application is missing in the descriptor file
Thanks and Regards,
Abhishek
--
You received this message because you are subscribed to the WebCenter Enterprise Methodology Group (http://groups.google.com/group/webcenter-emg). To unsubscribe send email to webcenter-em...@googlegroups.com
All content to the WebCenter EMG lies under the Creative Commons Attribution 3.0 Unported License (http://creativecommons.org/licenses/by/3.0/). Any content sourced must be attributed back to the WebCenter EMG with a link to the Google Group (http://groups.google.com/group/webcenter-emg).
Hi,
Thanks for the reply Nelson.
The compile script I have generated using the ant plugin provided in the JDeveloper.
Packaging script is as below. Note the below script is not packaging the MAR. So I need something to get the MAR also packaged in my EAR.
<target name="dist" depends="compile"
description="Create WAR file for binary distribution">
<jar destfile="${dist.home}/${app.name}-${app.version}.war"
basedir="${work.home}"/>
<ear destfile="${output.dir}/deployEar/myapp.ear"
appxml="../src/META-INF/weblogic-application.xml">
<fileset dir="${dist.home}" includes="*.jar,*.war"/>
</ear>
</target>
Deploy script is as below.
<taskdef name="wldeploy"
classname="weblogic.ant.taskdefs.management.WLDeploy"
classpath="${oracle.wldeploy}"/>
<target name="deploy">
<wldeploy action="deploy" verbose="true" debug="true" name="application1"
source="${output.dir}/deployEar/application1.ear" user="username" password="password"
adminurl="hostname:port" targets="DefaultServer"/>
</target>
While executing the above deploy script I’m getting below error. I think the script should also create the MDS partition. So if someone can guide how to create the MDS partition using ant script will be helpful?
weblogic.application.ModuleException: :oracle.mds.config.MDSConfigurationException:MDS-01335: namespace "/oracle/webcenter/search/scopedMD" mapped to me
tadata-store-usage "WebCenterFileMetadataStore" but its definition was not found in MDS configuration.
Thanks and Regards,
Abhishek Aggarwal