Forums Register Login

EJB deployment in weblogic 10.2

+Pie Number of slices to send: Send
Hi,
any body using Weblogic 10.2. I am having problem with appc task in ant script?can any body give me the ant script for weblogic.appc?

Thanks in advance,
Babu
+Pie Number of slices to send: Send
here is the sample code. i am having problem with EJBC task. EJBC task is posted here. I am using weblogic 10.2

<target name="jar_ejb" depends="compile , createtempdir">
<!-- copy Bean, common, framework classes i.e except web classes . -->
<copy todir="${jar.dir}">
<fileset dir="${build.dir}"> </fileset>
</copy>

<delete dir="${jar.dir}/com/alpha/web"/>

<!-- copy Enterprise Beans deployment descriptors. -->
<copy todir="${jar.dir}/META-INF">
<fileset dir="src/java"> <!--see where xml deployment descriptors are kept -->
<include name="*.xml"/>
<exclude name="build.xml"/>
</fileset>
</copy>

<jar jarfile="${ear.dir}/std_ejb.jar" basedir="${jar.dir}" >
</jar>
</target>

<target name="web_war" depends="compile , createtempdir">

<!-- copy Bean, common, framework classes i.e except web classes . -->
<copy todir="${war.dir}">
<fileset dir="src/webApp"> </fileset>
</copy>

<copy todir="${war.dir}/WEB-INF/classes">
<fileset dir="${build.dir}"> </fileset>
</copy>
<!-- copy necessary third party jars into /WEB-INF/lib folder-->
<copy todir="${war.dir}/WEB-INF/lib">
<fileset dir="${thirdpartyjars.dir}"> <!--see where xml deployment descriptors are kept -->
<include name="*.jar"/>
<exclude name="*weblogic*.jar"/>
</fileset>
</copy>
<delete dir="${war.dir}/WEB-INF/classes/com/alpha/app"/>

<jar jarfile="${ear.dir}/alphaweb.war" basedir="${war.dir}">
</jar>

</target>

<!-- Run ejbc to create the deployable jar file -->

<target name="ejbc" depends="jar_ejb">
<!--
<java classname="weblogic.ejbc" fork="yes" failonerror="true" >
-->
<java classname="weblogic.appc">

<sysproperty key="weblogic.home" value="${WL_HOME}"/>

<arg line="-compiler javac ${ear.dir}/std_ejb.jar ${ear.dir}/alphaejb.jar"/>

<classpath refid="alpha.classpath"/>
</java>

</target>
I've been selected to go to the moon! All thanks to this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1900 times.
Similar Threads
JAXM Servlet in Weblogic 10.2
migration from weblogic workshop 8.1 to 10.2
Ant script to shutdown weblogic8.1 server
Ant script for creating JMS modules and queues in weblogic 10.3
WLST command to set MaxThreadsConstraint for existing work manager
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:11:34.