赞
踩
Extract the contents of the zip to a directory. This directory is now the MW_HOME (eg: /home/myhome/mywls)
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
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
This step also sets the WLS environment for the current shell. So, the nextstep can be ommitted.
Setup WLS environment in the current shell.
Windows:
%MW_HOME%\wlserver\server\bin\setWLSEnv.cmd
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
Mac
$ mkdir E:\tyf\weblogic\home\mydomain
$ cd E:\tyf\weblogic\home\mydomain
$ $JAVA_HOME/bin/java -Xmx1024m -XX:MaxPermSize=256m
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
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])
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.
Start a browser and open up url - ‘http://localhost:7001/console’ to administer the server.
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.
weblogic.bat
cd/d D:\mywls
set JAVA_HOME=E:\tyf\jdk\jdk1.6
set MW_HOME=D:\mywls
..\mydomain\startWebLogic.cmd
内存溢出错误修改
在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 路径问题
在weblogic部署war包项目出现路径获取不到问题,
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>
2, 在weblogic管理端,部署war包时,选择配置
mydomain——web应用程序——启用实际归档路径
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。