X86_64版Linux上安装64位Weblogic 10.3.5(5)_Tomcat, WebLogic及J2EE讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  Tomcat, WebLogic及J2EE讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 3951 | 回复: 0   主题: X86_64版Linux上安装64位Weblogic 10.3.5(5)        上一篇   下一篇 
yangshuang
注册用户
等级:下士
经验:169
发帖:16
精华:0
注册:2012-4-9
状态:离线
发送短消息息给yangshuang 加好友    发送短消息息给yangshuang 发消息
发表于: IP:您无权察看 2015-1-6 16:32:01 | [全部帖] [楼主帖] 楼主

1.   启动Weblogic

域创建完成后会在Middleware路径下生成一个user_projects子路径。也就是我们刚才创建域时指定的路径< xmlnamespace prefix ="o" ns ="urn:schemas-microsoft-com:office:office" />

/home/pboss23/Oracle/Middleware/user_projects/domains/


在这下面有个pboss23的域。

进入/home/pboss23/Oracle/Middleware/user_projects/domains/pboss23路径。

$cd /home/pboss23/Oracle/Middleware/user_projects/domains/pboss23
[/home/pboss23/Oracle/Middleware/user_projects/domains/pboss23]$ls
autodeploy  bin  config  console-ext  fileRealm.properties  init-info  lib  security  startWebLogic.sh


运行startWebLogic.sh脚本。

[/home/pboss23/Oracle/Middleware/user_projects/domains/pboss23]$startWebLogic.sh
The JRE was not found in directory /usr/lib/jvm/java-< xmlnamespace prefix ="st1" ns ="urn:schemas-microsoft-com:office:smarttags" />1.6.0-sun-1.6.0.15.x86_64. (JAVA_HOME)
Please edit your environment and set the JAVA_HOME
variable to point to the root directory of your Java installation.


又报JAVA_HOME的错。如前面4.1节的方法来修改脚本。

[/home/pboss23/Oracle/Middleware/user_projects/domains/pboss23]$vi startWebLogic.sh
#!/bin/sh
# WARNING: This file is created by the Configuration Wizard.
# Any changes to this script may be lost when adding extensions to this configuration.
DOMAIN_HOME="/home/pboss23/Oracle/Middleware/user_projects/domains/pboss23"
${DOMAIN_HOME}/bin/startWebLogic.sh $*


看出这个脚本调用的是

/home/pboss23/Oracle/Middleware/user_projects/domains/pboss23/bin/startWebLogic.sh


再打开/home/pboss23/Oracle/Middleware/user_projects/domains/pboss23/bin/startWebLogic.sh

定位到83左右

# Call setDomainEnv here.
DOMAIN_HOME="/home/pboss23/Oracle/Middleware/user_projects/domains/pboss23"
. ${DOMAIN_HOME}/bin/setDomainEnv.sh $*
SAVE_JAVA_OPTIONS="${JAVA_OPTIONS}"
SAVE_CLASSPATH="${CLASSPATH}"


脚本调用是外部的setDomainEnv.sh脚本。打开bin下的startWeblogic.sh同路径下的setDomainEnv.sh脚本

定位到74行左右,内容如下:

WL_HOME="/home/pboss23/Oracle/Middleware/wlserver_10.3"
export WL_HOME
BEA_JAVA_HOME=""
export BEA_JAVA_HOME
SUN_JAVA_HOME="/usr/lib/jvm/java-1.6.0-sun-1.6.0.15.x86_64/jre"
export SUN_JAVA_HOME
if [ "${JAVA_VENDOR}" = "Oracle" ] ; then
JAVA_HOME="${BEA_JAVA_HOME}"
export JAVA_HOME
else
if [ "${JAVA_VENDOR}" = "Sun" ] ; then
JAVA_HOME="${SUN_JAVA_HOME}"
export JAVA_HOME
else
JAVA_VENDOR="Sun"
export JAVA_VENDOR
JAVA_HOME="/usr/lib/jvm/java-1.6.0-sun-1.6.0.15.x86_64/jre"
export JAVA_HOME
fi
fi


与4.1节处理方法一样,把JAVA_HOME定义为JAVA_HOME="/usr/lib/jvm/java-1.6.0-sun-1.6.0.15.x86_64/jre"

保存修改并关闭。

再到脚本上层路径[/home/pboss23/Oracle/Middleware/user_projects/domains/pboss23/bin]$cd ..

运行startWeblogic.sh脚本。

