Questions tagged [struts2-spring-plugin]

The Struts2 Spring plugin provides integration with Spring framework.

The Spring Plugin provides integration with Spring framework by overriding the Struts ObjectFactory with StrutsSpringObjectFactory to enhance the creation of core framework objects. When an action instance is managed by Spring, it uses the class attribute in the Struts configuration to correspond to the id attribute in the Spring configuration. If not found, the class will try to be created as usual, then be autowired by Spring. In the case of Actions, Spring's bean scope feature can be used to scope an Action instance to the session, application, or a custom scope, providing advanced customization above the default scoping.

More about Spring plugin: https://struts.apache.org/docs/spring-plugin.html

Spring and Struts 2: https://struts.apache.org/docs/spring-and-struts-2.html

29 questions
4
votes
3 answers

disable spring autowire

i ahave an app with struts2.2 and spring 3.1 and i want to disable spring autowire. I googled a little bit and found that i have to put at tab default-autowire="no", but this doesn't seems to work. Then i fount that i can declare this for…
Videanu Adrian
  • 972
  • 3
  • 16
  • 41
2
votes
1 answer

Advice is not called from struts 2 action?

Below i have define aspect in aop.xml My Custom Aspect is define below @Aspect public class MyCustomAspect{ @Around("@annotation(requiredPrivilege)") …
emilly
  • 10,060
  • 33
  • 97
  • 172
1
vote
1 answer

Debugging java.lang.IncompatibleClassChangeError: Implementing class errors (Spring/Hibernate/Struts)

I recently began trying to upgrade some dependencies of a Struts2/Spring/Hibernate application that were several years out of date -- primarily to try to pick up the @Enumerated annotation. The POM is getting cleaner along the way, which is a nice…
Eric
  • 11
  • 1
  • 2
1
vote
1 answer

Struts2+Spring Integration

Trying to integrate Struts2 and Spring in my application using Maven. I have placed all the dependencies in Pom file which is related to Spring-web,Spring,Struts2-spring plugin
1
vote
2 answers

Can we integrate Struts 2.0 with Spring 3.0 +

I am new to Struts . Can we integrate Struts 2.0 with Spring 3.0 + . I am hearing people say "it is not possible to integrate it". Is this true . If so is there any tutorial on the web having an example ? edit : There is a plugin to integrate…
Vinoth Kumar C M
  • 10,378
  • 28
  • 89
  • 130
1
vote
1 answer

Adding Plugins to Application Context in Spring

in order to implement modular approach (simillar to oSGI) i am using spring plugin framework (https://github.com/spring-projects/spring-plugin), i have provided a specific interface as an extension point which my plugin implementations will…
1
vote
1 answer

Exception starting filter struts2 Unable to load configuration. What's wrong?

I'm writing a (Struts2, Spring3, Hibernate4) website for studying, but when I run this project today, these errors appeared. Project code is here. Severe: Exception starting filter struts2 Unable to load configuration. - [unknown location] at…
1
vote
1 answer

java.lang.NoSuchMethodError: org.springframework.beans.support.ResourceEditorRegistrar.

Trying to integrate Spring 4.2.2.RELEASE with Struts2 2.3.24.1. I had tested that Spring was working by manually instantiating my Service class inside the action as ApplicationContext context = new…
Jose Ospina
  • 2,097
  • 3
  • 26
  • 40
1
vote
1 answer

Unknown reason for java.lang.ClassNotFoundException

In an application, we have declared Action class as a Spring bean. This is working fine for all Struts mapping.
1
vote
1 answer

Struts2 spring integration error for loading index page with action class

18:23:26,988 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/strutsNew]] (MSC service thread 1-2) Exception starting filter struts2: Unable to load configuration. - action -…
santosh
  • 21
  • 8
1
vote
1 answer

How do configure struts convention plugin with struts-spring plugin with Action class mapped with annotations

I am trying to configure spring plugin with strut 2 application which is already running with convention plugin, so I am using annotations. I am using ExtJs for my form submission which was initially working well until I introduced the spring…
1
vote
1 answer

@autowired does not work on struts2 + spring

I want to make a web application based on struts2 and spring. First of all, I tested if @Autowired does work on struts2. But it does not, dataSource is null. I have no idea how I can fix it. Please give me an infomation for it.…
1
vote
1 answer

Struts2 Dependency Injection

I am currently creating web application using Struts2 with Struts2-spring plugin. here is a snippet of my applicationContext.xml
1
vote
0 answers

Struts2 registers DebuggingInterceptor fails

Really need help. I use Struts2 (2.3.4) + Spring (3.0.5) + Tomcat (7.0) + Spring Tool Suite (STS 3.1). When I started Tomcat in STS, there is a ERROR emerging. 13:19:14,656 ERROR ContainerBackgroundProcessor[StandardEngine[Catalina]]…
Albert
  • 53
  • 1
  • 6
1
vote
2 answers

Struts2 + Spring, is the Spring Plugin required?

I'm replacing the service tier in an existing older Struts2 project with Spring service beans developed for another project. I'd like to just @Inject these service beans into my Action classes. Is it required to use Struts' Spring Plugin? Or can I…
Justin
  • 6,031
  • 11
  • 48
  • 82
1
2