Over a million developers have joined DZone.

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

DZone's Guide to

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

· ·
Free Resource

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


Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}