Showing posts with label No naming context bound to this class loader. Show all posts
Showing posts with label No naming context bound to this class loader. Show all posts

Wednesday, June 3, 2015

No naming context bound to this class loader


No naming context bound to this class loader

Problem :


We come across this common exception when i removed the project and re-imported it again in eclipse.

Exception I Encountered Was :


###################################################################################################################

No naming context bound to this class loader

###################################################################################################################

Solution :


I was using existing maven project in Eclipse. So i had to run a maven command to add the porject and then referesh the project to resolve it.
Please refer below to see how it was fixed.

Example :


- Follow these steps to resolve the exception :

1) Open DOS command prompt and navigate to your project folder where you have your pom.xml file. 2) Run the following command :
mvn eclipse:eclipse -Dwtpversion=2.0
3) Refresh the project in eclipse. 4) Now right click on server and select "add and remove" option, you should see your applicaion in the list to add. I hope this resolves your above exception / error, happy coding.


Similar Exception :

     

- No naming context bound to this class loader
- There are No resources that can be added or removed from the server
- How can I add my application to Tomcat in Eclipse?
- What needs to be done to add a project to a Server in Eclipse ?
- There are no projects that can be added or removed from the server