facebook

Tomcat context

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #240494 Reply

    David
    Member

    I have an application that will be deployed on Tomcat.

    But the only way I can hit it on the url is :
    http://localhost:8080/project/pages/index.jsp

    How do I tell tomcat that when I type in http://localhost/index.jsp

    to resolve to the correct file? I was looking at the
    tomcat\conf\server.xml and added a context for
    <Context path=”/project” reloadable=”true” docBase=”project”
    workDir=”project” />

    but that didn’t seem to do the trick. I know I am missing something
    really fundamental here, so I would really appreciate any pointers you
    can throw my way.

    #240531

    Scott Anderson
    Participant

    First, undeploy your project from the configuration manager dialog you used to deploy it. Then, you can specify that the Web context-root is for deployment is ROOT for Tomcat by right-clicking on the project in the Package Explorer view and selecting Properties > MyEclipse-Web and entering it at the prompt. Redeploy your project. That should make the context http://localhost/pages/index.jsp.

    #240583

    David
    Member

    Thank you, I will try that. But is there anyway to make it resolve to just
    http://localhost/index.jsp without showing the pages directory? I thought there was some way to hide those project directory so that everything appeared to be off the localhost and not pages?

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Tomcat context

You must be logged in to post in the forum log in