• 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

Help needed in ant ejbjar task

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Can you shoot lasers out of your eyes? Don't look at this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic