[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Re: Change dynamic web project settings after creation

Markus Fischer wrote:
Hi,

On 9/6/09 3:10 PM, Markus Fischer wrote:
I've checked out the project as nature Dynamic Web Project, but I don't
know how/where to tell the tomcat installation what of the checkout to
consider part of the web application.

Whenever I try to start one of the servlets I get a 404 in tomcat. Under
  src/webapp/web/ is index.jsp. When I right click and choose "Run As" it
doesn't show me the "Run on server" option (I need to configure them,
but a tomcat configuration is present).

I (think) found the settings in .settings/org.eclipse.wst.common.component of the project, but I'm unsure about the specific things to change manually and I can't find the UI dialog to change a the web application folder *after* creating a project.

Can someone help me?

thanks,
- Markus

UI isn't currently available for modifying the "component" file. You can review Bug 277482[1] for what might be coming in WTP 3.2. You have likely figured out what to do by now. But to complete the thread, the following <wb-resource> element would map the index.jsp to show up in the root of the webapp:


    <wb-resource deploy-path="/" source-path="/src/webapp/web"/>

Cheers,
Larry

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=277482