Advertisement

09.22.2007 at 10:40PM PDT, ID: 22846714
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Configuring Weblogic 8.1 in Eclipse - setting up environment variables

Tags: weblogic, eclipse, environment, setting
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\commEnv.cmd"

@REM Set SERVER_NAME to the name of the server you wish to start up.

set SERVER_NAME=myserver

set CLASSPATH=%WEBLOGIC_CLASSPATH%;%POINTBASE_CLASSPATH%;%JAVA_HOME%\jre\lib\rt.jar;%WL_HOME%\server\lib\webservices.jar;%CLASSPATH%

set CONFIG_VAR=cactisconfigfile=C:\sitacus\sitacus_config.xml
set CONFIG_SERV_VAR=configserviceimpl=com.gj.nagp.sitacus.services.config.impl.sitacusConfigServiceImpl

@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_NAME% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy="%WL_HOME%\server\lib\weblogic.policy" -Dcactisconfigfile="C:\cactis\cactis_config.xml" -Dconfigserviceimpl="com.bp.nagp.cactis.services.config.impl.CactisConfigServiceImpl" 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_HOME%\lib\tools.jar;%WL_HOME%\server\lib\weblogic_sp.jar;%WL_HOME%\server\lib\weblogic.jar;%WL_HOME%\server\lib\ojdbc14.jar

@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;%PATH%;%WL_HOME%\server\bin\oci920_8

if "%WL_USE_64BITDLL%" == "true" set PATH=%WL_HOME%\server\bin\win64;%WL_HOME%\server\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;%PATH%;%WL_HOME%\server\bin\win64\oci920_8

@rem set up Point Base configuration
set POINTBASE_HOME=%WL_HOME%\common\eval\pointbase
set POINTBASE_CLASSPATH=%POINTBASE_HOME%\lib\pbserver44.jar;%POINTBASE_HOME%\lib\pbclient44.jar
set POINTBASE_TOOLS=%POINTBASE_HOME%\lib\pbtools44.jar

IF NOT "%POINTBASE_PRE_CLASSPATH%"=="" (
  set POINTBASE_CLASSPATH=%POINTBASE_PRE_CLASSPATH%;%POINTBASE_CLASSPATH%
)
IF NOT "%POINTBASE_POST_CLASSPATH%"=="" (
  set POINTBASE_CLASSPATH=%POINTBASE_CLASSPATH%;%POINTBASE_POST_CLASSPATH%
)
****************************************************************************


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 your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: ge0rgej0seph
Solution Provided By: brunoguimaraes
Participating Experts: 3
Solution Grade: A
Views: 280
Translate:
Loading Advertisement...
09.24.2007 at 04:57AM PDT, ID: 19947666

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
10.04.2007 at 08:20AM PDT, ID: 20014900

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
12.05.2007 at 11:08AM PST, ID: 20413990

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_1_20070628