Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (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 User
Originally posted by: rstryker.redhat.com

Howdy:

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"
handle="module:/resource/Seam99-ejb/Seam99-ejb">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module deploy-path="/"
handle="module:/resource/Seam99/Seam99">
<dependency-type>uses</dependency-type>
</dependent-module>
</wb-module>
</project-modules>

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"
handle="module:/resource/Seam99-ejb/Seam99-ejb">
<dependency-type>uses</dependency-type>


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 &&
moduleTree[1].getModuleType().getId().equals("jst.ejb");
if( go ) {
IEnterpriseApplication enterpriseApplication =
(IEnterpriseApplication)
moduleTree[0].loadAdapter(IEnterpriseApplication.class, null);
if (enterpriseApplication != null) {
tmp = enterpriseApplication.getURI(moduleTree[1]);
System.out.println(tmp);
}
}

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
/lib/Seam99-ejb.jar)

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

Thanks.

- 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: Sat Oct 25 21:15:11 GMT 2014

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

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