Maven dependencies Nature is not working in Eclipse

If you have enable the maven nature enables via eclipse and still 

All maven dependencies are not loading and its not showing up in the libraries then.

Add this entry in your classpath file of project .
Just after JRE entry in your classpath file.

1. Ctrl+Shift+R to open up resource .
2. search .classpath
3 .add entry after JRE.

<classpathentry kind=”con” path=”org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER”/>

176 total views, no views today

Exception java.lang.NoClassDefFoundError: net/sf/cglib/proxy/CallbackFilter

Caused by: java.lang.NoClassDefFoundError: net/sf/cglib/proxy/CallbackFilter
... 13 more
Caused by: java.lang.ClassNotFoundException: net.sf.cglib.proxy.CallbackFilter
at$ Source)
at$ Source)
at Method)
at Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 16 more


If you get this exception, that means that you are using the earlier version than Spring 3.2 and missing the libraries for CGLIB

Beginning Spring 3.2, all net.sf.cglib classes moved to org.springframework.cglib and inline them directly within the spring-core JAR. CGLIB is a Byte Code Generation Library is high level API to generate and transform Java byte code. It is a third part library now merged to the Spring framework itself.

154 total views, no views today

Exception at org.hibernate.cfg.OneToOneSecondPass.doSecondPass(OneToOneSecondPass)

You might end up with this exception while doing your one to one ,or many to one relationship in hibernate.

Exception in thread "main" java.lang.NullPointerException
at org.hibernate.cfg.OneToOneSecondPass.doSecondPass(
at org.hibernate.cfg.Configuration.secondPassCompile(
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(
at org.hibernate.cfg.Configuration.buildSessionFactory(
at com.javatpoint.Test.main(

To fix correct this exception Check following :

1. Your one to one mapping bean is pointing to correct column.
2. You have configured both table correctly.

Once you have correct these your exception will go away.

171 total views, no views today

Maven – Pom.xml Issues.

Maven — > pom.xml error resolution

Problem 1. Could not calculate build plan: Plugin org.apache.maven.plugins:maven-jar-plugin:2.3.2 or one of its dependencies could not be resolved.

Soultion :- 
1 . Just go to the path 


2.  Delete the plugin which is causing the issue .
3. In Eclipse clean and build your project again
4. choose Maven->Update Dependencies.

Problem 2 : Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.5 from/to central ( The operation was cancelled.

Solution :- 
Rightclick on your project in eclipse and choose Maven->Update Dependencies
Choose Force update of snapshot release.

178 total views, no views today

How to hot deploy your code on Remote Debugging.

Make sure you have check this.
1) If you run your application in eclipse using the launch configuration
Is your “Project” – “Build Automatically” flag enabled? If not, the code is not compiled and ignored at runtime.
Follow these steps to debug in Remote debug mode.
Go to :-
yourProject  –> Debug as –> debug configuration…
1 .DoubleClick on Remote java application 
2. Set port in the connect Tab.

click OK and select the appropriate project you want to debug. Click Ok and then click debug.

Hot deploy has supported the code changes in the method implementation only. If you add a new class or a new method, restart is still required.

You are done with the Hot Deploy of remote application.

173 total views, no views today