WebLogic 部署安装问题(简装版)


  1. Extract the contents of the zip to a directory. This directory is now the MW_HOME (eg: /home/myhome/mywls)

  2. Setup JAVA_HOME and MW_HOME variables in the current shells


 > set JAVA_HOME=E:\tyf\weblogic\home\jdk7\jdk1.7.0_80
 > set MW_HOME=E:\tyf\weblogic\home\mywls

This version of WLS requires JDK 1.6. For Mac use 1.6.0_20 latest update. Ensure that you have the proper JDK version installed.
3. Run the installation configuration script in the MW_HOME directory (This step is required to be run only once. If you move the installation to another location/machine, you need to rerun this step)

  > configure.cmd

This step also sets the WLS environment for the current shell. So, the nextstep can be ommitted.

  1. Setup WLS environment in the current shell.


  1. Create a new WLS domain and start WLS. (It is recommended that you create the domains outside the MW_HOME)


  $ mkdir /home/myhome/mydomain
  $ cd /home/myhome/mydomain
  $ $JAVA_HOME/bin/java -Xmx1024m -XX:MaxPermSize=128m weblogic.Server


$ mkdir E:\tyf\weblogic\home\mydomain
$ cd E:\tyf\weblogic\home\mydomain
$ $JAVA_HOME/bin/java -Xmx1024m -XX:MaxPermSize=256m 


 $ mkdir C:\home\myhome\mydomain
 $ cd C:\home\myhome\mydomain
 $ %JAVA_HOME%\bin\java.exe -Xmx1024m -XX:MaxPermSize=128m -Dweblogic.management.allowPasswordEcho=true weblogic.Server

Once the domain is created, you can shutdown WLS and restart it with the scripts provided in the newly created domain.

Note: You can also create the domain by invoking the GUI configuration wizard (Run MW_HOME/wlserver/common/bin/config.[sh|cmd])

  1. If you already have an existing domain that you want to run with this installation, edit the DOMAIN_HOME/bin/setDomainEnv.sh script and change the WL_HOME to point to the new installation – ${MW_HOME}/wlserver/
    Note: If the existing domain has samples configured, the server will issue failures during startup as samples are not included in the zip distribution.

  2. Start a browser and open up url – ‘http://localhost:7001/console’ to administer the server.

  3. If you need samples, evaluation database (Derby) or console help files for for non-english locales, you can download the supplemental zip and extract it under MW_HOME. Follow instructions in README_SUPP.txt to properly setup samples.

设置.bat 启动方式


cd/d D:\mywls
set JAVA_HOME=E:\tyf\jdk\jdk1.6
set MW_HOME=D:\mywls

weblogic 问题:

在mydomain/bin/setDomainEnv.cmd 修改

if "%JAVA_VENDOR%"=="Sun" (
      set WLS_MEM_ARGS_64BIT=-Xms256m -Xmx512m
    @REM   set WLS_MEM_ARGS_32BIT=-Xms256m -Xmx512m
      set WLS_MEM_ARGS_32BIT=-Xmx2048m -Xms2048m
    ) else (
      set WLS_MEM_ARGS_64BIT=-Xms512m -Xmx512m
      set WLS_MEM_ARGS_32BIT=-Xms512m -Xmx512m
    set MEM_PERM_SIZE_32BIT=-XX:PermSize=1024m
    set MEM_MAX_PERM_SIZE_32BIT=-XX:MaxPermSize=1024m
weblogic 路径问题

1, 在项目web.xml同级目录创建weblogic.xml文件,内容如下:

<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.0/weblogic-web-app.xsd">

2, 在weblogic管理端,部署war包时,选择配置


版权声明:本文为abigBan原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。