Weblogic入门

来源:互联网 发布:js获取当前页面html 编辑:程序博客网 时间:2024/04/28 12:21

Weblogic是一个中间件,是一个应用服务器。http://www.qujon.com/content/?286.html


1.到官网下载软件(各种版本和平台)

   xxxxx.bin并通过上传到linux上

2.安装步骤(平台Linux)

   创建bea用户和用户组 groupadd bea     useradd bea

   以bea用户登录来安装

   执行xxx.bin即可。可在命令行和图形界面下安装(跟windows下安装一下)

   安装软件和域是分开的,只有安装了域才能用。

    ws_server/common/bin/config.sh来创建域。

   创建域成功之后还需要启动,通过网页来访问测试是否安装成功。

   这里不详细阐述。可以看这个视频:http://www.boobooke.com/v/bbk1184/


3.部署应用

    j2ee的标准目录结构

   工程名

        WEB-INF

        文件

             web.xml


问题:java.lang.ClassCastException: com.octetstring.vde.backend.BackendRoot 

如果在启动weblogic的时候忘记切换用户用root启动一次后,再次用weblogic922_x启动,就会出现如下错误: 


<Aug 7, 2008 3:19:24 PM CST> <Critical> <EmbeddedLDAP> <BEA-171522> <An error occurred while initializing the Embedded LDAP Server. The exception thown is java.lang.ClassCastException: com.octetstring.vde.backend.BackendRoot. This may indicate a problem with the data files for the Embedded LDAP Server. If the problem is with the data files and it can not be corrected, backups of previous versions of the data files exist in ./servers/AdminServer/data/ldap/backup.> 
<Aug 7, 2008 3:19:24 PM CST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason: 

There are 1 nested errors: 

java.lang.ClassCastException: com.octetstring.vde.backend.BackendRoot 
        at weblogic.ldap.EmbeddedLDAP.start(EmbeddedLDAP.java:273) 
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64) 
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) 
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:181) 

上面的错误原因主要是在用root用户启动weblogic的时候会在base_domain里产生root权限的文件,或者用root权限的文件覆盖了原来存在的weblogic922_x所属文件,当再次切换到weblogic922_x用户后,启动的时候就会出现权限问题,所以报告上面的错误。 


问题:忘记了登录密码(这个办法行不能,这样做之后会导致服务启不来,最终是以删除domain,重新创建的方法来实现的

          因为重新创新之后密码就是新的,再重新布署应用即可)

在domain的目录servers/AdminServer/Security/boot.properties文件可以直接修改写明文,下次启动自动加密的。


用户与密码为weblogic的内容如下:
# Generated by Configuration Wizard on Sat Nov 05 18:19:49 CST 2005
username={3DES}TWEYdEUIiZjVfIr1D53qMw==
password={3DES}TWEYdEUIiZjVfIr1D53qMw==




域和管理服务器和受管服务器

1.config/目录下的config.xml是一个要总的配置文件,受管服务器在运行时都是从这个文件中获取的信息。

在控制台下创建一个受管服务器相当于在config.xml中新增了一个配置项。

2.管理服务器相当于是一个实施总监,负责与所有的受管服务器交互,是一个总的控制中心。

3.管理服务器是负责配置整个域的管理员。

4.受管服务器可以在任一个机器上启动,并不在域的目录中,在ws_server12/common/startManagerWeblogic.sh 

  需要指定一些相关的参数才能启动。startManagerWeblogic.sh  Server-0 http://192.168.3.51:7001

  从后面的地址读取配置信息用户名和密码等来启动。

  启动后会在common/bin下的生成一些目录。

5.域是管理服务器的总控制台

6.受管服务器启动时会拷贝管理服务器的配置信息。

7.在不同的主机上管理服务器和受管服务器


原创粉丝点击