分类:
2005-12-16 13:49:18
跟weblogic8.1的安装有些不同;
以及结合别的文章的一些细节;
nm1[/home]#sh weblogic610sp2_hp.bin
Preparing to install...
Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
Stack Trace:
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Window.
at java.awt.Frame.
at java.awt.Frame.
at com.zerog.ia.installer.Main.b([DashoPro-V1.2-120198])
at com.zerog.ia.installer.Main.main([DashoPro-V1.2-120198])
at java.lang.reflect.Method.invoke(Native Method)
at com.zerog.lax.LAX.launch([DashoPro-V1.2-120198])
at com.zerog.lax.LAX.main([DashoPro-V1.2-120198])
nm1[/home]#sh weblogic610sp2_hp.bin –i console
注意:如此处不加-i console;有可能出现上述的的问题;
一.weblogic自带子jdk1.3,所以不用预装JDK就可以直接安装它,在win2000平台是一个EXE文件,直接运行它即可.
b. Civilian Agency End Users: If the Software is acquired by or on behalf of
civilian agencies of the United States Government, then, pursuant to FAR
Section 12.212 and its successors (48 C.F.R. 12.212), the Government's right to
use, reproduce or disclose the Software acquired under this Agreement is
subject to the restrictions of this Agreement.
10. MISCELLANEOUS.
a. Force Majeure. Neither party shall be liable for any delay or failure in
performance due to causes beyond its reasonable control.
b. Export Compliance. You may not download or otherwise export or re-export the
Software or any underlying information or technology except in full compliance
with all United States and other applicable laws and regulations. In
particular, but without limitation, none of the Software or underlying
information or technology may be downloaded or otherwise exported or
PRESS
re-exported (a) into (or to a national or resident of)
list of Specially Designated Nationals or the US Commerce Department's Table of
Denial Orders. By licensing the Software, you are agreeing to the foregoing and
you are representing and warranting that you are not located in, under control
of, or a national or resident of any such country or on any such list.
c. Assignment. You may not assign this Agreement, except to a successor in
interest as the result of a merger or acquisition or sale of all or
substantially all of your assets, without BEA's prior written consent which
will not be unreasonably withheld.
d. Severability. If any part of this Agreement is held to be unenforceable, in
whole or in part, such holding will not affect the validity of the other parts
of the Agreement.
e. Waiver. The waiver of a breach of any provision of this Agreement will not
operate or be interpreted as a waiver of any other or subsequent breach.
f. Notices. All notices permitted or required under this Agreement shall be in
writing and shall be delivered in person, by FAX, overnight courier service or
mailed by first class, registered or certified mail, postage prepaid, to the
PRESS
address of the party specified as accepting these terms and conditions upon
completion of the registration sheet and ACCEPTANCE of this Agreement by
clicking on the ACCEPTANCE button.
g. Governing Law and Venue. Notwithstanding the Territory, this Agreement will
be governed by both the substantive and procedural laws of
excluding its conflict of law rules. Any dispute regarding this Agreement will
be heard in the state or federal courts having jurisdiction in
personal jurisdiction of such courts.
h. Entire Agreement. Any amendment or modification to the Agreement must be in
writing signed by both parties. This Agreement constitutes the entire
agreement and supersedes all prior or contemporaneous oral or written
agreements regarding the subject matter hereof. No terms, provisions or
conditions of any purchase order, acknowledgment or other business form that
you may use in connection with the licensing of the Software will have any
effect on the rights, duties or obligations of the parties hereunder, or
otherwise modify this Agreement, regardless of any failure of BEA to object to
such terms, provisions or conditions.
i. Acceptance. The earlier of your (i) clicking on the ACCEPTANCE button, (ii)
PRESS
downloading of the Software, (iii) use of the Software or (iv) receipt by BEA
of a valid, binding purchase order, Agreement or other ordering document for
the Software, constitutes an acceptance of the terms of this Agreement. If you
do not agree to be bound by these provisions, you are required to destroy all
copies of the Software from your equipment immediately.
11. DEFINITIONS.
a. "Development Use" means use of the Software by a Development Use customer to
design, develop and/or test new applications for Production Use.
b. "Documentation" means BEA's current user manuals, operating instructions and
installation guides generally provided with the Software to its licensees.
c. "Error" means a failure of the Software to conform to the specifications as
set forth in the Documentation, resulting in the inability to use the Software
or a material restriction in use of the Software.
d. "Evaluation Use" means use of the Software solely for evaluation and trial
for new applications intended for your Production Use.
e. "Maintenance Release" means a subsequent version of the Software that
PRESS
includes Updates and/or Upgrades.
f. "Production Use" means using the Software in your application for internal
business purposes only which may include third party customers' access to or
use of such applications. Production Use does not include the right to
reproduce the Software for sublicensing, resale, or distribution, including
without limitation, operation on a time sharing or service bureau basis or
distributing the Software as part of an ASP, VAR, OEM, distributor or reseller
arrangement.
g. "Server" means a single computer processor capable of executing the
Software.
h. "Site" means the specific, physical location of a Server, as set forth on
your registration form.
i. "Software" means the object code versions, extracts and/or derivative works
of the software electronically downloaded from BEA's website upon acceptance of
this Agreement, and the related Documentation, including Maintenance Releases
provided pursuant to the standard Support Services Terms and Conditions.
j. "Support Services" means technical support for Software under BEA's then
PRESS
current policies.
k. "Support Services Term" means the first year after the Effective Date of the
applicable Software License Agreement and the related Order, plus any
respective renewal terms.
l. "Territory" means the geographical territory into which you download the
Software or indicate acceptance of this Agreement .
m. "Update" means either a Software modification or addition that, when made
or added to the Software, corrects the Error, or a procedure or routine that,
when observed in the regular operation of the Software, eliminates the
practical adverse effect of the Error on customer.
n. "Upgrade" means a revision of the Software released by BEA to its end user
customers generally, during the Support Services Term, to add new and different
functions or to increase the capacity of the Software. Upgrade does not
include the release of a new product or added features for which there may be a
separate charge. If a question arises as to whether a new product offering is
an Upgrade or a new product or feature, BEA's opinion will prevail, provided
that BEA treats the product offering as a new product or feature for its end
user customers generally.
PRESS
BEA End User Clickwrap 001205
Copyright (c) BEA Systems, Inc.
All Rights Reserved.
DO YOU AGREE WITH THE TERMS OF THE LICENSE? (Y/N): y
======================================================================
Choose Install Set
------------------
Please Choose the Install Set to be installed by this installer.
->1- Server and Examples
2- Server Only
3- Customize...
ENTER THE NUMBER FOR THE INSTALL SET, OR
: 1
======================================================================
Choose
-------------------------
1- Create a New
Enter a number: 1
Specify a
======================================================================
Choose Product Directory
------------------------
1- Modify Current Selection (/opt/bea/wlserver6.1)
2- Use Current Selection (/opt/bea/wlserver6.1)
Enter a number: 1
Specify Product Installation Directory: /opt/bea/wlserver6.1
1- Modify Current Selection (/opt/bea/wlserver6.1)
2- Use Current Selection (/opt/bea/wlserver6.1)
Enter a number: 2
======================================================================
Default Server Configuration
----------------------------
1- Modify WebLogic Admin Domain Name (mydomain)
2- Modify Server Name (myserver)
3- Modify
4- Modify Secure (SSL)
5- Done Configuration
Enter a number: 5
======================================================================
Create System Password
----------------------
Password:
Verify Password:
Good Password! Installing now ......
======================================================================
Installing...
------------- [==================|==================|==================|=============]
[------------------|------------------|------------------|------]
======================================================================
Install Complete
----------------
Congratulations! WebLogic Server 6.1 (with sp2) has been successfully installed
to
/opt/bea/wlserver6.1
You have 30 days in your license for WebLogic Server 6.1.
Please visit if you need license
extension.
PRESS
nm1[/home]#
二、与ORACLE数据库的连接:
WebLogic6.0通过ORACLE客户端访问ORACLE,所以在WebLogic6.0所在的机器上要正确安装ORACLE客户端才行。WebLogic6.0对ORACLE提供TYPE2的JDBC DRIVER支持,是一些动态连接库(NT 是.DLL,UNIX是.SO)文件,在in下,以OCI开头的几个目录中。具体采用哪个目录下库文件,与ORACLE SERVER端及CLIENT端的版本及ORACLE API的版本有关,可参考WebLogic6.0的联机文档.要把这些库所在的路径加到系统的环境变量中,否则访问数据库时,WebLogic6.0会报以下错误:
Java.sql.SQLException: System.loadLibrary threw java.lang.UnsatisfiedLinkError with the message 'no WebLogicoci37 in java.library.path'.....
在WIN2000中要加到PATH环境变量中,如:
set PATH= D:WebLogic6.0wlserver6.0inoci816_7;c:ORANT816in;%PATH%
在NIX平台,要到系统的LIBRARY PATH中,如在SUN上,要加到LD_LIBRARY_PATH环境变量中,方法如下:
export LD_LIBRARY_PATH=/bea/weblogic6.0/oci816_8:/lib
在HP平台上,要加到SHLIB_PATH环境变量中,如:
export SHLIB_PATH=/bea/ weblogic6.0/lib/hpux11/oci816_8:/lib
三、在WebLogic6.0中设置资源的访问权限
WebLogic6.0几乎可以对它所管理的所有资源设置访问控制表,包括EJB、JSP、SERVLET、POOL、JMS、RMI、JNDI、JDBC等等。当用户第一次访问设置了访问控制表的资源时,WebLogic6.0会弹出一个对话框要求输入口令及密码,如果连输3次都不对,会返回以下错误:
Error 401--Unauthorized xxx From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: 10.4.2 401 Unauthorized
对访问权限的设置有两种方式:
1. 在WebLogic6.O的控制台中设置,把结果保存到fileRealm.properties中,即采用WebLogic6.0的file realm.感觉对DATABASE POOL,EJB等比较好用,对JSP,SERVER及某个目录设置访问控制表比较难。我试了很多次都没成功。它可对WEB用户(通过浏览器访问)和普通用户(通过JAVA客户端等访问)起作用。
2. 在WEB.XML,WebLogic.XML中设置,只能对WEB用户起作用。下面举个例子说明这种方式。
管理员在2009年8月13日编辑了该文章文章。