5

weblogic打psu补丁,报错

问题描述:linux环境下,给weblogic打psu补丁(补丁ID:I37G),执行bsu.sh命令,报错,错误如下:
Exception in thread "main" Exception in thread "Thread-0" java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlBeans
at com.bea.cie.common.dao.xbean.XBeanDataHandlerSpiImpl.getSchemaType(XBeanDataHandlerSpiImpl.java:244)
at com.bea.cie.common.dao.xbean.XBeanDataHandlerSpiImpl.create(XBeanDataHandlerSpiImpl.java:83)
at com.bea.cie.common.dao.xbean.XBeanDataHandlerSpiImpl.create(XBeanDataHandlerSpiImpl.java:68)
at com.bea.plateng.patch.dao.reg.PatchRegistryFactory.create(PatchRegistryFactory.java:40)
at com.bea.plateng.patch.dao.reg.PatchRegistryHelper.getPatchRegistry(PatchRegistryHelper.java:49)
at com.bea.plateng.patch.PatchTarget.(PatchTarget.java:259)
at com.bea.plateng.patch.PatchTargetFactory.create(PatchTargetFactory.java:30)
at com.bea.plateng.patch.ProductAliasTarget.constructPatchTargetList(ProductAliasTarget.java:88)
at com.bea.plateng.patch.ProductAliasTarget.(ProductAliasTarget.java:46)
at com.bea.plateng.patch.ProductAliasTargetHelper.getProdAliasTargetList(ProductAliasTargetHelper.java:55)
at com.bea.plateng.patch.ProductAliasTargetHelper.getAllHomeToProdAliasesTargetMap(ProductAliasTargetHelper.java:32)
at com.bea.plateng.patch.ProductAliasTargetHelper.checkProfilesInProductAliases(ProductAliasTargetHelper.java:133)
at com.bea.plateng.patch.Patch$1.run(Patch.java:376)
at java.lang.Thread.run(Thread.java:745)
java.lang.NoClassDefFoundError: org/apache/xmlbeans/XmlBeans
at com.bea.cie.common.dao.xbean.XBeanDataHandlerSpiImpl.getSchemaType(XBeanDataHandlerSpiImpl.java:244)
at com.bea.cie.common.dao.xbean.XBeanDataHandlerSpiImpl.create(XBeanDataHandlerSpiImpl.java:83)
at com.bea.cie.common.dao.xbean.XBeanDataHandlerSpiImpl.create(XBeanDataHandlerSpiImpl.java:68)
at com.bea.plateng.patch.dao.reg.PatchRegistryFactory.create(PatchRegistryFactory.java:40)
at com.bea.plateng.patch.dao.reg.PatchRegistryHelper.getPatchRegistry(PatchRegistryHelper.java:49)
at com.bea.plateng.patch.PatchTarget.(PatchTarget.java:259)
at com.bea.plateng.patch.PatchTargetFactory.create(PatchTargetFactory.java:30)
at com.bea.plateng.patch.PatchTargetHelper.getPatchTargets(PatchTargetHelper.java:204)
at com.bea.plateng.patch.PatchTargetHelper.updatePatchTargets(PatchTargetHelper.java:119)
at com.bea.plateng.patch.PatchTargetHelper.getAllPatchTargets(PatchTargetHelper.java:74)
at com.bea.plateng.patch.PatchTargetHelper.getPatchTarget(PatchTargetHelper.java:247)
at com.bea.plateng.patch.Patch.getPatchTarget(Patch.java:432)
at com.bea.plateng.patch.Patch.getPatchTarget(Patch.java:416)
at com.bea.plateng.patch.Patch.main(Patch.java:251)
Caused by: java.lang.ClassNotFoundException: org.apache.xmlbeans.XmlBeans
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 14 more

感觉是环境的毛病,但是找不到出来具体原因,求大神指点,实在难住我了
bsu.sh文件的内容如下:
JAVA_HOME=''/app/jdk/jdk1.7.0_80"
MEM_ARGS="-Xms1024m -Xmx4096m"
"$JAVA_HOME/java/bin" ${MEM_ARGS} -jar patch-client.jar $*

patch-client.jar里面的MANIFEST.MF 包含class-path:../../modules/features/com.bea.cie.patch-client_3.3.0.0.jar

查看全部
zhekezmban
zhekezmban
2020/09/27 16:33
  • java
  • linux
  • jar
  • 点赞
  • 收藏
  • 回答
    私信

2个回复