Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Deploy project on tomcat start without project name

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 364
    Comment on it

    When we deploy project in tomcat, by default its run as

    http://<ip>:8080/warname/index.jsp
    

    But when we use domain name and wants that on running tomcat automatically the projects main page is opened, we simply need to add following entry in conf/server.xml

    <Host name="localhost"  appBase="webapps"
                unpackWARs="true" autoDeploy="false">
    
    <Context path="/" docBase="warname" debug="0" reloadable="true"></Context> /*without writing .war*/
    
    </Host>
    

    It will directly open your project when you write http://localhost(domain-name)/

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: