当前位置:   article > 正文

WebLogic 10.3.6.0 部署安装问题(简装版)_weblogic server 10.3.6.0.0

weblogic server 10.3.6.0.0

安装步骤:


  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

    Windows

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

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)
Windows:

  > configure.cmd
  • 1

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.

    Windows:

  %MW_HOME%\wlserver\server\bin\setWLSEnv.cmd
  • 1
  1. Create a new WLS domain and start WLS. (It is recommended that you create the domains outside the MW_HOME)

    Linux

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

Mac

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

Windows:

 $ 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
  • 1
  • 2
  • 3

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 启动方式

weblogic.bat

cd/d D:\mywls
set JAVA_HOME=E:\tyf\jdk\jdk1.6
set MW_HOME=D:\mywls
..\mydomain\startWebLogic.cmd
  • 1
  • 2
  • 3
  • 4

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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
weblogic 路径问题
    在weblogic部署war包项目出现路径获取不到问题,
  • 1
  • 2

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">
  <jsp-descriptor>
    <keepgenerated>true</keepgenerated>
    <debug>true</debug>
  </jsp-descriptor>
  <context-root>/myapp1</context-root>
  <container-descriptor>
    <show-archived-real-path-enabled>true</show-archived-real-path-enabled>
  </container-descriptor>
</weblogic-web-app>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11

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

mydomain——web应用程序——启用实际归档路径
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/空白诗007/article/detail/921897
推荐阅读
相关标签
  

闽ICP备14008679号