Showing posts with label Eclipse Error. Show all posts
Showing posts with label Eclipse Error. Show all posts

Sunday, August 24, 2014

How to Fix Unbound Classpath Variable Error in Eclipse?

  1. Open the Eclipse Preferences [Window - Preferences]
  1. Go to [Java - Build Path - Classpath Variables]
  1. Click New and set its name as M2_REPO
  1. Click Folder and select your Maven repository folder. For example, my repository folder is C:/Users/Firman El Hakim/.m2/repository

Add M2_REPO Variable

  1. Done. Rebuild the Project.

How To Remove Javascript validation Error in Eclipse


  1. Right click your project
  2. Select Properties -> JavaScript -> Include
  1. Select Source tab (It looks similar to the Java Build Path Source tab)
  1. Expand source folder
  1. Highlight Excluded pattern
  1. Click Edit button
  1. Click Add button next to Exclusion patterns box.

  1. Click Browse button and select the JavaScript source by name.

How to Solve Servlet [DispatcherServlet]: org.springframework.web.servlet.DispatcherServlet was found, but is missing another required class.

Error Message: javax.servlet.UnavailableException: SRVE0203E: Servlet [DispatcherServlet]: org.springframework.web.servlet.DispatcherServlet was found, but is missing another required class. SRVE0206E: This error typically implies that the servlet was originally compiled with classes which cannot be located by the server. SRVE0187E: Check your class path to ensure that all classes required by the servlet are present.SRVE0210I: This problem can be debugged by recompiling the servlet using only the classes in the application's runtime class path SRVE0234I: Application class path=[C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\java\lib;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\java\lib\dt.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\java\lib\htmlconverter.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\java\lib\ibmorbtools.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\java\lib\jconsole.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\java\lib\tools.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\profiles\node-monitor-ear\classes;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\classes;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\EJBCommandTarget.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\IVTClient.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\OTiSConvertTime.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\activation-impl.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\aspectjrt.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\bootstrap.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\bsf-engines.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\cimgr.ops.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\commandlineutils.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\commons-discovery.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\databeans.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\ffdcSupport.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\htmlshell.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\installver.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\installxml.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\iscdeploy.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\ivblogbr.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\j2ee.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\jNative2ascii.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\jacl.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\jrom.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\jsf-nls.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\lib\launchclient.jar;C:\Program Files (x86)\IBM\SDP80\runtimes\base_v7\li

Solution :
Right click web project -> Deployment Assembly -> Add... -> Java Build Path Entry -> Select the jar files from M2 Repo.

mvn clean install


Redeploy the app and check again.