-->
Skip to main content

Posts

Showing posts from August, 2020

How to Change Port Number In Tomcat in 2021

How to Change Port Number In Tomcat in 2021 Everyday now and then developers face one problem that port 8080 is already in use thus we have to change the port number of our server, Today we will see how to change port number in tomcat. In the earlier tutorial, we have covered how to add tomcat server in eclipse . How to Change Port Number in Tomcat 1. How to Change Port Number in Tomcat Go to the directory where you have downloaded your tomcat server  For example : C:\Abhishek\Abhishek\java\servers\apache-tomcat-9.0.37 Now go to the conf folder   Apache Tomcat Server Path Now you will see server.xml file under conf folder as shown below Apache Tomcat Server XML Now opens the server.xml file and search for  port="8080" in server.xml file which will take us to this line.  Apache Tomcat Server Connector Port Now change the tomcat default port from 8080 to 9000 or any port you want above 7070 which is unique. Now this  will be lik e  Apache Tomcat Server C...

How to Add Tomcat Server in Eclipse in 2021

How to Add Tomcat Server in Eclipse in 2021 To run web application we need a server to deploy, today we will see how to add Tomcat Server in Eclipse . Earlier we have seen how to create maven web project in eclipse and how to create new maven project in eclipse . Lets Deep dive into our current tutorial  Tools Used: Maven: Required for dependency management in web application. Eclipse: IDE used for development Apache Tomcat Server: Server used to run the web application. JDK14: Language used to develop the application. How to Add Tomcat Server in Eclipse Step by Step Process Step 1: Download Apache Tomcat Server To configure Tomcat Server in eclipse we first need to download it from Apache Tomcat Website . We can download it by going to the  Apache Website . When we click on the link we land on this below page. Apache Tomcat Server Download We need to select tomcat from the core category and according to the window bit type we need to download a zip file, in my case, it'...

Solution : com.fasterxml.jackson.databind.exc.unrecognizedpropertyexception: unrecognized field

com.fasterxml.jackson.databind.exc.unrecognizedpropertyexception: unrecognized field XXX not marked as ignorable This is generic exception  com.fasterxml.jackson.databind.exc.unrecognizedpropertyexception: unrecognized field   XXX not marked as ignorable   people face while parsing JSON string to a custom object.  Exception Trace that comes is generally like com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "year" (class com.example.client.model.Vehicle), not marked as ignorable (4 known properties: "model", "vin", "make", "inventoryId"]) at [Source: [{"inventoryId":14279520,"vin":"abcdefghijklmnop","make":"Toyota","model":"Sienna","year":2011}]; line: 1, column: 95] (through reference chain: java.util.ArrayList[0]->com.example.client.model.Vehicle["year"]) at com.fasterxml.jackson.databind.exc.Unrecognize...

How to Create Maven Web Project in Eclipse in 2021

How to Create Maven Web Project in Eclipse in 2021 In this tutorial, we will see how to create maven web project in eclipse and how to run a maven web project in eclipse . In an earlier post, we have seen how to create new maven project in the eclipse . How to Create Maven Web Project in Eclipse Tools Used:  Apache Tomcat Server , JDK 14, Eclipse  2020-06, Maven. How to Create Maven Web Project in Eclipse Step by Step Step 1:  Create a New Web Project using Maven In this step, we will create a dynamic web project in eclipse with maven. Open Eclipse in your system and then Go to File > New > Maven Project as shown below. Create Maven Web Project in Eclipse Step 2: Select Maven Project Location and Archetype  In the Step, we need to select only Use Default Workspace Location checkbox and untick Create a Simple Project checkbox as we need to select archetype for creating a web project on the next screen. Project Workspace location and Archetype Step 3: Archety...

How to Create New Maven Project in Eclipse in 2021

How to Create New Maven Project in Eclipse in 2021 Today we will discuss how to create new maven project in eclipse step by step process. In today's world maven helps us in many ways. Gives us a single common place where we define our dependencies that is pom.xml thus all team members have the same dependencies and if anyone updates pom other people get the same version jar dependencies. Required jars downloaded from central maven repositories. Profile specific configuration access that is we can configure what needs to be used in dev and not in the test environment. Lots of plugins like maven-compiler-plugin,maven-war-plugins, build plugins, and many more which easy way of work. In the Recent Article, we have seen How to Create Maven Web Project in Eclipse . Now lets Deep dive into our current tutorial. How to create new maven project in eclipse Step by Step process Step 1: Create New Maven Project Open eclipse in your system and then click File > New > Maven Projec...