[jbosstools-dev] WTP Facet wizards and adding ESB 4.10

Brian Fitzpatrick bfitzpat at redhat.com
Wed Sep 28 16:32:17 EDT 2011


That worked perfectly. Thanks Snjeza! 
--Fitz

_______________________________
Brian Fitzpatrick (aka "Fitz")
Senior Software Engineer, SOA-P
JBoss by Red Hat

----- Original Message -----
From: "Snjezana Peco" <snjezana.peco at redhat.com>
To: "Brian Fitzpatrick" <bfitzpat at redhat.com>
Cc: "??? jbosstools-dev" <jbosstools-dev at lists.jboss.org>
Sent: Wednesday, September 28, 2011 12:46:32 PM
Subject: Re: [jbosstools-dev] WTP Facet wizards and adding ESB 4.10

Brian,

I think you have to implement a custom version compharator. See 
http://www.eclipse.org/articles/Article-BuildingProjectFacets/tutorial.html#custom.version.comparators

Snjeza

Brian Fitzpatrick wrote:
> Hi all...
>
> I'm in the process of finishing up some work to add ESB 4.10 to the list of supported runtimes for the ESB Project wizard and have run into some fun issues with the faceted wizard framework of WTP. I'm guessing it's user error on my part, but I'm hoping someone can help me figure out what I'm doing wrong.
>
> In org.jboss.tools.esb.project.core, I did the following in the plugin.xml:
>
> * Added a new project-facet entry to the org.eclipse.wst.common.project.facet.core.facets extension point
>
> * Added 4.10 to the lists of supported facet versions for jst.jboss.esb in the org.eclipse.wst.common.project.facet.core.runtimes extension point
>
> * Added 4.10 to the list of supported module type versions for jst.jboss.esb in the org.eclipse.wst.server.core.moduleFactories extension point
>
> * And added a new ESB runtime resolver for 4.10
>
> That's all I had to do for 4.9 and life was good. I suspect that 4.10 has issues because it's being interpreted as "4.1" and not "4.10" as a valid double value. 
>
> So I have two problems:
>
> 1) The "JBoss ESB version" box on the first page of the New ESB Project Wizard obviously isn't sorting correctly (i.e. 4.10 comes before 4.2, not after 4.9). 
>
> 2) When I select 4.10 as the "JBoss ESB version", even on a SOA-P 5.2 ER4 server that has the correct ESB version, the Configuration drop-down goes to "<custom>" instead of "Default Configuration for JBoss SOA-P ER4 Runtime" which should probably be defaulting to ESB 4.10 (where does the default configuration come from?).
>
> What am I missing here? Any and all help would be greatly appreciated. As I said, I'm guessing it's user error but don't know what to look at next. I've poked through the code for a few hours and am not any closer to figuring it out.
>
> Thanks in advance
> --Fitz
> _______________________________
> Brian Fitzpatrick (aka "Fitz")
> Senior Software Engineer, SOA-P
> JBoss by Red Hat
>
> _______________________________________________
> jbosstools-dev mailing list
> jbosstools-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jbosstools-dev
>   



More information about the jbosstools-dev mailing list