---
title: "Spring以annotations注释的方式托管struts2的action不能实例化"
author: "harbey"
date: "2010-09-15T16:09:56Z"
tags: []
categories: ["企业架构"]
slug: "spring-annotations-struts2-action"
draft: false
lastmod: "2010-12-30T22:04:53Z"
id: 764010
url: "https://harbey.iteye.com/blog/764010"
---

Spring以annotations注释的方式托管struts2的action，再初始化action时，报告这个类不能初始化。
原因：
1.程序或配置错误：例如struts的配置文件，spring的配置文件。
2.环境错误：java是64bit，而tomcat是32bit等。
3.注释性事务配置冲突引起。