• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

EJB deployment in weblogic 10.2

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Babu kalagara
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
Space seems cool in the movies, but once you get out there, it is super boring. Now for a fascinating tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic