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.
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
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