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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:32:47+00:00 2026-05-14T04:32:47+00:00

I am a bit puzzled by this strange behavior on CentOs 5.4 when starting

  • 0

I am a bit puzzled by this strange behavior on CentOs 5.4 when starting Tomcat 6.0 as a service

I’ve added a script at /etc/init.d/tomcat that can start/stop/restart Apache Tomcat 6.0 with user ‘tomcat’, and registered it as service. The problem with the service is that I am getting a ‘Neither the JAVA_HOME nor the JRE_HOME environment variable is defined’. But when type ‘sudo -u tomcat echo $JAVA_HOME’ I get ‘/usr/java/jdk1.5.0_22’ which is correct since I am using that JDK. What can I do about this?

  • 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-14T04:32:48+00:00Added an answer on May 14, 2026 at 4:32 am

    Have you tried forcing the JAVA_HOME env variable into the start script itself? Whenever I face a problem like this I find it a good troubleshooting technique to try and track down where it is losing this info by setting it in the scripts themselves.

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

Sidebar

Related Questions

I'm a bit puzzled by this strange artefact being left in my HTML -
I am a little bit puzzled as to how I can optimize my program
I'm no javascript wiz, but am a bit puzzled as to how this is
I'm a bit puzzled by this one. There are some methods in the Java
Good day, I'm puzzled a bit with this: In[1]:= f[x_]:=With[{xx=x},f[xx_]:=ff[xx]] DownValues[f] f[1] DownValues[f] Out[2]=
I am a bit puzzled reading this: Gcc 4.5 online manual --- Standards section
I'm a bit puzzled: From Cocoa Programming For Mac OS X (page 63, 3rd
I am a bit puzzled with my Regex results (and still trying to get
I'm a bit puzzled about the conditional operator. Consider the following two lines: Float
I'm doing simple divisions in c#, and I am a bit puzzled by its

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.