Thursday, November 25, 2010

Separate Util project from Web project in Tomcat

In Tomcat environment, there is no Ear project that we can add util jars into association.

Here is what you need to do to get util jar into classpath.

Right click on web project, select properties, select “Deployment Assembly” tab, click Add…,  select Project, find the util project, click finish.

You can rename the jar name in Deploy Path column.

 

This will make your util project started with your web project in Tomcat server.