Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [wtp-dev] New Module Types in WST

Thanks Konstantin,

I knocked up something that is adding the classpath successfully.


On 5/18/06, Konstantin Komissarchik < kosta@xxxxxxx> wrote:



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">



    <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" />





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



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


Notice: This email message, together with any attachments, may contain
information of BEA Systems, Inc., its subsidiaries and affiliated
entities, that may be confidential, proprietary, copyrighted and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

wtp-dev mailing list

Back to the top