1) 先安装weblogic10.3.4 ,安装包:portal103.4_win32.exe
2)配置集群环境的域:
开始创建新域:
选中 weblogic portal 选项:
配置数据源:
选中管理服务器 、受管服务器:
添加本机两个受管服务:
集群消息传送模式,默认即可:
集群服务器选中:
配置计算机为本机:
计算机配置服务器:
建立三个启动文件,start_admin.bat 为启动管理服务器; start_ms1.bat 为启动受管ms1;start_ms2.bat 为启动受管ms2:
三个文件的内容:
启动报错:
百度太弱,该报错搜索不到,google 搜索,国外解决方法:
Cannot start or stop any Weblogic server
Posted on July 10, 2012
If you try to start or shut down any Weblogic server and you receive the following error:
ASSERTION FAILED: ‘fio_delete(buf)’
In unlock_repository() (src/ext/jfr/c/repository.c:67)
Assertion failed after 0 days, time_elapsed on dayofweek_month_day_year
Go to your %DOMAIN_HOME%\bin folder.
Open the setDomainEnv.cmd using a text editor (Notepad, Wordpad, etc.)
Near the bottom of the file where it says “set JAVA_OPTIONS=%JAVA_OPTIONS%”, add a space and put -XX:-FlightRecorder
The servers should start or shut down successfully now.
上面的报错终于解决,再次启动又报错,是由于数据源配置orale 中没有 sys.systables表:
批量修改jdbc文件夹下面所有文件:
再次启动成,console控制台也成功显示:
新建一个web项目,部署测试,符合期望。
部署复杂项目 又遇到错了:不能用单播模式,只能用组播模式;
组播模式 在 redhat中又报socket 错误了,解决方法:
在管理服务器,如server1,server2中找到bin/setDomainEnv.sh,在JAVA_OPTION节加入:-Djava.net.preferIPv4Stack=true。
if [ "${debugFlag}" = "true" ] ; then
JAVA_DEBUG="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=${DEBUG_PORT},server=y,suspend=n -Djava.compiler=NONE"
export JAVA_DEBUG
JAVA_OPTIONS="${JAVA_OPTIONS} ${enableHotswapFlag} -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Djava.net.preferIPv4Stack=true"
export JAVA_OPTIONS
else
JAVA_OPTIONS="${JAVA_OPTIONS} ${enableHotswapFlag} -da -Djava.net.preferIPv4Stack=true"
export JAVA_OPTIONS