问题描述
各位兄弟姐妹,请帮在下看看这个问题问题描述: 目前我们的正式环境weblogic 为8.1.5版,部署包是正常的、部署OK;现在在另外一台服务器安装了weblogic 8.1.5,把使用的部署包移植过去后,部署过程中报如下错误(其中数据库连接时正常的):2010-08-17 15:57:02,897 [ExecuteThread: '1' for queue: 'weblogic.kernel.System'] ERROR ActionServlet.java:367 - Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.java.lang.NoClassDefFoundError: java/awt/Colorat com.regaltec.formdefine.formengine.ControlFace.getColorHexString(I)Ljava/lang/String;(ControlFace.java:288)at com.regaltec.formdefine.formengine.ControlFace.setFontColor(Ljava/lang/String;)V(ControlFace.java:167)at com.regaltec.formdefine.formengine.ControlFace.restore(Lorg/w3c/dom/Element;)V(ControlFace.java:244)at com.regaltec.formdefine.formengine.FormStruct.restore(Ljava/lang/String;)V(FormStruct.java:58)at com.regaltec.formdefine.formengine.FormEngine.loadFormMap()V(FormEngine.java:1868)at com.regaltec.formdefine.formengine.FormLoadPlugIn.init(Lorg/apache/struts/action/ActionServlet;Lorg/apache/struts/config/ModuleConfig;)V(FormLoadPlugIn.java:40)at org.apache.struts.action.ActionServlet.initModulePlugIns(Lorg/apache/struts/config/ModuleConfig;)V(ActionServlet.java:872)at org.apache.struts.action.ActionServlet.init()V(ActionServlet.java:339)at javax.servlet.GenericServlet.init(Ljavax/servlet/ServletConfig;)V(GenericServlet.java:258)at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run()Ljava/lang/Object;(ServletStubImpl.java:1094)at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(AuthenticatedSubject.java:321)at weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(SecurityManager.java:121)at weblogic.servlet.internal.ServletStubImpl.createServlet()Ljavax/servlet/Servlet;(ServletStubImpl.java:970)at weblogic.servlet.internal.ServletStubImpl.createInstances()V(ServletStubImpl.java:949)at weblogic.servlet.internal.ServletStubImpl.prepareServlet(Lweblogic/servlet/internal/RequestCallback;)V(ServletStubImpl.java:888)at weblogic.servlet.internal.WebAppServletContext.preloadServlet(Ljava/lang/String;)V(WebAppServletContext.java:3430)at weblogic.servlet.internal.WebAppServletContext.preloadServlets()V(WebAppServletContext.java:3375)at weblogic.servlet.internal.WebAppServletContext.preloadResources()V(WebAppServletContext.java:3356)at weblogic.servlet.internal.WebAppServletContext.setStarted(Z)V(WebAppServletContext.java:6208)at weblogic.servlet.internal.WebAppModule.start()V(WebAppModule.java:864)at weblogic.j2ee.J2EEApplicationContainer.start([Lweblogic/j2ee/J2EEApplicationContainer$Component;)V(J2EEApplicationContainer.java:2134)at weblogic.j2ee.J2EEApplicationContainer.activate([Lweblogic/management/configuration/ComponentMBean;)V(J2EEApplicationContainer.java:2175)at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer()V(SlaveDeployer.java:2520)at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit()V(SlaveDeployer.java:2438)at weblogic.management.deploy.slave.SlaveDeployer$Task.commit()V(SlaveDeployer.java:2155)at weblogic.management.deploy.slave.SlaveDeployer.commitUpdate(Lweblogic/drs/Version;)V(SlaveDeployer.java:681)at weblogic.drs.internal.SlaveCallbackHandler$2.execute(Lweblogic/kernel/ExecuteThread;)V(SlaveCallbackHandler.java:35)at weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(ExecuteThread.java:224)at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183)at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source)<2010-8-17 下午03时57分02秒 CST> <Error> <HTTP> <BEA-101216> <Servlet: "action" failed to preload on startup in Web application: "IDA30_xj".javax.servlet.UnavailableException: java/awt/Colorat org.apache.struts.action.ActionServlet.init()V(ActionServlet.java:371)at javax.servlet.GenericServlet.init(Ljavax/servlet/ServletConfig;)V(GenericServlet.java:258)at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run()Ljava/lang/Object;(ServletStubImpl.java:1094)at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic/security/subject/AbstractSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(AuthenticatedSubject.java:321)at weblogic.security.service.SecurityManager.runAs(Lweblogic/security/acl/internal/AuthenticatedSubject;Lweblogic/security/acl/internal/AuthenticatedSubject;Ljava/security/PrivilegedAction;)Ljava/lang/Object;(SecurityManager.java:121)at weblogic.servlet.internal.ServletStubImpl.createServlet()Ljavax/servlet/Servlet;(ServletStubImpl.java:970)at weblogic.servlet.internal.ServletStubImpl.createInstances()V(ServletStubImpl.java:949)at weblogic.servlet.internal.ServletStubImpl.prepareServlet(Lweblogic/servlet/internal/RequestCallback;)V(ServletStubImpl.java:888)at weblogic.servlet.internal.WebAppServletContext.preloadServlet(Ljava/lang/String;)V(WebAppServletContext.java:3430)at weblogic.servlet.internal.WebAppServletContext.preloadServlets()V(WebAppServletContext.java:3375)at weblogic.servlet.internal.WebAppServletContext.preloadResources()V(WebAppServletContext.java:3356)at weblogic.servlet.internal.WebAppServletContext.setStarted(Z)V(WebAppServletContext.java:6208)at weblogic.servlet.internal.WebAppModule.start()V(WebAppModule.java:864)at weblogic.j2ee.J2EEApplicationContainer.start([Lweblogic/j2ee/J2EEApplicationContainer$Component;)V(J2EEApplicationContainer.java:2134)at weblogic.j2ee.J2EEApplicationContainer.activate([Lweblogic/management/configuration/ComponentMBean;)V(J2EEApplicationContainer.java:2175)at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer()V(SlaveDeployer.java:2520)at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit()V(SlaveDeployer.java:2438)at weblogic.management.deploy.slave.SlaveDeployer$Task.commit()V(SlaveDeployer.java:2155)at weblogic.management.deploy.slave.SlaveDeployer.commitUpdate(Lweblogic/drs/Version;)V(SlaveDeployer.java:681)at weblogic.drs.internal.SlaveCallbackHandler$2.execute(Lweblogic/kernel/ExecuteThread;)V(SlaveCallbackHandler.java:35)at weblogic.kernel.ExecuteThread.execute(Lweblogic/kernel/ExecuteRequest;)V(ExecuteThread.java:224)at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:183)at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source) 问题补充:xuzhfa123 写道
解决方案
有jar没有导进去,你就将部署正常的那个weblogic服务器lib目录下的所有jar拷贝过去覆盖就没事了
解决方案二:
引用javax.servlet.UnavailableException: /bea/bea/jrockit81sp5_142_08/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory 你在检查一下,说是没有这个文件。
解决方案三:
java/awt/Color 这类的包放在 classpath 或者 导进去
解决方案四:
好多依赖好多包都找不到。。你在看看你的weblogic。和你原来的那个有什么不一样!