Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 185823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:32:20+00:00 2026-05-11T15:32:20+00:00

Tomcat Version :5.0.28 JDK: 1.5.0.14 The problem: I am using both hibernate and struts

  • 0

Tomcat Version :5.0.28 JDK: 1.5.0.14

The problem:

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.

The solution I have in mind:

Use manifest file and specify a different version of apache-commons for each

My web app is deployed as webapps\myapp

And the lib is webapps\myapp\WEB-INF\lib

I modified the Manifest.mf in hibernate3.jar as follows

Manifest-Version: 1.0

Archiver-Version: Plexus Archiver Created-By: 1.5.0_15-b04 (Sun> Microsystems Inc.) Class-Path: hibernatelib/slf4j-api-1.5.2.jar

and put the slf4j-api-1.5.2.jar in webapps\myapp\WEB-INF\lib\hibernatelib

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

The Question:

  1. Am I doing something wrong? or is it Tomcat ?
  2. Is there another solution to this problem ?

I have already tried\checked the following

  1. Checked for new-line characters at the end of the file
  2. 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
  3. Tried relative, absolute path in the manifest file
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T15:32:21+00:00Added an answer on May 11, 2026 at 3:32 pm

    The only place where the Class-Path attribute in the manifest is used is when the jar containing the manifest is called as an executable jar using (‘java -jar theFile.jar‘).

    Some servlet containers seem to support it, but according to this mailing list post (Sorry, couldn’t find anything more authorative so quickly) it’s not specified in the spec either.

    As far as I understand it, web applications generally load their classes using a single class loader. ‘Correctly’ solving that dependency problem would require at least 2 different classloaders.

    A hack-ish solution might be to use jarjar or a similar tool to package the different libraries together with their respective dependencies.

    So you’d produce one jar containing Hibernate together with its apache-commons library and another jar containing struts together with its apache-commons library. Each copy of the apache-commons library would be moved to different packages (possibly hibernate.org.apache.* and struts.org.apache.*) to solve the problem with different classe versions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use: netbeans 6.9.1, tomcat 5.5.33, 7.0 and 6.x.x(inbuild-netbeans), java 1.6.23(both jdk and jre).
I'm using dbcp connection pooling in tomcat (version 7) and I have a connection
Hi i have a tomcat server version 5.5.12 and i am using a filter,
I'm using solr version 1.4.0 with tomcat 6. I've 2 solr instances running as
Tomcat (version 5 here) stores session information in memory. When clustering this information is
I am running a Tomcat application, and I need to display some time values.
I've got (the currently latest) jdk 1.6.0.18 crashing while running a web application on
I want to copy war file to tomcat web-app directory using NSIS setup. I
I need to set up a legacy app that uses Tomcat 4 and runs
We are getting this error on starting tomcat (both as a service and via

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.