Over a million developers have joined DZone.

WTP, Tomcat, .classpath and WEB-INF/lib


There has been a problem that the Eclipse / WTP / Tomcat publish does not inclulde copying/refreshing of the libs in the <module>/lib source onto the Tomcat server with WTP.

Modifying the component settings for your WTP project manually should fix this - at least it worked for me ;-)

InĀ file: ${PROJECT_DIR}/.settings/org.eclipse.wst.common.component

In this file add the libs to the wb-resources, on the next republish of your project, the libs should be included.

<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/test"/>
<wb-resource deploy-path="/WEB-INF/lib" source-path="/lib"/>
<property name="java-output-path" value="build/classes"/>
<property name="context-root" value="web"/>

Ref. Craigs posting http://www.eclipsepowered.org/eclipse/forums/t97736.html


The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}