pboss23@pboss23[/home/pboss23/Oracle/Middleware/user_projects/domains/pboss23]$startWebLogic.sh
.JAVA Memory arguments: -Xms256m –Xmx512m  -XX:MaxPermSize=256m
.WLS Start Mode=Production
.CLASSPATH=/home/pboss23/Oracle/Middleware/patch_wls1035/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/pboss23/Oracle/Middleware/patch_ocp360/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/lib/jvm/java-1.6.0-sun-1.6.0.15.x86_64/jre/lib/tools.jar:/home/pboss23/Oracle/Middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/home/pboss23/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.jar:/home/pboss23/Oracle/Middleware/modules/features/weblogic.server.modules_10.3.5.0.jar:/home/pboss23/Oracle/Middleware/wlserver_10.3/server/lib/webservices.jar:/home/pboss23/Oracle/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/home/pboss23/Oracle/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/home/pboss23/Oracle/Middleware/wlserver_10.3/common/derby/lib/derbyclient.jar:/home/pboss23/Oracle/Middleware/wlserver_10.3/server/lib/xqrl.jar
.
PATH=/home/pboss23/Oracle/Middleware/wlserver_10.3/server/bin:/home/pboss23/Oracle/Middleware/modules/org.apache.ant_1.7.1/bin:/usr/lib/jvm/java-1.6.0-sun-1.6.0.15.x86_64/jre/jre/bin:/usr/lib/jvm/java-1.6.0-sun-1.6.0.15.x86_64/jre/bin:/oracle/10g/bin:.:/usr/sbin:/oracle/10g/bin:.:/usr/sbin:/oracle/10g/bin:.:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/pboss23/bin:.:/home/pboss23/bin:.:/home/pboss23/bin:.
.
***************************************************
*  To start WebLogic Server, use a username and   *
*  password assigned to an admin-level user.  For *
*  server administration, use the WebLogic Server *
*  console at http://hostname:port/console        *
***************************************************
starting weblogic with Java version:
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02, mixed mode)
Starting WLS with line:
/usr/lib/jvm/java-1.6.0-sun-1.6.0.15.x86_64/jre/bin/java -server   -Xms512m -Xmx1024m  -XX:MaxPermSize=512m -Dweblogic.Name=AdminServer -Djava.security.policy=/home/pboss23/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.policy  -Dweblogic.ProductionModeEnabled=true   -da -Dplatform.home=/home/pboss23/Oracle/Middleware/wlserver_10.3 -Dwls.home=/home/pboss23/Oracle/Middleware/wlserver_10.3/server -Dweblogic.home=/home/pboss23/Oracle/Middleware/wlserver_10.3/server   -Dweblogic.management.discover=true  -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/home/pboss23/Oracle/Middleware/patch_wls1035/profiles/default/sysext_manifest_classpath:/home/pboss23/Oracle/Middleware/patch_ocp360/profiles/default/sysext_manifest_classpath  weblogic.Server


<2011-7-19 下午03时44分33秒 GMT+08:00> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>

<2011-7-19 下午03时44分33秒 GMT+08:00> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>

<2011-7-19 下午03时44分34秒 GMT+08:00> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 14.1-b02 from Sun Microsystems Inc.>

<2011-7-19 下午03时44分35秒 GMT+08:00> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.5.0  Fri Apr 1 20:20:06 PDT 2011 1398638 >

<2011-7-19 下午03时44分36秒 GMT+08:00> <Info> <Security> <BEA-090065> <Getting boot identity from user.>

Enter username to boot WebLogic server:weblogic
Enter password to boot WebLogic server:


<2011-7-19 下午03时44分52秒 GMT+08:00> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>

<2011-7-19 下午03时44分52秒 GMT+08:00> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>

<2011-7-19 下午03时44分52秒 GMT+08:00> <Notice> <Log Management> <BEA-170019> <The server log file /home/pboss23/Oracle/Middleware/user_projects/domains/pboss23/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.>

<2011-7-19 下午03时44分56秒 GMT+08:00> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>

<2011-7-19 下午03时44分59秒 GMT+08:00> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>

<2011-7-19 下午03时44分59秒 GMT+08:00> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>

2011-7-19 15:45:03 com.sun.faces.config.ConfigureListener contextInitialized


信息: Initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/console'

2011-7-19 15:45:03 com.sun.faces.config.ConfigureListener contextInitialized


信息: Completed initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/console'

