Questions tagged [spring2.x]

Version 2.x of the Spring Framework, use [tag:spring] for general Spring related questions.

Version 2.x of the Spring Framework, use for general Spring related questions.

28 questions
0
votes
0 answers

In Spring 2.5, how to config like tag in Spring MVC 3.0?

I need maintain old system with JDK/Java 1.6 , Apache Tomcat 6.0.x, Spring 2.5.6 . I am reading tutorial https://mkyong.com/spring-mvc/spring-mvc-jquery-autocomplete-example/
Vy Do
  • 46,709
  • 59
  • 215
  • 313
0
votes
1 answer

Spring boot server using jetty is not forwarding to index.html by default when running in eclipse since spring-boot-starter-parent 2.1.12-RELEASE

UPDATE: This problem exists in jetty from 9.4.25.v20191220, i have set the version back to 9.4.24 it correctly serves. Whether this is a bug or change of configuration I don't know. Maybe someone can help, i appreciate this is all configuration…
0
votes
1 answer

Flux endpoint from infinite java stream

I have an issue while processing a flux that is built from a Stream.generate construct. The Java stream is fetching some data from a remote source, hence I implemented a custom supplier that has the data fetching logic embedded, and then used it to…
Radu
  • 1,044
  • 3
  • 12
  • 35
0
votes
1 answer

How can I test an old Spring 2.0.7 application with JUnit?

I have an old app built with an ancient version of Spring: 2.0.7. I have been tasked with adding new functionality to this app, so I'm required to write some JUnit tests too. So far, I have writen mockup classes for my services, and an…
AJPerez
  • 3,435
  • 10
  • 61
  • 91
0
votes
1 answer

Mockito NullPointerException DataSourceTransactionManager.getTransaction()

I have a nullPointerException when I try mock a DataSourceTransactionManager, I just test one Method without access to DB. Maybe I am do something wrong, but I don't know what. TestClass @RunWith(MockitoJUnitRunner.class) public class…
0
votes
1 answer

Spring : ClassNotFound exception

I am starting a new project in spring mvc, while I was trying to run hello world, it is throwing errors : This is my dispatcher-servlet.xml mapping:
Shaurya
  • 136
  • 1
  • 4
  • 20
0
votes
0 answers

Upgrade Spring 2.5 version to support Spring Expression

I am using Spring 2.5.1 version. I am unable to upgrade my version to higher due to management feedback including heavy end to end testing requirements. Is there a workaround I can top up Spring 2.5.1 with Spring Expression features may be adding…
vin
  • 43
  • 6
0
votes
1 answer

AbstractStatelessSessionBean missing from SpringFramework 4

I'm trying to update a big projekt from Spring 2 to Spring 4. On the deep end of the Beans hierarchy i found a class called CustomAbstractStatelessSessionBean and that extends the AbstractStatelessSessionBean class from…
hEngi
  • 865
  • 10
  • 23
0
votes
2 answers

Returning String or HTML to ajax request with spring 2.5

I am using Spring 2.5 (XML based configuration) .In my Spring controller how can i return a string back to my AJAX request? My ajax code is as follows: jq("#editAdTextSave").click(function() { alert( "Handler for .click() called." ); …
Jeets
  • 3,189
  • 8
  • 34
  • 50
0
votes
1 answer

Access a property file outside war- Spring 2.5.1 version

I need to access a property file outside war. I am keeping path to the outside property file in a class path property file. The Project version is Spring 2.5.1 and @Configuration and Environemnt classes are not available unfortunately.…
Kasun
  • 561
  • 11
  • 22
0
votes
1 answer

Dependency Injection returned results of bean init-method

I have two simple beans. In the first bean it calls a init-method and return string value. Now I want to this returned string from first bean init-method , inject to my second bean helloWorldBean3 property newKey. Please advise me on how to…
Kasun
  • 561
  • 11
  • 22
0
votes
1 answer

Spring 2.5 and quartz 1.6.2 how to use

in our project we use spring 2.5 and i cannot change it. At the same time this version has inbuilt quartz library version 1.6.2 and now I'm trying to crete some scheduled tasks using this inbuilt lib, but it doesn't seem to work, I also cannot find…
tania
  • 1,086
  • 2
  • 12
  • 31
0
votes
1 answer

How do I get a custom Spring 2 Authentication Provider to accept a UsernamePasswordAuthenticationToken?

In Spring 2, I've created a custom authentication provider, because I can't grab the password out of the database like Spring seems to prefer, because there's a black box in the way. When I try to authenticate, I get: No AuthenticationProvider…
AlbeyAmakiir
  • 2,217
  • 6
  • 25
  • 48
1
2