| Summary: | No redeployment/publish after changes in Utility-Modules | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP ServerTools | Reporter: | Stefan Maurer <stefan.maurer> | ||||
| Component: | jst.server | Assignee: | Gorkem Ercan <gorkem.ercan> | ||||
| Status: | NEW --- | QA Contact: | Elson Yuen <eyuen7> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | ccc, stefan.maurer | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Stefan Maurer
Created attachment 195591 [details]
Projects that were used to verify problem
Since you are using a jBoss adapter, I am sending you with the expert in that area. There are two plugins that provide jBoss Server connectivy. One that we ship with WTP and one that is downloadable, let us know which one you are using. We are using the JBoss-Adapter that is shipped with WTP. In the Generic Server, the Utility Project is not in the heirarchy of modules. It's still (magically) getting published correctly, so their publisher must be using some other logic. But you can verify that it is not in the heirarchy of modules.
If you open the Server's view after deploying, you see:
ServerName
|- EarModule
|- Web Module
|- Utility Project (MISSING)
The utility project is not in the list of the modules that are deployed, so a changed file or workspace delta is not registering that the module needs to be republished. If the servertools had a "full publish" option or action, you would quickly see that the module does deploy properly again, so it's not a runtime issue. This is an issue with the Generic Server.
The GenericServer has the following code:
public IModule[] getChildModules(IModule[] module) {
if (module[0] != null && module[0].getModuleType() != null) {
if (module.length == 1) {
etc etc etc...
}
This means the Generic Server is not listening to the fact that the Utility Project is a child module of the Web Project. It's asking, what are the children of web project? In this API, the call is getChildModule( new IModule[]{ earProj, webProj}); So the length of module is 2. The code is returning an empty array, declaring Utility Project is not a child module, and so changes there do not register for an automatic republish.
|