Note that there are some explanatory texts on larger screens.

plurals
  1. POEclipse Web-App Deployment with Tomcat: Providing multiple projects' dependencies?
    primarykey
    data
    text
    <p>I have a problem providing some third party librarys (JAR-files) I am using when deploying my dynamic web application with Tomcat 6 and Eclipse.</p> <p><em>Please note that I -do know- how to do this in a setup, where the web application project -directly- depends on those JARs.</em></p> <p>However, in my setup, I have two Eclipse projects:</p> <ul> <li><strong>core</strong> is a class library and depends on, lets say, <code>a.jar</code>.</li> <li><strong>web</strong> is the web application and depends on <strong>core</strong>.</li> </ul> <p>In the project settings of <strong>web</strong>, in the <em>Deployment Assembly</em> category, I have added <strong>core</strong>, so Eclipse (or Tomcat - I'm not quite sure who the responsible actor here is) is putting <code>core.jar</code> into the <code>libs</code> directory of my web application.</p> <p>The problem is: When I try out the web application, a <code>NoClassDefFoundError</code> is thrown when <strong>core</strong> accesses classes from <code>a.jar</code>. What am I supposed to do about this? I don't think that putting <code>a.jar</code> into the <em>Deployment Assembly</em> settings page of my web application is the right solution, since it should be of no relevance to the <strong>web</strong> project, what the <strong>core</strong> project depends on.</p> <p>Basically, I am looking for a way to configure Eclipse (Tomcat?) to 'embed' the dependencies of <strong>core</strong> into <code>core.jar</code>. The problem about this is, that <code>core.jar</code> is generated automatically, when I deploy my <strong>web</strong> project.</p> <p>Help is very appreciated. Thanks in advance!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload