Note that there are some explanatory texts on larger screens.

plurals
  1. POTomcat cant pick class-path from Manifest file
    text
    copied!<p>Tomcat Version :5.0.28 JDK: 1.5.0.14</p> <p><strong>The problem:</strong></p> <p>I am using both hibernate and struts We are not on the latest and greatest of the version for these libraries So- both need a different version of apache-commons library.</p> <p><strong>The solution I have in mind:</strong></p> <p>Use manifest file and specify a different version of apache-commons for each</p> <p>My web app is deployed as webapps\myapp</p> <p>And the lib is webapps\myapp\WEB-INF\lib</p> <p>I modified the Manifest.mf in hibernate3.jar as follows</p> <blockquote> <p>Manifest-Version: 1.0</p> <p>Archiver-Version: Plexus Archiver Created-By: 1.5.0_15-b04 (Sun> Microsystems Inc.) Class-Path: hibernatelib/slf4j-api-1.5.2.jar</p> </blockquote> <p>and put the slf4j-api-1.5.2.jar in webapps\myapp\WEB-INF\lib\hibernatelib</p> <p>Now I would expect that slf4j-api-1.5.2.jar would be loaded automatically along with hibernate But its not working... Tomcat is unable to find the jar files specified in the .MF as above</p> <p><strong>The Question:</strong></p> <ol> <li>Am I doing something wrong? or is it Tomcat ?</li> <li>Is there another solution to this problem ?</li> </ol> <p><strong>I have already tried\checked the following</strong></p> <ol> <li>Checked for new-line characters at the end of the file</li> <li>If I put slf4j-api-1.5.2.jar in the main lib folder- the error goes away- so I know its not able to find this particular jar file</li> <li>Tried relative, absolute path in the manifest file</li> </ol>
 

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