0
votes
1answer
18 views

How to map a list of items in url RequestMapping

I'm using Spring MVC 3.2 I need something like this (pseudo-code, note the []): @RequestMapping("/jpm/[{owners}/{ownersIds}/]{entity}/list") public ModelAndView doSomething( @PathVariable ...
0
votes
0answers
22 views

Spring driven unit tests with imported spring config files

I have my Spring configuration files broken out with a primary config file for high level things, and then category specific configurations broken out into their own config files. So my resources ...
1
vote
2answers
27 views

Hibernate, persisting ManyToMany

I'm trying to persist an addition to a list in an entity that have a many to many relationship with the other. My database is like this: CREATE TABLE book ( isbn VARCHAR(20) PRIMARY KEY NOT ...
0
votes
1answer
10 views

Spring MVC - Configuration : Cannot locate BeanDefinitionParser for element [default-servlet-handler]

i have a problem with Spring MVC. An exception BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionParser for element [default-servlet-handler]. If in the file ...
0
votes
0answers
25 views

Upgraded to Spring 3 and junit 11 - Context becoming null after running a test. No autowired bean available for the second test

I have a weird problem. After upgrading to Spring 3 and junit 11, the tests are not working as expected. When I run the tests individually from intellij everything works fine as expected. However on ...
0
votes
1answer
23 views

Spring property initialization of class

Good Morning, I'm required to make a static inner class to initialize the property of a bean. The problem is this bean is a generic class and is used in other areas where this property is not required ...
0
votes
0answers
24 views

Getting java.lang.ClassNotFoundException: javax.servlet.ServletContext in junit

I'm using spring mvc in my application and I'm writing junit test cases for a DAO. But when I run the test, I get an error java.lang.ClassNotFoundException: javax.servlet.ServletContext. In the ...
1
vote
1answer
14 views

Spring Security unable to generate/map default login page at /spring_security_login

I noticed if i mention a pattern or enter a RequestMatcher reference to the HTTP container, the spring_security_login default page isn't generated. I would like to know why. Is it expected that in ...
0
votes
0answers
11 views

Hibernate OneToMany mapping null, ManyToOne not null

Relevant parts of the code: @Filters({ @Filter(name = "tenantFilter") }) @RooJavaBean @RooToString @RooSerializable @RooJpaActiveRecord(table = "group_user", schema = "public", finders = { ...
0
votes
0answers
11 views

Spring Batch: Job dependencies

I need to save 3 files to DB: A, B, C. File B can not be inserted into DB before A, and file C can not be inserted before B. What would be the best approach to create dependencies between jobs?
0
votes
1answer
17 views

Error java.lang.ClassNotFoundException: org.springframework.orm.jpa.EntityManagerFactoryUtils only when guery didn't find any results

I'll post my code first. public boolean checkIfExists(String name, String surname) { Object m = null; entityManager.getTransaction().begin(); Query q = ...
1
vote
0answers
17 views

Clearing Wicket “Cache”/“Context” - Reloading Spring Context in Wicket

I have a wicket web application which mounts a page, allowing users to choose what "mode" the application should start in, i.e. mock for development purposes and production for testing/QA/prod ...
0
votes
1answer
20 views

How can I find a list of entities by multiple possible values (Using or in Spring Data)

I have a table of users and I want to get users of certain type (type 2 and type 3 for example). If I wanted to find by Type 2 , the repository interface would have a method List<User> user = ...
1
vote
4answers
39 views

Native sql query location

I have an Spring+Hibernate application. For some actions I need to use native sql. My question is where can I store sql queries. I don't want to hardcode them. I want to know existed approaches. I ...
0
votes
0answers
29 views

Which one is the best choice to proceeded when displaying successful creation of XML nodes?

I am storing my data on my XML file. And I want to display something after a successful addition of a data. I want it like this: You have successfully created User: John. But I am confused from where ...

15 30 50 per page