Hello
I wish to configure my eclipse to run weblogic, for debugging.
I have been successful in getting the weblogic to start from command prompt.
However since the startWeblogic.cmd file calls another cmd file for setting up variables, sets path variables,
classpath etc.i am unsure of how to go about with this in Eclipse. I have installed the weblogic plugin -com.bea.weblogic.eclipse-
2.0.0.zip
eg: my startWeblogic.cmd looks like this
set WL_HOME=C:\bea\weblogic81
for %%i in ("%WL_HOME%") do set WL_HOME=%%~fsi
set PRODUCTION_MODE=
set JAVA_VENDOR=Sun
set JAVA_HOME=C:\j2sdk1.4.2_15
for %%i in ("%JAVA_HOME%") do set JAVA_HOME=%%~fsi
@REM Call commEnv here AFTER setting the java_vendor to get common environmental settings.
call "%WL_HOME%\common\bin\comm
Env.cmd"
@REM Set SERVER_NAME to the name of the server you wish to start up.
set SERVER_NAME=myserver
set CLASSPATH=%WEBLOGIC_CLASSP
ATH%;%POIN
TBASE_CLAS
SPATH%;%JA
VA_HOME%\j
re\lib\rt.
jar;%WL_HO
ME%\server
\lib\webse
rvices.jar
;%CLASSPAT
H%
set CONFIG_VAR=cactisconfigfil
e=C:\sitac
us\sitacus
_config.xm
l
set CONFIG_SERV_VAR=configserv
iceimpl=co
m.gj.nagp.
sitacus.se
rvices.con
fig.impl.s
itacusConf
igServiceI
mpl
@REM Call WebLogic Server
echo .
echo CLASSPATH=%CLASSPATH%
echo .
echo PATH=%PATH%
echo .
echo **************************
**********
**********
*****
echo * To start WebLogic Server, use a username and *
echo * password assigned to an admin-level user. For *
echo * server administration, use the WebLogic Server *
echo * console at
http:\\[hostname]:[port]\console *
echo **************************
**********
**********
*****
%JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS% -Dweblogic.Name=%SERVER_NA
ME% -Dweblogic.ProductionModeE
nabled=%PR
ODUCTION_M
ODE% -Djava.security.policy="%W
L_HOME%\se
rver\lib\w
eblogic.po
licy" -Dcactisconfigfile="C:\cac
tis\cactis
_config.xm
l" -Dconfigserviceimpl="com.b
p.nagp.cac
tis.servic
es.config.
impl.Cacti
sConfigSer
viceImpl" weblogic.Server
ENDLOCAL
**************************
**********
My comenv.cmd looks like this
@rem **************************
**********
**********
**********
**********
*******
@rem This script is used to initialize common environment to start WebLogic
@rem Server, as well as WebLogic development.
@rem
@rem It sets the following variables:
@rem
@rem BEA_HOME - The home directory of all your BEA installation.
@rem WL_HOME - The root directory of your WebLogic installation.
@rem JAVA_HOME - Location of the version of Java used to start WebLogic
@rem Server. See the WebLogic platform support page
@rem (
http:\\e-docs.bea.com\wls\platforms\index.html) for an
@rem up-to-date list of supported JVMs on your platform.
@rem JAVA_VENDOR
@rem - Vendor of the JVM (i.e. BEA, HP, IBM, Sun, etc.)
@rem PATH - JDK and WebLogic directories are added to the system path.
@rem WEBLOGIC_CLASSPATH
@rem - Classpath required to start WebLogic server.
@rem JAVA_VM - The java arg specifying the JVM to run. (i.e.
@rem -server, -hotspot, -jrocket etc.)
@rem MEM_ARGS - The variable to override the standard memory arguments
@rem passed to java
@rem
@rem POINTBASE_HOME
@rem - PointBase home directory.
@rem POINTBASE_CLASSPATH
@rem - Classpath needed to start PointBase.
@rem POINTBASE_TOOLS
@rem - PointBase tools jar file.
@rem PRODUCTION_MODE
@rem - Indicates if WebLogic Server will be started in Production
@rem mode.
@rem WL_USE_64BITDLL
@rem - To use 64bit WebLogic jni native libriaries (with a 64bit
@rem JVM)
@rem
@rem **************************
**********
**********
**********
**********
*******
@rem Set BEA Home
set BEA_HOME=C:\bea
FOR %%i IN ("%BEA_HOME%") DO SET BEA_HOME=%%~fsi
@rem Set WebLogic Home
set WL_HOME=C:\bea\weblogic81
FOR %%i IN ("%WL_HOME%") DO SET WL_HOME=%%~fsi
@rem If we are going to use 64bit WebLogic dlls
set WL_USE_64BITDLL=false
@rem Reset JAVA_HOME, JAVA_VENDOR and PRODUCTION_MODE unless JAVA_HOME and
@rem JAVA_VENDOR are defined already.
if DEFINED JAVA_HOME if DEFINED JAVA_VENDOR goto noReset
@rem Reset JAVA Home
set JAVA_HOME=C:\bea\jdk141_03
FOR %%i IN ("%JAVA_HOME%") DO SET JAVA_HOME=%%~fsi
@rem JAVA VENDOR, possible values are:
@rem BEA, HP, IBM, Sun, etc.
set JAVA_VENDOR=Sun
@rem PRODUCTION_MODE, default to the development mode
set PRODUCTION_MODE=
:noReset
@rem set up JVM options
if "%JAVA_VENDOR%" == "BEA" goto bea
if "%JAVA_VENDOR%" == "Sun" goto sun
goto continue
:bea
if "%PRODUCTION_MODE%" == "true" goto bea_prod_mode
set JAVA_VM=-jrockit
set MEM_ARGS=-Xms128m -Xmx256m
set JAVA_OPTIONS=%JAVA_OPTIONS
% -Xverify:none
goto continue
:bea_prod_mode
set JAVA_VM=-jrockit
set MEM_ARGS=-Xms128m -Xmx256m
goto continue
:sun
if "%PRODUCTION_MODE%" == "true" goto sun_prod_mode
set JAVA_VM=-client
set MEM_ARGS=-Xms32m -Xmx200m -XX:MaxPermSize=128m
set JAVA_OPTIONS=%JAVA_OPTIONS
% -Xverify:none
goto continue
:sun_prod_mode
set JAVA_VM=-server
set MEM_ARGS=-Xms32m -Xmx200m -XX:MaxPermSize=128m
goto continue
:continue
@rem set up WebLogic Server's class path
set WEBLOGIC_CLASSPATH=%JAVA_H
OME%\lib\t
ools.jar;%
WL_HOME%\s
erver\lib\
weblogic_s
p.jar;%WL_
HOME%\serv
er\lib\web
logic.jar;
%WL_HOME%\
server\lib
\ojdbc14.j
ar
@rem add jvm and WebLogic directory in path
if not "%WL_USE_64BITDLL%" == "true" set PATH=%WL_HOME%\server\bin;
%JAVA_HOME
%\jre\bin;
%JAVA_HOME
%\bin;%PAT
H%;%WL_HOM
E%\server\
bin\oci920
_8
if "%WL_USE_64BITDLL%" == "true" set PATH=%WL_HOME%\server\bin\
win64;%WL_
HOME%\serv
er\bin;%JA
VA_HOME%\j
re\bin;%JA
VA_HOME%\b
in;%PATH%;
%WL_HOME%\
server\bin
\win64\oci
920_8
@rem set up Point Base configuration
set POINTBASE_HOME=%WL_HOME%\c
ommon\eval
\pointbase
set POINTBASE_CLASSPATH=%POINT
BASE_HOME%
\lib\pbser
ver44.jar;
%POINTBASE
_HOME%\lib
\pbclient4
4.jar
set POINTBASE_TOOLS=%POINTBASE
_HOME%\lib
\pbtools44
.jar
IF NOT "%POINTBASE_PRE_CLASSPATH%
"=="" (
set POINTBASE_CLASSPATH=%POINT
BASE_PRE_C
LASSPATH%;
%POINTBASE
_CLASSPATH
%
)
IF NOT "%POINTBASE_POST_CLASSPATH
%"=="" (
set POINTBASE_CLASSPATH=%POINT
BASE_CLASS
PATH%;%POI
NTBASE_POS
T_CLASSPAT
H%
)
**************************
**********
**********
**********
**********
**********
Can anyone please help?
I am using
Eclipse version 3.3
Weblogic 8.1
Eclipse plugin com.bea.weblogic.eclipse-2
.0.0.zip
Start Free Trial