aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes EJB deployment in weblogic 10.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB deployment in weblogic 10.2" Watch "EJB deployment in weblogic 10.2" New topic
Author

EJB deployment in weblogic 10.2

Babu kalagara
Greenhorn

Joined: Jul 28, 2006
Posts: 13
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

Joined: Jul 28, 2006
Posts: 13
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB deployment in weblogic 10.2
 
Similar Threads
Ant script for creating JMS modules and queues in weblogic 10.3
JAXM Servlet in Weblogic 10.2
migration from weblogic workshop 8.1 to 10.2
Ant script to shutdown weblogic8.1 server
WLST command to set MaxThreadsConstraint for existing work manager