Please add code tags to your post where appropriate.
This thing works for me, as stated in previous posts. If it is of any help to you, here are all the JARs in my classpath:
antlr-2.7.6.jar...
Type: Posts; User: gonzus; Keyword(s):
Please add code tags to your post where appropriate.
This thing works for me, as stated in previous posts. If it is of any help to you, here are all the JARs in my classpath:
antlr-2.7.6.jar...
This is exactly why I mentioned getting the example and building it with maven. It will make sure you have a consistent set of JARs that work (and you will be able to test that by running the unit...
The most common cause for this problem is mixing different versions for the Spring JARs. Other than that, I know that some missing JARs are only detected at run time and can cause this exception.
...
Hello Grzegorz,
Thanks for your well reasoned answer, it provides a lot of food for my thoughts.
Fair enough.
This discussion covers exactly my own doubts. I have been using Spring MVC to implement several REST services, and deploy those on Jetty, which is very lightweight. Everything works like a charm and...
I came to this thread with a similar symptom, which I solved on my own, and wanted to share the answer in case it can help someone else.
I found two instances of (apparent) double initialization:...
Any updates on this? I am working with Spring Data 1.0.0.M1, Postgres 9.0 and postgresql-8.4-702.jdbc4.jar. I thought I would be able to map a java.util.UUID field in my entity directly into a...
I have worked this out. Here is what I did:
Declare a CarRepositoryCustom interface that has a bunch of methods, including those where I want to use native SQL.
Declare a CarRepositoryImpl...
I continue using Spring Data JPA more and more. Maybe this question is a little more advanced...
I have a stored procedure in my Postgres database that is called to add a new record to table Car....
Thanks for all the hints. That last one by Oliver was the one that solved it for me. I also printed the Spring Data reference and am reading it right now.
I am loving Spring Data (JPA) / Hades. I...
I have created a repository CarRepository that extends JpaRepository<Car, Long>. I also have a test where I declare a member variable of type CarRepository and tag it as @Autowired. The test runs...
I just wanted to report that I found the cause for this exception: I was missing the spring-data-commons-core JAR in my classpath.
Thanks for all the help and best regards.
Sorry, I mistyped. Those two files come from the 3.6.2 Hibernate zip. Are you suggesting I should use a different version of Hibernate? Since v4 is not released yet, I think I would have to stick...
I am using hibernate-jpa-2.0-api-1.0.0.Final.jar and hibernate3.jar. Both come from the final 3.2.6 Hibernate distribution.
I have uploaded a full stack trace and a full library list here.
...
Hello, first post here.
I have followed the very well written blog entry Getting started with Spring Data JPA. When trying to run my unit tests, I am getting a Failed to load ApplicationContext...