[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-5936) New ESB Project wizard validation needs to be earlier in the process

Denny Xu (JIRA) jira-events at lists.jboss.org
Mon Mar 8 05:26:59 EST 2010


    [ https://jira.jboss.org/jira/browse/JBIDE-5936?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12518656#action_12518656 ] 

Denny Xu commented on JBIDE-5936:
---------------------------------

Firstly, I would say in my original code about the ESB runtime classpath contianer will never occur something like:
<classpathentry kind="con" path="server.supplied/SomeName"/> as JBIDE-5958 described  when the user try to use a user defined ESB runtime using a standalone ESB runtime,

Rob modified this piece of code and introduce the bug, see:
http://fisheye.jboss.org/browse/JBossTools/trunk/esb/plugins/org.jboss.tools.esb.project.core/src/org/jboss/tools/esb/core/facet/JBossClassPathCommand.java?r1=19583&r2=19666
because he did not told me about the change, and for the function of user customized ESB runtime , I have tested many times and it works correctly almost one year,  I really did not have it in mind so I did not test it recently.

About not warning the user at the first page if the target runtime doesn't include a valid ESB runtime, I remember we discussed it more than one time,  it because ESB project *doesn't require the user must specify a project target runtime*,   at the third page, the user also can specify a user defined standalone ESB runtime.

if we would  fix the issue, in my option, there are two solutions :
1. remove the support to standalone esb runtime and force the user to use project target runtime as ESB runtime and validate whether the target runtime include a valid ESB runtime.
2. move the ESB target runtime and ESB config version selection sections from the last wizard page to the first page




> New ESB Project wizard validation needs to be earlier in the process
> --------------------------------------------------------------------
>
>                 Key: JBIDE-5936
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-5936
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: esb
>    Affects Versions: 3.1.0.CR2
>            Reporter: Brian Fitzpatrick
>            Assignee: Brian Fitzpatrick
>             Fix For: 3.2.next
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> While testing a fix for JBIDE-5916, Rob Stryker discovered the strange and undesirable behavior as documented below while testing against EAP 5.0 instead of SOA-P 5.0:
> "When I am in the first page of the esb project wizard, automatically selected is my JBoss EAP 5.0 Server Runtime. Below it is also automatically selected "ESB Version: 4.7". Yet when I push forward two pages, it tells me my server does Not have esb 4.7 in it, I then have to go back two pages and change the facet version, then forward two pages to see if the error has disappeared.
> I finally gave up, as it one by one informed me that I do not have a satisfactory version in my EAP 5.0 runtime at all, which I find as extremely unlikely. At at least one attempt told me I did not even have a runtime selected, when the UI clearly did. (I eventually got confused enough that I did a du -a | grep -i "esb" command to see if the eap server had any jars or anything that mentioned "esb" anywhere in the file name. None did. So now I'm wondering if my install is just odd, but I don't suspect it is.
> I decide to switch to not using the "Server supplied runtime" and instead creating a new one on the third page, and I again pointed to my jboss-eap-5.0 folder. At no point did this dialog inform me that none of the versions were found. Instead I, once again, had to select each of the 6 versions to find out none were valid for this folder.
> I finally pointed directly to an actual esb server (jbossesb-server-4.4.GA) and the dialog did auto-fill itself in, though I also remember I was the one who made that fix about 2 months ago after a similarly infuriating attempt at this.
> However even after I do this, I notice in my Package Explorer that there is NO classpath container containing any ESB jars on hte project. So I check the .classpath file to see if ANYTHING was added at all, and I see this:
> <classpathentry kind="con" path="server.supplied/SomeName"/>
> Aside from the ridiculously short and uninformative name "server.supplied", the adept user will note that this entry was not, actually, server supplied at all, but rather the other option, as I outlined above and pointed directly to an esb installation. Aside from that, this "server.supplied" is directly visible in the Java Build Path property page, under the Libraries tab. Which means this constant is exposed to users to see."
> The issue here seems to be that the runtime validation to see if it actually HAS an ESB installed doesn't occur until page 3 of the wizard. This should be done up front on page 1 of the wizard. If ESB isn't available in a selected runtime, the user should not be able to continue in the wizard and should get an error message saying that the runtime selected doesn't support ESB. Pretty simple. 
> The user should not be forced to go forward/back through the wizard trying different combinations if NONE of the combinations will actually work. 
> This needs to be fixed for the next release.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list