-->
Skip to main content

Posts

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...