Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help needed in ant ejbjar task

 
dnanirs payhsak
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing the ant task for running ejbc on some entity beans and facing errors. Is there a
sample script anyone has written for running ejbc
(a ejbjar task) for container managed persistent entity beans. Thanks a lot in advance.
Dnanirs.
 
Bhushan Ramning
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
heres the sample script...
@echo off
set TEMP_CLP=%CLASSPATH%
REM TELL ME HOW TO SET UP !
set ENV=d:\WebLogicCommerceServer3.11\bin\win32\set-environment.bat
IF not EXIST "%ENV%" goto endwithe
CALL %ENV%
set VMP=-Dweblogic.home=%WEBLOGIC_HOME% -Dweblogic.system.home=%WEBLOGIC_HOME%
SET WEBLOGIC_CLASSPATH=%WEBLOGIC_CLASSPATH%;%WEBLOGIC_HOME%\lib\persistence\TOPLink_CMP.jar
ECHO ON
%JDK_HOME%\bin\java -classpath %WEBLOGIC_CLASSPATH% %VMP% weblogic.ejbc myjarfile.jar PackingList.jar
set CLASSPATH=%TEMP_CLP%
goto end
:endwithe
echo #########################################################################
echo # HAD ERRORS IS YOUR SET-ENV CONFIGURED? Could not find:
echo # %ENV%
echo #########################################################################

:end
i am using set-env.bat file for path setting & required jar fiels are in classpath....make sure when u run ejbc, all required jar files are in classpath.
bhushan
 
dnanirs payhsak
Ranch Hand
Posts: 31
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the response. Is there a sample <ejbjar> or any other task you have, I just want to see what options to use..
Thanks,

Originally posted by Bhushan Ramning:
heres the sample script...
@echo off
set TEMP_CLP=%CLASSPATH%
REM TELL ME HOW TO SET UP !
set ENV=d:\WebLogicCommerceServer3.11\bin\win32\set-environment.bat
IF not EXIST "%ENV%" goto endwithe
CALL %ENV%
set VMP=-Dweblogic.home=%WEBLOGIC_HOME% -Dweblogic.system.home=%WEBLOGIC_HOME%
SET WEBLOGIC_CLASSPATH=%WEBLOGIC_CLASSPATH%;%WEBLOGIC_HOME%\lib\persistence\TOPLink_CMP.jar
ECHO ON
%JDK_HOME%\bin\java -classpath %WEBLOGIC_CLASSPATH% %VMP% weblogic.ejbc myjarfile.jar PackingList.jar
set CLASSPATH=%TEMP_CLP%
goto end
:endwithe
echo #########################################################################
echo # HAD ERRORS IS YOUR SET-ENV CONFIGURED? Could not find:
echo # %ENV%
echo #########################################################################

:end
i am using set-env.bat file for path setting & required jar fiels are in classpath....make sure when u run ejbc, all required jar files are in classpath.
bhushan
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic