Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Question about virtual component model and org.eclipse.wst.common.component
Question about virtual component model and org.eclipse.wst.common.component [message #217776] Thu, 17 July 2008 20:03
Eclipse UserFriend
Originally posted by:


I have the following file as my org.eclipse.wst.common.component

<?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="Seam99-ear">
<wb-resource deploy-path="/" source-path="/EarContent"/>
<dependent-module deploy-path="/lib"
<dependent-module deploy-path="/"

The key part to note is that I've modified the original file so that the
dependent-module has a different deploy path:

<dependent-module deploy-path="/lib"

When I go to publish this ear project, I am unable to make the virtual
component model find this file in the proper location. I realize this is
up to the server adapter to get correct, but most of the server adapters
get all of their information from the virtual component model.

Specifically, my server adapter is testing the following code:

String tmp;
boolean go = moduleTree.length == 2 &&
if( go ) {
IEnterpriseApplication enterpriseApplication =
moduleTree[0].loadAdapter(IEnterpriseApplication.class, null);
if (enterpriseApplication != null) {
tmp = enterpriseApplication.getURI(moduleTree[1]);

In this case, the printout is always merely the name of the ejb project,
Seam99-ejb.jar instead of the URI found in the
org.eclipse.wst.common.component file's deploy-path attribute, /lib
(which I assume would / should then append the project's name, making it

Is this a defect in the Virtual Component Model or am I expecting an
incorrect behavior?


- Rob Stryker
Previous Topic:Unknown extension point: 'org.eclipse.wst.server.ui.moduleArtifactAdapters'
Next Topic:How to set default publishing properties like Tomcat
Goto Forum:

Current Time: Tue Oct 20 17:27:18 GMT 2020

Powered by FUDForum. Page generated in 0.01802 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top