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

  • Home
  • SEARCH
  • 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 373175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T14:16:58+00:00 2026-05-12T14:16:58+00:00

Initially I had a webapp called admin running fine, deployed inside the $CATALINA_HOME/webapps/ directory

  • 0

Initially I had a webapp called “admin” running fine, deployed inside the $CATALINA_HOME/webapps/ directory of tomcat 6. Now I tried setting up a vitual host to run this webapp.

Step1: I added the following in $CATALINA_HOME/conf/server.xml

<Host name="mysubdomain.domain.com" appBase="keshav">

</Host>

Step2: I created a folder $CATALINA_HOME/keshav

Step3: Created the ROOT context as $CATALINA_HOME/keshav/ROOT

Step4: Moved my “admin” webapp (which was inside $CATALINA_HOME/webapps/) to $CATALINA_HOME/keshav

Now when I access http://mysudomain.domain.com/admin/jsp/login.jsp, it WORKS fine bringing up the login page. But when I try accessing http://mysubdomain.domain.com/admin/Login.do or any other struts action it gives me 404 error-

“HTTP Status 404 – Servlet action is not available”

In the catalina.out file I get the message “INFO: Servlet action is currently unavailable”

Can anyone please help me figure out what is wrong in this config?

UPDATE: I also had changed the connector port from 8080 to 80. Since opening 80 port requires root privileges, I am starting tomcat using sudo (the user that I am using is in the sudoers list).

Whenever I run tomcat with sudo, the 404 error for struts actions are occuring. If I change the connector port from 80 to 8080 and start without using sudo, the virtual host is working fine..

If I su to root and start tomcat, it is working fine as well. Using sudo seems to be causing this problem..

  • 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-12T14:16:58+00:00Added an answer on May 12, 2026 at 2:16 pm

    This is typical of ActionServlet. It maps all exception to UnavailableException so you always get “unavaiable” error even if the servlet is dead. There should be other information in log to show you the exact cause.

    When you run the server in sudo, the environment changes. Maybe struts config relies on some environment variable or default working directory?

    Try “sudo -s catalina.sh“. It may help.

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

Sidebar

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.