Philip,
Sorry for the delayed response. Don’t
know if you figured out the problem or not, but here are the details in case
you are still struggling with this...
When you defined your JBI runtime, you
probably copied something like this into your plugin.xml file:
<extension point="org.eclipse.wst.common.project.facet.core.runtimes">
...
<adapter>
<runtime-component id="org.eclipse.jst.server.tomcat"/>
<factory class="org.eclipse.jst.server.core.internal.RuntimeClasspathProvider$Factory"/>
<type class="org.eclipse.jst.common.project.facet.core.IClasspathProvider"/>
</adapter>
...
</extension>
This sets up the classpath provider
associated with the runtime component type (tomcat in this case). If you look
in the RuntimeClasspathProvider class you will see that it only knows about the
module facets that ship with WTP. You will need to either subclass or replace
the classpath provider for the JBI runtime in order to get
ClasspathHelper.addClasspathEntries setup classpath for the JBI facet.
Hope this helps. Let me know if you have
further questions.
- Konstantin
From:
wtp-dev-bounces@xxxxxxxxxxx [mailto:wtp-dev-bounces@xxxxxxxxxxx] On Behalf Of Philip Dodds
Sent: Friday, May 05, 2006 5:42 AM
To: wtp-dev@xxxxxxxxxxx
Subject: [wtp-dev] New Module
Types in WST
Hi,
I am currently working to add JBI support to Eclipse and I based it on the WTP
server and EJB infrastructure. I've defined a new server using the
generic as a basis and then added new facet definitions for JBI 1.0 and a new
module type.
Everything seems to be hanging together however when I create a new project and
add the JBI facet my JbiFacetInstallDelegate and I appear to has the ServiceMix
3.0 runtime in place, however a call to
ClasspathHelper.addClasspathEntries(project, fv) never seems to add the defined
project classpath (from the Generic server) to the project?
I was wondering if there was any documentation that might help me out or some
pointers to what to have a look at? I've dug through and I saw reference
to hard-coding to the WTP module, though when I went through the source I
couldn't find it?
Thanks in advance
P