Tuesday, July 8, 2014

Caused by: java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource

Exception :- 
Caused by: java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource


First ensure that you have included commons-collections and  commons-dbcp jar in classpath. Click here to download
commons-collections and  commons-dbcp jar

If you are using maven then add following dependency in pom.xml 

<dependency>
    <groupId>commons-collections</groupId>
    <artifactId>commons-collections</artifactId>
    <version>3.2.1</version>
</dependency>


<dependency>
    <groupId>commons-dbcp</groupId>
    <artifactId>commons-dbcp</artifactId>
    <version>1.4</version>
</dependency>


org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource

Exception :-
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/demo-servlet.xml]; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:412)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReade

First ensure that you have included aopalliance jar in classpath. Click here to download aopalliance-1.0.jar 

If you are using maven then add following dependency in pom.xml
 
<dependency>
    <groupId>aopalliance</groupId>
    <artifactId>aopalliance</artifactId>
    <version>1.0</version>
</dependency>

Friday, July 4, 2014

java.lang.ClassNotFoundException: javassist.util.proxy.MethodFilter

Exception :- 
Caused by: java.lang.ClassNotFoundException: javassist.util.proxy.MethodFilter 
Caused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer] 
Caused by: org.hibernate.MappingException: Could not get constructor for org.hibernate.persister.entity.SingleTableEntityPersister 


First ensure that you have included javassist jar in classpath. Click here to download javassist jar 

If you are using maven then add following dependency in pom.xml
<dependency>
    <groupId>javassist</groupId>
    <artifactId>javassist</artifactId>
    <version>3.12.1.GA</version>
</dependency>

 

Thursday, July 3, 2014

java.lang.NoClassDefFoundError: Lorg/apache/commons/logging/Log

Please ensure that you have included standred.jar in classpath. Click here to download  standred.jar - See more at: http://makecodeeasy.blogspot.in/2014/07/javautilconcurrentexecutionexception.html#sthash.0Um7PGLr.dpuf
Exception :- java.lang.NoClassDefFoundError: Lorg/apache/commons/logging/Log

First ensure that you have included commons-logging-xxx.jar in classpath.
Click here to download 
commons-logging-xxx.jar

If you are using maven then add following dependency in pom.xml
<dependency> 
    <groupId>commons-logging</groupId> 
    <artifactId>commons-logging</artifactId> 
    <version>1.1.1</version> 
</dependency>
The Commons Logging provides a Log interface that is intended to be both light-weight and an independent abstraction of other logging toolkits. It provides the middleware/tooling developer with a simple logging abstraction, that allows the user (application developer) to plug in a specific logging implementation.

java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]

Exception :- java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina]

Please ensure that you have included standred.jar in classpath.
Click here to download  standred.jar

If you are using maven then add following dependency in pom.xml
 <dependency>  
   <groupId>taglibs</groupId>  
   <artifactId>standard</artifactId>  
   <version>1.1.2</version>  
 </dependency>  

standard.jar (taglib) library is used to enable the JSTL expression language in JSP page, and it’s always used together with the jstl.jar together.
 
 <dependency> 
    <groupId>taglibs</groupId> 
    <artifactId>standard</artifactId> 
    <version>1.1.2</version> 
</dependency> 

ShareThis