I’ve created a new J2EE Web Module project under the default area. From there, I deleted the ‘Java Source’ and ‘Web Root’ directories, and created new ones (with the same names) as linked directories to where my local copy of the code within our source control package. Eclipse is fine with this, compiling as normal. However, when I go to deploy the code to the application server, I get an exception (which I pulled from the log):
Deployment descriptor: C:\Program Files\eclipse\workspace\myapp\Web Root\WEB-INF\web.xml does not exist.
at org.apache.tools.ant.taskdefs.War.setWebxml(War.java:121)
at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer.privExportWebProject(Unknown Source)
at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer.exportWebProject(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.DeploymentPackager.exportWebProject(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.WebDeployment.deployAsPackageArchive(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizard$1.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
It seems that myeclipse is looking for the web.xml file assuming that the ‘Web Root’ directory is always under the project directory. Is it possible that myeclipse could also take into account whether or not the top level project directories have been linked in from somewhere else?
Steve