Build script for deploying Webcenter Portal app

812 views
Skip to first unread message

abhishek...@accenture.com

unread,
May 4, 2012, 3:58:55 AM5/4/12
to webcen...@googlegroups.com

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

 



Subject to local law, communications with Accenture and its affiliates including telephone calls and emails (including content), may be monitored by our systems for the purposes of security and the assessment of internal compliance with Accenture policy.
______________________________________________________________________________________

www.accenture.com

Nelson Maia

unread,
May 4, 2012, 8:06:44 AM5/4/12
to webcen...@googlegroups.com, <webcenter-emg@googlegroups.com>
Hi, abhishek

I can help only in second question. The MAR is  used to placê metadata, this means the folders from Oracle/Webcenter/portalapp. If you don't use MAR your custom app wont be the latest version of the metadata repository.

I'll apreciate if you sharw your script with us.

[]'s

Nelson Maia
--
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).

abhishek...@accenture.com

unread,
May 7, 2012, 9:08:11 AM5/7/12
to webcen...@googlegroups.com

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

 

Bijesh Krishnadas

unread,
May 4, 2012, 9:55:34 PM5/4/12
to webcen...@googlegroups.com
Hello Abhishek,

It is not clear from your email if you are using ojdeploy to build the
ear or if you are doing it via regular ant tasks. I have always found
it easier to use ojdeploy because this would mean all the dependent
config files are correctly created.

Anyway, the error you get seems to point to a missing application
descriptor - either the application.xml or weblogic-application.xml.
These are in the META-INF folder in the ear. Check if your ear
contains these descriptors and if they are correctly generated.

HTH,
Bijesh
Reply all
Reply to author
Forward
0 new messages