`

Unable to instantiate Action,defined for ',,,' in namespace

阅读更多
struts2的执行原理是当一个request请求过来之后struts2拦截器根据其配置文件的解析然后再初始化并执行不同的java类,而之所以会出现上面的问题则是因为在初始化java类的时候在java类里面初始化了ActionContext的的一些对象,所以不要再action类的成员变量里面去定义它。
因此解决方法是:将ActionContext放进方法里。
分享到:
评论
1 楼 g16g 2012-03-14  
谢谢了!确实解决问题!

相关推荐

    SSH登录无实例化例子

    stdin, stdout, stderr = ssh.exec_command('command_to_execute') output = stdout.read().decode() error = stderr.read().decode() ssh.close() ``` 在这个例子中,我们创建了一个`SSHClient`实例,但只...

    解决Hive启动失败Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient

    FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient 通过控制台的...

    BroadcasReceivert的两种注册模式

    <action android:name="com.example.MY_ACTION" /> ``` 在这个例子中,`MyBroadcastReceiver`类需要实现BroadcastReceiver,并在onReceive()方法中处理广播事件。 两种注册方式各有优缺点:动态注册灵活性高,...

    WebService大讲堂之Axis2,多个实例

    WebService是一种网络服务技术,允许在不同操作系统和编程语言之间实现应用程序的通信。Axis2是一个高效、模块化的Web服务引擎,用于构建和部署Web服务和客户端。Axis2不仅支持SOAP协议,还支持REST风格的服务,同时...

    Axis2WebService与Spring的整合

    <constructor-arg value="file:/path/to/axis2.xml"/> ``` 3. **定义Web服务**: 在Spring配置文件中,使用`ServiceDeployer` bean部署Axis2服务。这通常涉及到将服务的aar文件添加到Axis2的Repository目录,并...

    ar.com.tadp.xml.rinzo

    在软件开发领域,XML(Extensible Markup Language)作为一种数据交换格式,被广泛应用于配置文件、数据存储和网络通信等领域。Eclipse作为一款强大的开源集成开发环境(IDE),提供了丰富的插件支持,以增强其功能...

    fabric网络踩坑记录

    {“success”:false,“message”:“Failed to instantiate the chaincode. cause:instantiate proposal resulted in an error :: Error: 2 UNKNOWN: chaincode error (status: 500, message: is not a valid ...

    Java Mime Magic Library-开源

    Java Mime Magic Library,通常被称为 jMimeMagic,是一款在Java平台上用于识别文件或输入流MIME类型的开源库。MIME(Multipurpose Internet Mail Extensions)类型是互联网标准,用于标识不同类型的二进制或文本...

    Unity3D教程:Prefabs与Instantiate1

    Unity3D Prefabs 与 Instantiate 教程 Unity 3D 中的 Prefabs 是一种资源类型,可以被重复使用的游戏对象。它可以被置入多个场景中,又或者能够在一个场景中被多次置入。当你在一个场景中增加一个 Prefabs,你就...

    Unity3D入门 :Prefabs(预设)与 Instantiate(实例化)

    在Unity3D游戏开发中,Prefabs(预设)和Instantiate(实例化)是两个非常重要的概念,它们是构建游戏对象和动态管理游戏世界的基石。本文将深入探讨这两个概念,帮助初学者理解并掌握它们在实际项目中的应用。 ...

    解决SpringDataJPA报错:org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null w

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/...

    dpoll.xyz:顶级HIVE区块链上的去中心化投票应用程序

    dpoll ... 最初创建于 安装 $ python3 -m venv dpoll-env $ tmp source dpoll-env/bin/activate ...$ cd dpoll.xyz $ pip install -r requirements.txt $ touch dpoll/base/settings.py dpoll/base/local_settings.py ...

    Unity.5.From.Zero.to.Proficiency.B01EJCE85M

    Unity 5 From Zero to Proficiency (Intermediate): A step-by-step guide to coding your first game in C# with Unity. Why this book can help you to get started with Game Development Creating your own ...

    Learning Word Vectors for Sentiment Analysis

    We instantiate the model to utilize the document-level sentiment polarity annotations present in many online documents (e.g. star ratings). We evaluate the model using small, widely used sentiment and...

    LINQPad_Premium_5.36.03_Any_CPU 含破解

    // All the controls live in the LINQPad.Controls namespace. var txt = new TextBox().Dump(); txt.TextInput += (sender, args) => $"You typed {txt.Text}".Dump(); Click here for an interactive tutorial...

    JAF 1.0.2 下载

    Sun provides a royalty-free reference implementation of the JAF software, in binary form, that developers can use to develop JAF technology-enabled applications for any platform that supports the ...

    Unity Character Animation With Mecanim pdf

    in a variety of 3D software packages Learn Project Management in Unity Understand how to set up a complex facial rig for speech Set up Animation Controllers with masked states and blend trees to ...

    Struts2.1.6+Spring2.5.6+Hibernate3.3.1框架整合常见错误

    Unable to instantiate Action, savaUserAction, defined for 'saveUser' in namespace '/' savaUserAction ``` **原因分析**: 该错误提示表明Struts2无法找到或实例化指定的Action类`savaUserAction`。这可能是...

    steadyrabbit

    稳定的兔子 stablerabbit是一个用于Rabbitmq的库 ... log.Fatalf("unable to instantiate publisher: %s", err) } queueName := "shahin" if err = p.Publish(context.Background(), queueName

Global site tag (gtag.js) - Google Analytics