Monday, July 23, 2012

eclipse: deploying classpath jars into tomcat container

Aaaah! this is a big pain.. u will have all jars in classpath, and when u say run as server they dont get copied to the server. the Fix is simpl ( eclipse should have taken care of it by default.. however.. ).

  1. click on the poject,
  2. press ctrl + enter.
  3. Now u see a properties window of the project
  4. search for deployment assemble and click on it.
  5. Now in web-deployment assembly plane click on add button
  6. select java build path entities
  7. click on next. now select all jars (ctrl + a); then OK
  8. now click finish.

Deploy the stuff on tomcat and u will see classpath entities are being copied to the server


No comments:

Post a Comment