Weblogic的几个Issue的解决方法和一些Linuxx命令

Issue 1:(Weblogic 8.1_SP5)

    weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ invalid assignment from 'Object' to 'Object' ]

Solution:

    Use the "-Xint" option to the JVM. This appears to be an issue with the optimization in the Sun JVM 1.4.x versions.

    Alternatively create a .hotspot_compiler file in the working directory of your domain with the content below:

    exclude weblogic/utils/classfile/expr/LocalVariableExpression codeAssign
    exclude weblogic/utils/classfile/expr/AssignStatement <init>

    There is another option and that is to try JRockit JVM

 

Issue 2:(Weblogic 10.3)

    <Server subsystem failed. Reason: java.lang.NumberFormatException: null>

Solution:

    Remove: YOUR_DOMAIN/servers/YOUR_ADMIN_SERVER/data/ldap/conf/replicas.prop

 

 

 

Issue 3:(Weblogic 8.1_SP5)

    Security exception

Solution:

    1) java -cp /opt/bea/8.1_SP5/weblogic81/server/lib/weblogic.jar weblogic.security.utils.AdminAccount weblogic weblogic  ./

    2) cd YOUR_DOMAIN/YOUR_ADMIN_SERVER/ldap

        rm DefaultAuthenticatormyrealmInit.initialized

    3) cp ../../DefaultAuthenticatorInit.ldift .

    4) rm ../../boot.properties

    5) cd ../..

    6) add -Dweblogic.management.username=weblogic -Dweblogic.management.password=weblogic to your start scripts

 

 

 

Skill 1:

    Find files in a jar package:

    for i in `ls`; do jar tf $i | grep "KEY_WORD" && echo $i; done

 

Skill 2:

    Clean old logs:

    find . -name "*.log" -mtime +1 -exec rm {} \;

    find . -name "*.log" -mmin +30 -exec rm {} \;

 

Skill 3:

    Compress and uncompress files:

    Compress: tar zcvf FileName.tar.gz DirName

    Uncompress: tar zxvf FileName.tar.gz

    Lookup: tar ztvf FileName.tar.gz

 

Skill 4:

     Retrieve files from rpm package without installing it.

 

     rpm2cpio foo.rpm | cpio -idmv

 

     rpm2cpio changes rpm package into cpio format

     Use cpio to retrieve file:

         -i retrieve file

        -d create directory structure according to rpm orginal file structure

        -m remain files' update time

        -v  show processed file list

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值