facebook

Problem configuring webapp deployment with htdocs.

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #227196 Reply

    odessa
    Member

    Eclipse 3.0.2, windowsXP
    myEclipse 3.8.4
    Appserver Resin 3.0.10

    My web app project structure is:
    WebPrj
    —htdocs
    ——Forward.jsp
    —src
    ——com
    ———-test
    ————-servlet
    —————–TestServlet.java

    When I deploy, classes get deployed to c:\resin\deploy\WebPrj\WEB_INF folder, and htdocs goes to c:\resin\deploy\WebPrj\htdocs.

    The problem is that in servelet I redirect to Forward.jsp and get an IOException that this file is not found. Also, if I hit in the browser http://localhost:8080/WebPrj/, i get a page with a link to htdocs.

    My questions are
    1. how do I configure that requests to http://localhost:8080/*.jsp to go http://localhost:8080/WebPrj/htdocs/*.jsp
    2. redirects from sevlet to Forward.jsp goes to http://localhost:8080/WebPrj/htdocs/Forward.jsp.
    3. Can I do this configuration so that it’s app server independant? Like in web.xml as opposed to resin.conf.

    I tried some settings in resin.conf with <web-app> tag, but was unsuccessful.

    Thank you.

    #227208 Reply

    Riyad Kalla
    Member

    1) These are two different web apps, the one at the root level is called the “ROOT” web app, and you want to redirect it to your WebPrj webapp. You can try and do a <jsp:forward /> and see if that works from your ROOT app in an index.jsp file.

    2) What TYPE of project is this in Eclipse? If you right click on the root and go to Properties, do you see a “MyEclipse-Web” panel? What are the values in the fields? If you do not, you NEED to make this a Web Project by right clicking on it > MyEclipse > Add Web Capabilities, then you need to set your WebRoot folder to “/htdocs”

    3) I believe so.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Problem configuring webapp deployment with htdocs.

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