Problems 1
---------------
SEVERE: Servlet.service() for servlet [jsp] in context with path [/Image] threw exception [The absolute uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either web.xml or the jar files deployed with this application] with root cause
org.apache.jasper.JasperException: The absolute uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either web.xml or the jar files deployed with this application
Solution:
----------------
**************************************************************************************************************************************
Problems: 2
----------------
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'multipartResolver' defined in org.websparrow.config.WebMvcConfig: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.multipart.MultipartResolver]: Factory method 'multipartResolver' threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItemFactory
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:587)
Solution:
----------------
1. Upload the file Download commons-fileupload-1.3.jar it can be downloaded from. http://www.java2s.com/Code/Jar/c/Downloadcommonsfileupload13jar.htm
2. Add the folling lines in the pom.xml
<!-- for miltipart file makesure correct version here -->
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.2.1</version>
</dependency>
I did this and this completely solved the above issue.
Referenced Website:
----------------
https://stackoverflow.com/questions/5166898/java-lang-noclassdeffounderror-org-apache-commons-fileupload-fileitemfactory
**************************************************************************************************************************************
Problems 3
----------------
Exception in thread "main" java.lang.AbstractMethodError: Method com/mysql/jdbc/PreparedStatement.setBlob(ILjava/io/InputStream;)V is abstract
solution
----------------
mysql-connector-java-8.0.21 was download from the below links and add to the Spring jar Library
Referenced Website
----------------
https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.21/mysql-connector-java-8.0.21.jar
**************************************************************************************************************************************
Problems 4
----------------
SEVERE: Servlet.service() for servlet [dispatcher] in context with path [/spring-mvc-crud] threw exception [Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/io/output/DeferredFileOutputStream] with root cause
java.lang.ClassNotFoundException: org.apache.commons.io.output.DeferredFileOutputStream
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1365)
Solution:
----------------
Following lines were added in the pom.xml file.
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>1.4</version>
</dependency>
Solution:
----------------
https://stackoverflow.com/questions/11154252/how-to-solve-this-java-lang-noclassdeffounderror-org-apache-commons-io-output-d/20783186
**************************************************************************************************************************************
Problems : 5
----------------
The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
Solution:
----------------
The error was resolved by adding the following configuration in the pom.xml file
<!-- jstl library -->
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
Referenced Sites:
----------------
No comments:
Post a Comment