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 3670006
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:18:43+00:00 2026-05-19T02:18:43+00:00

(Tomcat version 5.5, in case it matters.) I have a library in one of

  • 0

(Tomcat version 5.5, in case it matters.)

I have a library in one of my web applications that needs to be configured with a machine-specific license before use. I don’t want to put this library in shared/lib because at some point I may want to run multiple web applications with different versions of the library.

Right now the .jar files are stored in WEB-INF/lib. Thus, when I build the .war file and upload it to the server, the .jar file would still be the one bound to my PC. I would like to put a bash script somewhere in the webapp that Tomcat would automatically run when deploying the .war file – this script would then run the configuration script and bind the server’s license file to the .jar. Is this possible? Is there a nicer way of doing what I want?

  • 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. Editorial Team
    Editorial Team
    2026-05-19T02:18:44+00:00Added an answer on May 19, 2026 at 2:18 am

    You could create a ServletContextListener to do that in the contextInitialized() method. And from that listener you can run the “configuration script” directly, no other script required.

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

Sidebar

Related Questions

I have a tomcat instance setup but the database connection I have configured in
I have been using IntelliJ IDE (version 5.1) with Tomcat server (version 5.5) to
Tomcat (version 5 here) stores session information in memory. When clustering this information is
In tomcat 6 i have a servlet running openbluedragon, everything compiles and servers up
We use Tomcat to host our WAR based applications. We are servlet container compliant
I've got a tomcat 6 web app running with Apache httpd as the front
I have a simple servlet running in Tomcat. Because the servlet connects to a
I have a use case where my GWT application is running on a client
I have a zip file with the following structure apache-tomcat-6.0.26.zip apache-tomcat-6.0.26/webapps/manager I want to
I have the following input file that you might recognize as a debian Packages

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.