全部博文(163)
分类:
2010-02-20 08:40:23
一 Weblogic 9.23 在 SUSE10 SP2 上的安装
1. 前提工作
以下的操作全部是在SUSE10SP2_X86-64上进行的,但是如果选用其他版本的linux,差别也不会很大。
使用root用户执行下面的操作:
#mkdir /BEA
#groupadd weblogic
#useradd –g weblogic –d /BEA weblogic
#chown –R weblogic:weblogic /BEA
2. 准备安装包
test/login106
到/home/yzt/hrwang目录下,下载
jdk-1_5_0_10-linux-amd64.bin
到 下载
server923_generic.jar
ftp服务器的登录名密码: yunxingchu/yunxingchu
3. 安装
(1)安装jdk
我这里假设将上面两个包放在了/tmp/weblogic下,先安装jdk
BL680-127:/tmp/weblogic #chmod a+x jdk-1_5_0_10-linux-amd64.bin
BL680-127:/tmp/weblogic #./ jdk-1_5_0_10-linux-amd64.bin
解压出来之后,我们将解压出来的jdk
BL680-127:/tmp/weblogic #mv jdk
BL680-127:/tmp/weblogic #chown –R weblogic:weblogic /BEA/jdk
(2)安装weblogic
好了安装完java,切换成weblogic用户,接下来安装weblogic
weblogic@BL680-127:/tmp/weblogic> java -jar server923_generic.jar -mode=console
Extracting 0%....................................................................................................100%
<------------------------ BEA Installer - BEA Products ----------------------->
Welcome:
--------
This installer will guide you through the installation of BEA Products. Type
"Next" or enter to proceed to the next prompt. If you want to change data
entered previously, type "Previous". You may quit the installer at any time by typing "Exit".
Enter [Exit][Next]> 输入回车
<------------------------ BEA Installer - BEA Products ----------------------->
BEA Systems License Agreement:
------------------------------
BEA SYSTEMS, INC. SOFTWARE LICENSE AGREEMENT
USE OF SOFTWARE ORDERED FROM BEA SYSTEMS, INC. ("BEA") IS PROVIDED ONLY UNDER
LICENSE FROM BEA. PLEASE READ THE FOLLOWING LICENSE AGREEMENT CAREFULLY,
INCLUDING ANY SUPPLEMENTAL TERMS AND CONDITIONS SET
MAIN LICENSE AGREEMENT, AND INDICATE YOUR ACCEPTANCE BY CLICKING THE ACCEPTANCE BOX. CERTAIN CAPITALIZED TERMS ARE DEFINED IN SECTION 11.
1. LICENSE TERMS
a. Evaluation Use. The terms of this Section 1(a) are applicable to you if you have registered as an Evaluation customer. Subject to the terms of this
Agreement, BEA grants to you a non-exclusive, non-transferable, license to use
the Software solely for Evaluation Use. Third party software products or
modules supplied by BEA, if any, may be used solely with the Software, and may
be subject to your acceptance of terms and conditions provided by such third
parties. This license begins upon downloading and ends thirty (30) days
thereafter. When the license terminates you must stop using the Software. All
rights not specifically granted to you herein are retained by BEA.
b. Development Use. The terms of this Section 1(b) are applicable to you if you have registered as a Development Use customer. Subject to the terms of this
Use above value or select another option:
1 - Yes, I agree with the terms of the license
2 - No, I do not agree with the terms of the license
Enter option number to select OR [Down][Exit][Previous]> 1
<------------------------ BEA Installer - BEA Products ----------------------->
Choose
--------------------------
"
Enter new BEA Home OR [Exit][Previous][Next]> /BEA 我安装在/BEA
<------------------------ BEA Installer - BEA Products ----------------------->
Choose
--------------------------
"
Use above value or select another option:
1 - Enter new
2 - Change to default [/root/bea]
Enter option number to select OR [Exit][Previous][Next]> 输入回车
<------------------------ BEA Installer - BEA Products ----------------------->
Choose Install Type:
--------------------
Select the type of installation you wish to perform.
->1|Complete
| Install the following software components and examples:
| - WebLogic Server
| - Workshop for WebLogic Platform
2|Custom
| Choose software components to install and perform optional configuration.
Enter index number to select OR [Exit][Previous][Next]> 1
<------------------------ BEA Installer - BEA Products ----------------------->
Choose Product Installation Directories:
----------------------------------------
Product Installation Directories:
1|Default Product Home: [/BEA/weblogic92]
2|Workshop for WebLogic Platform: [/BEA/workshop92]
Enter index number to select OR [Exit][Previous][Next]> 输入回车
2010-1-15 11:14:27 java.util.prefs.FileSystemPreferences$2 run
信息: Created user preferences directory.
<------------------------ BEA Installer - BEA Products ----------------------->
Installing files..
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
Performing String Substitutions...
Creating Domains...
Exception in thread "Timer-1" java.lang.AbstractMethodError: org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(DOM2TO.java:373)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:127)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:94)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:662)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:708)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
at java.util.prefs.XmlSupport.writeDoc(XmlSupport.java:259)
at java.util.prefs.XmlSupport.exportMap(XmlSupport.java:338)
at java.util.prefs.FileSystemPreferences$8.run(FileSystemPreferences.java:607)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.prefs.FileSystemPreferences.writeBackCache(FileSystemPreferences.java:600)
at java.util.prefs.FileSystemPreferences.syncSpiPrivileged(FileSystemPreferences.java:784)
at java.util.prefs.FileSystemPreferences.access$2300(FileSystemPreferences.java:33)
at java.util.prefs.FileSystemPreferences$13.run(FileSystemPreferences.java:754)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.prefs.FileSystemPreferences.syncSpi(FileSystemPreferences.java:752)
at java.util.prefs.AbstractPreferences.sync2(AbstractPreferences.java:1317)
at java.util.prefs.AbstractPreferences.sync2(AbstractPreferences.java:1322)
at java.util.prefs.AbstractPreferences.sync(AbstractPreferences.java:1308)
at java.util.prefs.FileSystemPreferences.sync(FileSystemPreferences.java:731)
at java.util.prefs.FileSystemPreferences.flush(FileSystemPreferences.java:807)
at java.util.prefs.FileSystemPreferences.syncWorld(FileSystemPreferences.java:451)
at java.util.prefs.FileSystemPreferences.access$1200(FileSystemPreferences.java:33)
at java.util.prefs.FileSystemPreferences$4.run(FileSystemPreferences.java:419)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
<------------------------ BEA Installer - BEA Products ----------------------->
Installation Complete
Congratulations! BEA Products has been successfully installed to /BEA/weblogic92.
Press [Enter] to continue or type [Exit]> 输入回车
<------------------------ BEA Installer - BEA Products ----------------------->
Clean up process in progress ...
Exception in thread "Thread-2" java.lang.AbstractMethodError: org.apache.xerces.dom.DocumentImpl.getXmlStandalone()Z
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.setDocumentInfo(DOM2TO.java:373)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:127)
at com.sun.org.apache.xalan.internal.xsltc.trax.DOM2TO.parse(DOM2TO.java:94)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:662)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:708)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
at java.util.prefs.XmlSupport.writeDoc(XmlSupport.java:259)
at java.util.prefs.XmlSupport.exportMap(XmlSupport.java:338)
at java.util.prefs.FileSystemPreferences$8.run(FileSystemPreferences.java:607)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.prefs.FileSystemPreferences.writeBackCache(FileSystemPreferences.java:600)
at java.util.prefs.FileSystemPreferences.syncSpiPrivileged(FileSystemPreferences.java:784)
at java.util.prefs.FileSystemPreferences.access$2300(FileSystemPreferences.java:33)
at java.util.prefs.FileSystemPreferences$13.run(FileSystemPreferences.java:754)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.prefs.FileSystemPreferences.syncSpi(FileSystemPreferences.java:752)
at java.util.prefs.AbstractPreferences.sync2(AbstractPreferences.java:1317)
at java.util.prefs.AbstractPreferences.sync2(AbstractPreferences.java:1322)
at java.util.prefs.AbstractPreferences.sync(AbstractPreferences.java:1308)
at java.util.prefs.FileSystemPreferences.sync(FileSystemPreferences.java:731)
at java.util.prefs.FileSystemPreferences.flush(FileSystemPreferences.java:807)
at java.util.prefs.FileSystemPreferences.syncWorld(FileSystemPreferences.java:451)
at java.util.prefs.FileSystemPreferences.access$1200(FileSystemPreferences.java:33)
(3)配置weblogic实例
weblogic@BL680-127:/BEA/weblogic/weblogic92/common/bin> ./config.sh
Unable to instantiate GUI, defaulting to console mode.
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Welcome:
--------
Choose between creating and extending a domain. Based on your selection,
the Configuration Wizard guides you through the steps to generate a new or
extend an existing domain.
->1|Create a new WebLogic domain
| Create a WebLogic domain in your projects directory.
2|Extend an existing WebLogic domain
| Extend an existing WebLogic domain. Use this option to add
|applications and services, or to override existing database access (JDBC)
|and messaging (JMS) settings. You can also incorporate additional
|functionality in your domain, for example, by including AquaLogic Service
|Bus.
Enter index number to select OR [Exit][Next]> 1
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Select Domain Source:
---------------------
Select the source from which the domain will be created. You can create the
domain by selecting from the required components or by selecting from a
list of existing domain templates.
->1|Choose Weblogic Platform components
| You can choose the Weblogic component(s) that you want supported in
|your domain.
2|Choose custom template
| Choose this option if you want to use an existing template. This
|could be a custom created template using the Template Builder.
Enter index number to select OR [Exit][Previous][Next]> 1
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Application Template Selection:
-------------------------------
Available Templates
|_____WebLogic Server (Required)x
|_____Workshop for WebLogic Platform [2]
Enter number exactly as it appears in brackets to toggle selection OR [Exit][Previous][Next]> 直接回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Administrator Username and Password:
----------------------------------------------
Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.
| Name | Value |
_|_________________________|_________________________________________|
1| *User name: | weblogic |
2| *User password: | |
3| *Confirm user password: | |
4| Description: | This user is the default administrator. |
Use above value or select another option:
1 - Modify "User name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
Enter option number to select OR [Exit][Previous][Next]> 2 更改密码
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Administrator Username and Password:
----------------------------------------------
Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.
"*User password:" = []
Enter new *User password: OR [Exit][Reset][Accept]> weblogic 输入密码
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Administrator Username and Password:
----------------------------------------------
Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.
| Name | Value |
_|_________________________|_________________________________________|
1| *User name: | weblogic |
2| *User password: | ******** |
3| *Confirm user password: | |
4| Description: | This user is the default administrator. |
Use above value or select another option:
1 - Modify "User name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]> 3 确认密码
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Administrator Username and Password:
----------------------------------------------
Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.
"*Confirm user password:" = []
Enter new *Confirm user password: OR [Exit][Reset][Accept]> weblogic 再次输入密码
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Administrator Username and Password:
----------------------------------------------
Create a user to be assigned to the Administrator role. This user is the
default administrator used to start development mode servers.
| Name | Value |
_|_________________________|_________________________________________|
1| *User name: | weblogic |
2| *User password: | ******** |
3| *Confirm user password: | ******** |
4| Description: | This user is the default administrator. |
Use above value or select another option:
1 - Modify "User name"
2 - Modify "User password"
3 - Modify "Confirm user password"
4 - Modify "Description"
5 - Discard Changes
Enter option number to select OR [Exit][Previous][Next]> 直接回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Domain Mode Configuration:
--------------------------
Enable Development or Production Mode for this domain.
->1|Development Mode
2|Production Mode
Enter index number to select OR [Exit][Previous][Next]> 1
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Java SDK Selection:
-------------------
->1|Sun SDK
2|Other Java SDK
Enter index number to select OR [Exit][Previous][Next]> 1 选择jdk
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Choose Configuration Option:
----------------------------
*Do you want to modify any of the preconfigured settings or defaults in
*your template?
*
*To keep the default or template settings, and proceed directly to name and *create your domain, leave No selected.
1|Yes
->2|No
Enter index number to select OR [Exit][Previous][Next]> 1
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure the Administration Server:
------------------------------------
Enter adminstration server configurations. Each WebLogic Server domain must
have one Administration Server. The Administration Server hosts the
Administration Console which is used to perform administrative tasks.
| Name | Value |
_|__________________|_____________________|
1| *Name: | AdminServer |
2| Listen address: | All Local Addresses |
3| Listen port: | 7001 |
4| SSL listen port: | N/A |
5| SSL enabled: | false |
Use above value or select another option:
1 - Modify "Name"
2 - Modify "Listen address"
3 - Modify "Listen port"
4 - Modify "SSL enabled"
Enter option number to select OR [Exit][Previous][Next]> 直接回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Managed Servers:
--------------------------
Add or delete configuration information for Managed Servers. A typical
production environment has one or more Managed Servers. Each Managed Server
is an instance of WebLogic Server used to host enterprise applications.
| Name* | Listen address | Listen port | SSL listen port | SSL enabled |
_|_______|________________|_____________|_________________|_____________|
Enter name for a new OR [Exit][Previous][Next]> 直接回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Clusters:
-------------------
Add or delete configuration information for clusters. A cluster contains
multiple WebLogic Server instances that run simultaneously and work
together to provide increased scalability and reliability. A cluster
appears to be a single WebLogic Server instance to clients.
| Name* | Multicast address | Multicast port | Cluster address |
_|_______|___________________|________________|_________________|
Enter name for a new Cluster OR [Exit][Previous][Next]> 直接回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Machines:
-------------------
Add or delete configuration information for machines. A machine is the
logical representation of the system that hosts one or more WebLogic Server
instances. The Administration Server and Node Manager application use the
machine definition to start remote servers.
| Name* | Node manager listen address | Node manager listen port |
_|_______|_____________________________|__________________________|
Enter name for a new Machine OR [Exit][Previous][Next]> 直接回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Configure Unix Machines:
------------------------
Add or delete configuration information for machines. A machine is the
logical representation of the system that hosts one or more WebLogic Server
instances. The Administration Server and Node Manager application use the
machine definition to start remote servers.
| Name |
_|______|
Enter name for a new Unix Machine OR [Exit][Previous][Next]> 直接回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Select the target domain directory for this domain:
---------------------------------------------------
"Target Location" = [Enter new value or use default
"/BEA/weblogic/user_projects/domains"]
Enter new Target Location OR [Exit][Previous][Next]> 直接回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Edit Domain Information:
------------------------
| Name | Value |
_|________|_____________|
1| *Name: | base_domain |
Enter value for "Name" OR [Exit][Previous][Next]> 直接回车
<--------------------- BEA WebLogic Configuration Wizard --------------------->
Creating Domain...
0% 25% 50% 75% 100%
[------------|------------|------------|------------]
[***************************************************]
**** Domain Created Successfully! ****
(4)更改环境变量
#vi /etc/profile 在最后加入以下几行
export JAVA_HOME=/BEA/jdk
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:/BEA/weblogic/weblogic92/server/lib/weblogic.jar
export PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$HOME/bin
(5 ) 启动weblogic
以weblogic用户执行
weblogic@BL680-127:~>/BEA/weblogic/user_projects/domains/base_domain/startWebLogic.sh &
使用netstat –ant |grep 7001 检查一下进程是否起来。