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 : http://forum.springsource.org/showthread.php?136861-vfabric-server-2-6-1-crashes-periodically-shows-java-lang-outofmemory-error Above link contains some details of changes I made in setenv.sh 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.