This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Learn Java with Math: Using Fun Projects and Games and have Ron Dai on-line!
See this thread for details.
Win a copy of Learn Java with Math: Using Fun Projects and Games this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Some problem Spring-Jpa-maven, causing java.lang.outofmemory error..

Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hii all,
I am new to spring, I am developing a project which uses Spring, Spring-MVC, JPA. And I am developing my project in layers, Jpa-layer, Dao-layer, service-layer above these layers I am using spring-mvc.
I am using spring tool suite 2.8.1 which has vfabric server 2.6.1, The trouble started after I started development in MVC part of my application. It shows weird error saying Its unable to build my appserverPU (persistence unit) now I managed to solve this trouble by providing import of application-context.xml inside servlet-context.xml. All my xmls are under the META-INF folder ( I am using MAVEN project structure with Maven in sts.) I don't know weather its ok to do so or not.
Here is the link for above question which I posted with more details :

After solving this in this way (don't know right or wrong, but its working) I started my vfabric server it runs fine but when I make changes to any of my controller class it reloads the application and I get java.lang.outofmemory error, I searched over the internet and found a solution and implemented it. But still this error keeps on coming but not after 3-4 reloads but after 8-9 reloads.. I don't know whats wrong I want to know and I want to solve it. before posting here I posted these questions to stackoverflow and spring forum but didn't get any reply. Hope to get some reply here.
I am posting the link of both the questions here :
Spring forum :
Above link contains some details of changes I made in to remove the java.lang.outofmemory error.

and following link contains some stacktrace of my error : its way to big and hence I couldn't upload it at once.
A lot of people cry when they cut onions. The trick is not to form an emotional bond. This tiny ad told me:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!