Monday, June 6, 2016

Eclipse Issues

Issue: 
"Java compiler level does not match the version of the installed Java project facet."

Resolution:
Go to project >> Properties >> Project Facets and change the facets to required java version

Issue:
Unbound classpath container: 'JRE System Library' in project 'XYZ'

Resolution:
Go to Project >> build path >> Configure Buildpath >> Libraries >> Add Library >> JRE System Library >> Select an existing library

Issue:
"Cannot change version of project facet Dynamic Web Module to 3.0"

Resolution:
Change the attributes of web-app tag in web.xml file of the project to point to module 3.0


Issue:
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

Resolution:
Add the dependency for java servlet api to the classpath

Issue:
How to enable to write mult-line string in eclipse

Resolution:
Go to Windows >> Preferences >> Java >> Editors >> Tying and Make sure that check box "Escape text when pasting into a string literal" is checked

Issue:
Warning message in an XML file "No grammar constraints (DTD or XML Schema) referenced in the document."

Resolution:
Just add <!DOCTYPE xml> below the tags <?xml version="1.0" encoding="UTF-8"?>

Issue:
While compiling maven project getting exception "Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project {project name}: Compilation failure: Compilation failure"

Resolution:
Go to pom.xml and remove <scope>test</scope> all the dependencies.

Issue:

Resolution:



No comments:

Post a Comment

SpringBoot Application Event Listeners

When a spring boot application starts few events occurs in below order ApplicationStartingEvent ApplicationEnvironmentPreparedEvent Applicat...