Skip to main content

Making a web application compatible to Eclipse


Follow the below procedure to make a web application compatible to Eclipse so that the project can be debug and run from local eclipse.

Import the existing project, File -> import -> General -> Existing Projects into workspace

Right click on the project and select Properties 

·         Click on “Project Facets” option and check in “Dynamic web module” property and select a version of it. Once it is selected, at the bottom of the window you will see a link “Further Information”. If you click on this, it will show the default web directory. Click on ok.


And again right click on the project and select Properties
·          
      Check the Context path of the application how the application path should be in the URL

 ·         Click on the “Deployment Assembly” option and check how the files are copied to server. Check the deployment paths of each folder and files whether they are copied correctly to the server. And also make sure whether it contains the libraries to be copied to the server. It will copy the dependent library files to WEB-INF/lib path.

·         Go to “Build Path” option and Check the Library tab whether it contains all required libraries.

·         To set environment variables like Config mode or logs path, go to Run -> Run Configuration -> Apache Tomcat -> Tomcat v5.5 server at localhost -> Arguments
o   In the VM arguments field, append the variables
o   For ex:  -D<variable name>=<value>
 -DLOGDIR:-logs=logs


Visit articles page of the website learningmela.com for more details.

Popular posts from this blog

Fun Facts

Do you want to improve your knowledge? Do you want to impress friends with some facts? Then Fun Facts app is for you. "Fun Facts" is an android app shows some quotes which are funny but real facts. Install the app @  https://play.google.com/store/apps/details?id=com.sonuappz.funfacts

Java Program to use LDAP server

The below is a java program to demonstrate how to use the LDAP server connection to validate a user authentication. To check the authentication using LDAP server we required the user id and its password. We need to create a context to the LDAP server before connecting to it. And also we required to know the field names in the LDAP server.   Click here   to know more about the project.    Visit  Projects  page of  learningmela.com  to download more projects.

Java program to create PDF files

The below is a program to create a PDF text file in Java language.   This program reads a line of text from user and the text will be written to a pdf file. The pdf file name also be taken from the user input. This is a console java program.   Click here   to know more about the project.    Visit  Projects  page of  learningmela.com  to download more projects.