Struts 初始化异常

问题描述

各位兄弟姐妹,请帮在下看看这个问题问题描述: 目前我们的正式环境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。和你原来的那个有什么不一样!

时间: 2024-10-30 22:01:48

Struts 初始化异常的相关文章

c# ipaddress 初始化异常

问题描述 c# ipaddress 初始化异常 private void btn_test_Click(object sender EventArgs e) { IPAddress ip = IPAddress.Parse(""192.168.1.4"");//这句出错过不了 //错误提示如下: //"System.Net.ComNetOS"的类型初始值设定项引发异常. 解决方案 此类型的任何公共static(在 Visual Basic 中为

空指针异常,初始化异常!求助!

问题描述 空指针异常,初始化异常!求助! public class JdbcUtils { private static Properties properties = null; static{ try { InputStream inp = JdbcUtils.class.getClassLoader().getResourceAsStream(""dbconfig.properties""); properties = new Properties(); pr

java quartz 初始化异常

问题描述 java quartz 初始化异常 2016-04-19 02:11:11,421 (QuartzScheduler.java:2425)-An error occured instantiating job to be executed. job= 'maxbet_job_group.isn_job_group' org.quartz.SchedulerException: Problem instantiating class 'com.thrash.job.DataJob' -

“配置系统未能初始化” 异常解决

      当我们把基于.NET 2.0开发的网络客户端程序部署到windows 7 家庭普通版上启动时,报出了"配置系统未能初始化"的异常,在另外一些windows 7 家庭普通版的机器上则报出"应用程序无法启动,因为应用程序的并行配置不正确 "的异常.奇怪,以前未用过windows 7 家庭普通版,也从未碰到过类似的问题.       根据异常的提示,我们查看了windows事件日志,日志中说xml配置文件的第三行有语法错误.我们客户端的配置文件App.Conf

求高手解决!! quartz 定时器初始化异常!!!

问题描述 解决方案二: 解决方案三: 解决方案四: 解决方案五: 解决方案六: 解决方案七:配置代码:<beanid="methodInvokingJobDetail"class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"><propertyname="targetObject"><refbean="t

如何在ASP.NET应用程序中初始化

每个程序都需要初始化的过程,用来读取配置或者设置一些运行环境(变量),对于ASP.NET程序来说,又该在哪里执行初始化的任务呢? 我想应该绝大多数人都知道在Global.asax中执行初始化的过程,然而有些细节是我们需要关注的. 本文用例 在这篇博客的示例代码中,AppInitializer包含了网站的初始化的实现代码: public static class AppInitializer   {       public static ConnectionStringSettings MyNo

android 全局异常的捕获,保存本地以及上传服务器

android在产品上线以后为了能够实时捕获异常,需要写一个异常捕获的类,这个类在你遇到异常的时候会执行uncaughtException这个方法,然后你就可以对异常进行一些操作. 我把代码贴上来: package com.example.spanable_textview; import java.io.File; import java.io.FileOutputStream; import java.lang.Thread.UncaughtExceptionHandler; import

WebLogic 不能使用 Struts???????????????????????????

问题描述 WebLogic不能使用Struts???????????运行jsp正常,一到*.do就出错 解决方案 解决方案二:启动时,显示下面的警告:<Warning><HTTP><BEA-101248><[Application:'C:beauser_projectsdomainsyxpdomainapplications',Module:'ttt']:Deploymentdescriptor"web.xml"ismalformed.Chec

解析Java中所有错误和异常的父类java.lang.Throwable_java

在java语言中,错误类的基类是java.lang.Error,异常类的基类是java.lang.Exception. 1)相同点:java.lang.Error和java.lang.Exception都是java.lang.Throwable的子类,因此java.lang.Error和java.lang.Exception自身及其子类都可以作为throw的使用对象,如:throw new MyError();和throw new MyException();其中,MyError类是java.l