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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:05:48+00:00 2026-05-17T19:05:48+00:00

I got some issues to deploy my application. Environment: Ubuntu 10.04, Tomcat 7.02 (Install

  • 0

I got some issues to deploy my application.

Environment: Ubuntu 10.04, Tomcat 7.02 (Install from archive from tomcat site, not from repositories), server is run and stoped manualy, not using any IDE.

For the first I’ve created host in $CATALINA_HOME/conf/server.xml:

<Host name="java.dev"  
      appBase="/home/krasilich/java/"  
      autoDeploy="true" >  
    <Alias>www.java.dev</Alias>  
</Host>

Then create a context in $CATALINA_HOME/conf/Catalina/java.dev/siloc.xml:

<Context docBase="siloc/web/" />

And got the error

A docBase /home/krasilich/java/siloc/web/ inside the host appBase has been specified, and will be ignored

But, if I copy manager.xml to $CATALINA_HOME/conf/Catalina/java.dev/ I can run manager app.
If I deploy my application through manager – it says that everything is going well, but I still see the 404 on java.dev:8080/siloc/

That’s all about custom host.

I’ve tried to deploy application through manager on localhost also and it works, I can see my “Hello Word” on localhost:8080/siloc/

But, if I change the text in my index.jsp it’ll not affected on frontend. The “Redeploy” button isn’t help for me.

As I mentioned manager just copy application files to webapps directory, and don’t make any changes in config files.

All I need that I can deploy application in any directory in my filesystem (actually it will be /home/krasilich/java/).

And it would be great if I can do this on custom host like java.dev
I need the answer, why the context in $CATALINA_HOME/conf/Catalina/java.dev/siloc.xml isn’t working for me, and what shall I do to make it consistent?

Thanks.

  • 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-17T19:05:48+00:00Added an answer on May 17, 2026 at 7:05 pm

    I have been able to replicate your problem.

    There are 2 workaround I can suggest after tinkering around with combinations of appBase and docBase. Looks like the two do not operate together.

    Option 1 – remove appBase

    Remove the appBase from server.xml and specify the full path to the web app in docBase in the $CATALINA_HOME/conf/Catalina/java.dev/siloc.xml

    I assume your value will be /home/krasilich/java/siloc/web/siloc.

    Note: specifying only up to the parent folder /home/krasilich/java/siloc/web/ will show you a directory listing of the parent folder

    Option 2 – Remove docBase

    In $CATALINA_HOME/conf/Catalina/java.dev/siloc.xml

    remove the docBase and keep only <Context/>

    Tomcat infers the webapp name siloc from the $CATALINA_HOME/conf/Catalina/java.dev/siloc.xml and it looks for the webapp named siloc in the appBase.

    This allows java.dev:8080/siloc/ to work provided you also change the appBase in server.xml to the parent folder of your webapp siloc.

    In response to why manager works, same reason – there is no docBase in the manager.xml

    I am trying other combinations of docBase but any value I give throws the

    WARNING: A docBase … inside the host appBase has been specified, and will be ignored

    So my conclusion is to remove the docBase. This is not a good idea – since the full path to parent folder is then hardcoded in server.xml.

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

Sidebar

Related Questions

I was testing my mobile application, with Windows mobile.I got some issues with the
I'm working on an ASP.NET MVC 3 application and having some issues. I've got
Coming from an OOP background, I've got some issues with the concept of immutable
I try to do static class, add to icollection but i got some issues
Got some code that is not mine and its producing this warning atm: iehtmlwin.cpp(264)
got some problems deploying a java web application on jboss 7.1... Stepped through the
I've got some issues on scripting... if someone could help me, it would be
I had some issues along with others, loading Tomcat 7.0.22.0 with NetBeans on packaged
I have got some issues using the DAGLayout algorithm of JUNG and subsequently reading
I've got some performance issues in my Excel Workbook. I've got 2 different worksheets:

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.