| Summary: | Running Tomcat in debug mode fails to deploy properly with multiple projects | ||
|---|---|---|---|
| Product: | [WebTools] WTP Java EE Tools | Reporter: | David Newcomb <david.newcomb> |
| Component: | jst.j2ee | Assignee: | Kaloyan Raev <kaloyan> |
| Status: | CLOSED WORKSFORME | QA Contact: | Chuck Bridgham <cbridgha> |
| Severity: | major | ||
| Priority: | P3 | CC: | ccc, deboer, jsholl |
| Version: | unspecified | ||
| Target Milestone: | 3.0.4 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
David Newcomb
David - I suspect the problem is that you haven't added the dependency from the Web module to the utility projects correctly. On the Web project, go to Properties and then Java EE Module Dependencies and make sure that the utility project is selected. This is how the server knows that the utility module is meant to be packaged up as a web library at runtime (and is not a build-time only dependency or one that you're putting on the server's global classpath). There are several places where you can add dependencies. The primary (web) project has a project reference to the secondary, but the secondary doesn't have a reference to the primary (which is fine).
I selected my primary project (sitemanager) and went to the "Java EE Module Dependencies" and added the secondary project (dino_common). Eclipse asks to check out sitemanager\.settings\org.eclipse.wst.common.component and everything appears to work. However if you go back into "Java EE Module Dependencies" the secondary project is unchecked and the file sitemanager\.settings\org.eclipse.wst.common.component is unchanged.
After _a lot_ of fiddling I can not get the second project to stay checked.
I figure that the org.eclipse.wst.common.component file holds all the goodies and it currently contains:
<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="sitemanager">
<wb-resource deploy-path="/" source-path="/src/main/webapp"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/test/java"/>
<property name="java-output-path"/>
<property name="context-root" value="sitemanager"/>
</wb-module>
</project-modules>
I really need a work-around otherwise it is back to exporting to jars :(
Ok, agree it should stay set, and that appears to be the problem here. Transferring bug over to the Java EE team, which owns this property page. Kaloyan - I remember a similar problem being handled/discussed at the shutdown of 3.0.3... isn't this a duplicate of a bug SAP owns? David, which version of WTP do you use? I cannot reproduce your problem (I refer to comment #2) neither with WTP 3.0.2 (Ganymede SR1), nor with WTP 3.0.3. I am using: Vanilla Ganymede SR1 Version: 3.4.1 Build id: M20080911-1700 With plugins: Spring IDE (SpringFramework) eclipse-ccase (Clearcase source controller) My project is on a clearcase drive (windows). So, you use WTP 3.0.2. But I was not able to reproduce what is described in comment #2. I created a web project with the same structure and a java project. The Java EE Dependencies page works fine and the .settings\org.eclipse.wst.common.component updates correctly. Do I understand correctly that the problem is described in comment #2? Could you attach an example workspace where the problem can be reproduced? I close this bug, because I cannot reproduce the problem and there is no answer by the reporter for two weeks. We have been testing here, and have uncovered some other facts. Our workspace (.class/.project/.metadata) is on a clearcase drive (under windows) and we have found that Eclipse isn't checking-out the .metadata/ files before making changes. In some cases, Eclipse will silently fail to write the read-only checked-in file. If you checkout the file by hand Eclipse does write in them. So I think that our installations have become corrupted and are in an inconsistent state. We have been in the middle of a big deadline, hence no reply. I will reopen when I have something you can play with. I have updated everything and I tried again with a new workspace and managed to get it to work. I think the only thing I did differently was to add Spring nature last. Apart from that I think it was all the same. I think this issue may be related to bug 249044. Closing. |