<2011-7-19 下午03时45分04秒 GMT+08:00> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>

<2011-7-19 下午03时45分04秒 GMT+08:00> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>

<2011-7-19 下午03时45分04秒 GMT+08:00> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>

<2011-7-19 下午03时45分05秒 GMT+08:00> <Notice> <Security> <BEA-090171> <Loading the identity certificate and private key stored under the alias DemoIdentity from the jks keystore file /home/pboss23/Oracle/Middleware/wlserver_10.3/server/lib/DemoIdentity.jks.>

<2011-7-19 下午03时45分05秒 GMT+08:00> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file /home/pboss23/Oracle/Middleware/wlserver_10.3/server/lib/DemoTrust.jks.>

<2011-7-19 下午03时45分05秒 GMT+08:00> <Notice> <Security> <BEA-090169> <Loading trusted certificates from the jks keystore file /usr/lib/jvm/java-1.6.0-sun-1.6.0.15.x86_64/jre/lib/security/cacerts.>

<2011-7-19 下午03时45分05秒 GMT+08:00> <Alert> <Security> <BEA-090152> <Demo trusted CA certificate is being used in production mode: [

[
Version: V3
Subject: CN=CACERT, OU=FOR TESTING ONLY, O=MyOrganization, L=MyTown, ST=MyState, C=US
Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
Key:  Sun RSA public key, 512 bits
modulus: 9550192877869244258838480703390456015046425375252278279190673063544122510925482179963329236052146047356415957587628011282484772458983977898996276815440753
public exponent: 65537
Validity: [From: Fri Mar 22 04:12:27 GMT+08:00 2002,
To: Wed Mar 23 04:12:27 GMT+08:00 2022]
Issuer: CN=CACERT, OU=FOR TESTING ONLY, O=MyOrganization, L=MyTown, ST=MyState, C=US
SerialNumber: [    33f10648 fcde0deb 4199921f d64537f4]
Certificate Extensions: 1
[1]: ObjectId: 2.5.29.15 Criticality=true
KeyUsage [
Key_CertSign
]
]
Algorithm: [MD5withRSA]
Signature:
0000: 9D 26 4C 29 C8 91 C3 A7   06 C3 24 6F AE B4 F8 82  .&L)......$o....
0010: 80 4D AA CB 7C 79 46 84   81 C4 66 95 F4 1E D8 C4  .M...yF...f.....
0020: E9 B7 D9 7C E2 23 33 A4   B7 21 E0 AA 54 2B 4A FF  .....#3..!..T+J.
0030: CB 21 20 88 81 21 DB AC   90 54 D8 7D 79 63 23 3C  .! ..!...T..yc#<
] The system is vulnerable to security attacks, since it trusts certificates signed by the demo trusted CA.>


<2011-7-19 下午03时45分05秒 GMT+08:00> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=KEYNECTIS ROOT CA,OU=ROOT,O=KEYNECTIS,C=FR". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>

<2011-7-19 下午03时45分05秒 GMT+08:00> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 3,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>

<2011-7-19 下午03时45分05秒 GMT+08:00> <Notice> <Security> <BEA-090898> <Ignoring the trusted CA certificate "CN=T-TeleSec GlobalRoot Class 2,OU=T-Systems Trust Center,O=T-Systems Enterprise Services GmbH,C=DE". The loading of the trusted certificate list raised a certificate parsing exception PKIX: Unsupported OID in the AlgorithmIdentifier object: 1.2.840.113549.1.1.11.>

<2011-7-19 下午03时45分05秒 GMT+08:00> <Notice> <Server> <BEA-002613> <Channel "DefaultSecure" is now listening on 10.153.198.23:7002 for protocols iiops, t3s, ldaps, https.>

<2011-7-19 下午03时45分05秒 GMT+08:00> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.153.198.23:8001 for protocols iiop, t3, ldap, snmp, http.>

<2011-7-19 下午03时45分05秒 GMT+08:00> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "AdminServer" for domain "pboss23" running in Production Mode>

<2011-7-19 下午03时45分06秒 GMT+08:00> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>

<2011-7-19 下午03时45分06秒 GMT+08:00> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>

启动成功

可以放到后台运行脚本,不转存日志,命令如下:

nohup startWebLogic.sh > /dev/null $


转存日志,命令如下:

nohup startWebLogic.sh > ./startWeblogic.log $


就此Weblogic安装完成。

--转自 北京联动北方科技有限公司




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论