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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:42:39+00:00 2026-05-31T10:42:39+00:00

I am inheriting a project and (per the other developer’s instructions) overwrote my Tomcat’s

  • 0

I am inheriting a project and (per the other developer’s instructions) overwrote my Tomcat’s version of catalina.bat with his (he’s using the same version). I then tried to restart Tomcat and got an exception relating to the commons-logging.jar, which is a Tomcat dependency.

After a lot of frustration, I just downloaded a different version of Tomcat and tried running it right out of the box (no configuration)…and I got the same error!

So I asked this question on SO a few days ago. The consensus was that my classpath had somehow gotten “dirty”, and now I’m wondering if the catalina.bat file I blindly copied over somehow set environmental variables that is affecting Tomcat’s ability to bootstrap – even across versions.

I know this question is similar to the other one I asked but is different. Whereas my first question was “what’s wrong here” and was much more general, what I am asking now (although related), is more specific and is about catalina.bat and how it relates to Windows 7 environment variables.

Thanks for any help here.

Edit: I see this question already has a closevote for being “off topic”. My argument against that is as follows: SO is a programming Q&A site for asking specific questions related to code and programming. catalina.bat is a script, which is code, and this question concerns itself with a potential bug/defect in a script that I am using.

Edit: Found the line in catalina.bat where the error message is coming from (and, likewise, where Tomcat startup is dying from). It’s is line (from 7.0.19’s unchanged version):

%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs=”%JAVA_ENDORSED_DIRS%” -classpath “%CLASSPATH%” -Dcatalina.base=”%CATALINA_BASE%” -Dcatalina.home=”%CATALINA_HOME%” -Djava.io.tmpdir=”%CATALINA_TMPDIR%” %MAINCLASS% %CMD_LINE_ARGS% %ACTION%

I was able to place echos in the script and obtained the following values:

JAVA_OPTS = -Djava.util.logging.config.file="C:\Program Files\Apache\apache-to
mcat-7.0.19\conf\logging.properties" -Djava.util.logging.manager=org.apache.juli
.ClassLoaderLogManager
CATALINA_OPTS =
DEBUG_OPTS =
JAVA_ENDORSED_DIRS = C:\Program Files\Apache\apache-tomcat-7.0.19\endorsed
CLASSPATH = C:\Program Files\Apache\apache-tomcat-7.0.19\bin\bootstrap.jar
CATALINA_BASE = C:\Program Files\Apache\apache-tomcat-7.0.19
CATALINA_HOME = C:\Program Files\Apache\apache-tomcat-7.0.19
CATALINA_TMPDIR = C:\Program Files\Apache\apache-tomcat-7.0.19\temp
MAINCLASS is org.apache.catalina.startup.Bootstrap
CMD_LINE_ARGS =
ACTION = start

JAVA_OPTS has my full attention with the logging.properties and ClassLoaderLogManager entries. Does this mean anything to anyone?!?

  • 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-31T10:42:41+00:00Added an answer on May 31, 2026 at 10:42 am

    you can set the environment variables in any batch file, including catalina.bat. But these changes stay only in the current running environment and will not affect all the other running environments.

    For CLASSPATH, look in the corresponding batch files if you see something like set CLASSPATH= which give you information about the classpath being set.

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

Sidebar

Related Questions

I am inheriting this project from a previous developer and I'll try to be
I am inheriting a project involving a Java web app whose backend is powered
I have all my views in a project inheriting from a ViewBase class that
I have an MVC3 project I created using the Code First paradigm and it
I created a Label control inheriting from Label WebControl in CustomLabel.vb in my project
In the near future, I will be inheriting a somewhat large project. I've been
I'm inheriting a project that has, until now, had all its artifacts maintained in
I'm inheriting a project and have to run an Apache web server (2.2.22) on
I'm looking at a db schema for a project I'm inheriting. There are many
In my project I have a class that is inherited by many other classes.

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.