• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

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>
 
reply
    Bookmark Topic Watch Topic
  • New Topic