- This topic has 4 replies, 2 voices, and was last updated 16 years, 8 months ago by Lee Harrington.
-
AuthorPosts
-
Lee HarringtonMemberI 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
Loyal WaterMemberLee,
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 ?
Lee HarringtonMember@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
Loyal WaterMemberIn 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 ?
Lee HarringtonMember@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
-
AuthorPosts