facebook

web.xml

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #284424 Reply

    I have an existing web app that I imported into MyEclipse via cvs (first time trying this). When I ran the app — it didn’t know what to do with it (sorry for the poor description).

    So I added “web project capabilities” — and it came up listing my files in the root directory, and I could navigate to and click on my index.jsp — not perfect but better.

    however, when I try to run something in my app it’s not finding sevlets. Which brings me back to my original issue. I _think_ the project is not pointing to or using the correct web.xml

    How can I set this? It would fix my startup page problem and my missing servlets as I know there is a web.xml that has all this info.

    Lee

    #284432 Reply

    Loyal Water
    Member

    Lee,
    Can you go to File > New > Project > Web project and create a new Web project. You should have the web.xml under WEB-INF. Now transfer your files to this project. Update the Web.xml as required. Does it work ?

    #284437 Reply

    @support-nipun wrote:

    Lee,
    Can you go to File > New > Project > Web project and create a new Web project. You should have the web.xml under WEB-INF. Now transfer your files to this project. Update the Web.xml as required. Does it work ?

    Yes, that worked — at least partially.

    My original app was named “webadd” and the new project is “WebAdd2”. the web.xml is being recognized — the startup page comes up fine — as do the servlets. Thing is — I have a lot of code that references “/webadd/<something else” — and now they don’t work, needing “/WebAdd2/….”

    I’m on a team so even if I were of the mind to change everything to WebAdd2 — that wouldn’t work with everyone else’s code.

    Stuck again,

    Lee

    #284438 Reply

    Loyal Water
    Member

    In that case use should switch to a new workspace and create a project named “webadd” and transfer your code to it.

    Was the original app created using MyEclipse ?

    #284453 Reply

    @support-nipun wrote:

    In that case use should switch to a new workspace and create a project named “webadd” and transfer your code to it.

    Ok. But is there a reason we can’t change this in an existing app?

    Was the original app created using MyEclipse ?

    No.

    Lee

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: web.xml

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