Saturday, 22 June 2013

java.lang.classnotfoundexception org.hibernate.annotations.entity

java.lang.classnotfoundexception org.hibernate.annotations.entity
 
Add this jar file
 
hibernate-annotations.jar  

Sunday, 16 June 2013

java.lang.IllegalStateException: Failed to load ApplicationContext

TRY this 
@ContextConfiguration(locations = { "/applicationContext.xml",
                                    "/applicationContext-test.xml"})

The attribute value is undefined for the annotation type ContextConfiguration

try this

@ContextConfiguration(locations = {"/applicationContext.xml"})

ROMANTIC GUITAR MUSIC Relaxing Instrumental

http://www.youtube.com/watch?v=njBOWJwTHvY

The import org.springframework.test cannot be resolved

The import org.springframework.test cannot be resolved

 

import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import org.springframework.test.context.ContextConfiguration;

 

 

Add this to resloved this 

 

spring-test-2.5.4.jar

 

 

http://www.jarfinder.com/index.php/java/info/org.springframework.test.context.ContextConfiguration

import org.custommonkey.xmlunit.XMLAssert;

add this jar file

MAVEN2
 http://mirrors.ibiblio.org/pub/mirrors/maven2/xmlunit/xmlunit/1.0/xmlunit-1.0.jar
OR
 http://www.findjar.com/jar/xmlunit/xmlunit/1.0/xmlunit-1.0.jar.html?all=true

Choose unique values for the 'webAppRootKey' context-param in your web.xml files!

Sovled this err by using
 Add this in web.xml file
<context-param>
<param-name>WEBAPPROOTKEY</param-name>
<param-value> Unique ID </param-value>
</context-param>

 

 For this kind of error


java.lang.IllegalStateException: Web app root system property already set to different value: 'webapp.root' = ....... instead of .....................- Choose unique values for the 'webAppRootKey' context-param in your web.xml files!
    at org.springframework.web.util.WebUtils.setWebAppRootSystemProperty(WebUtils.java:144)
    at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:117)
    at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:45)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)