1 2 Previous Next 15 Replies Latest reply on Nov 3, 2015 3:39 PM by bfitzpat

    JBDS creates switchyard.xml file invalid

    simplex-software

      Hello,

       

      Using JBDS 8.1.0.GA with switchyard projects, I have the following error message in the Problems tab:

       

      The referenced Java interface for service "OrderRepositoryReference" specifies more than one operation and the binding "order-jpa-binding" does not specify which to use in the operation selector.

       

      Here is the significative part of the switchyard.xml file:

       

      .......................................

         <sca:reference name="OrderRepositoryReference">

           <sca:interface.java interface="fr.simplex_software.soa.order_service.OrderRepository"/>

         </sca:reference>

      .........................................

         <sca:reference name="OrderRepositoryReference" multiplicity="0..1" promote="OrderComponent/OrderRepositoryReference">

           <sca:interface.java interface="fr.simplex_software.soa.order_service.OrderRepository"/>

      ..............................................

       

      and the OrderRepository interface is as follows:

       

       

      public interface OrderRepository

        public void persistOrder (PurchaseOrderEntity purchaseOrder);

      }

       

      so it doesn't specify more then one operation. Anyway, the build works outside JBDS.

       

      What might be the problem here ?

       

      Many thanks in advance,

       

      Nicolas

       

       

        • 1. Re: JBDS creates switchyard.xml file invalid
          simplex-software

          Just a short update to say that the mentioned issue appears also when importing project from the quickstart, for example the switchyard-quickstart-camel-jpa-binding projects. As these projects are supposed to work properly, I reckon that there is an issue between switchyard and its itergration in tooloing/JBDS.

           

          I probably should post that in the JBDS space.

          • 2. Re: JBDS creates switchyard.xml file invalid
            simplex-software

            By the way, I have imported the whole switchyard directory and, among the 99 included projects, I'm not sure that there is one which builds correctly. I imported the projects as maven projects and I have configured the JBDS maven as being the one installed on my local workstation. And of course, building the quickstarts with maven in command line mode works properly.

             

            So, JBDS 8.1 doesn't seem to be switchyard ready.

            • 3. Re: JBDS creates switchyard.xml file invalid
              bfitzpat

              Nicolas, can you tell me where you're installing your SwitchYard tooling from? If you install the JBoss Developer Studio Integration Stack, SwitchYard is available as early access from there.

               

              Red Hat JBoss Developer Studio Integration Stack (Luna) | Eclipse Plugins, Bundles and Products - Eclipse Marketplace

               

              You can install the Early Access bits - https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Developer_Studio_Integration_Stack/8.0/html/8.0.3_Release_Notes/About_this_Release.html

               

              SwitchYard tooling will be fully supported in an upcoming release, but for now we have been Early Access.

               

              Hope that helps.

               

              --Fitz

              • 4. Re: JBDS creates switchyard.xml file invalid
                simplex-software

                Brian, my post doesn't have anything to do with the installation process. It states that JBDS 8.1, with Switchyard support, early or not I don't know and I don't care, is not able to import the switchyard quickstarts.

                 

                It's not clear but you seem to say that there would be two levels of switchyard supports in JBDS: an early one, which still has issues and a real one which is not available yet.  Which confirms my conclusion that, in its current status, JBDS 8.1 doesn't handle correctly the switchyard.xml file.

                 

                Hence, switchyard is only usable by manually editing  SCA syntax having  200 characters long XML lines. Meaning that is not usable at all.

                 

                So, what do you say to people having SOA projects with Fuse Service Works ?

                 

                Kind regards,

                 

                Nicolas

                • 5. Re: JBDS creates switchyard.xml file invalid
                  bfitzpat

                  Nicolas,

                   

                  I need more information here before I can help.

                   

                  First, what version of the Switchyard tooling are you using? With JBDS 8.1 I'm assuming you're on Luna and have the latest updates for that platform. Can you go to Help->Installation Details... and let me know what the version of the SwitchYard plug-ins you have installed and what update site you used to install them? So far as I can duplicate here, we very much do handle complex SwitchYard configurations with the latest version of the tooling on JBDS 8.1 so I'm hopeful you can shed some light on your environment to give me more clues as to the issues you're seeing.

                   

                  Second, can you attach a complete example of something that builds in maven for you but doesn't work in the tooling? Again, more information will help me diagnose this problem more easily.

                   

                  And third, can you give me  the name of a particular quickstart to try? I've been able to import (for instance) the bean-service example into my local workspace fine, but again need more details from your end to see what's going on.

                   

                  Sorry you are having issues, but hopefully we can get you straightened out.

                   

                  Thanks

                  --Fitz

                  • 6. Re: JBDS creates switchyard.xml file invalid
                    bfitzpat

                    If you want to create a JIRA (System Dashboard - JBoss Issue Tracker) against the Switchyard project with specific details instead of the forum, feel free to do that as well.

                    • 7. Re: JBDS creates switchyard.xml file invalid
                      simplex-software

                      Brian,

                      Please find here below the answers to your questions:

                      1.   SwitchYard 2.0.1.v20150727-2018-H8-Beta1

                      2. Please use the project camel-jpa-binding, it will display in the Problems tab the mentioned compilation error.

                      3. See 2.

                      I also need to mention that when I inadvertently said that the quickstart projects don't build in the JBDS workspace, I meant that they don't build using the Java builder and they display red error marks everywhere, like a christmass tree. But they build using the maven project builder.

                      Many thanks in advance,

                      Kind regards,

                      Nicolas DUMINIL

                      • 8. Re: JBDS creates switchyard.xml file invalid
                        bfitzpat

                        The issue you have found with the red errors in the camel-jpa-binding quickstart was reported as SWITCHYARD-2725 and has been fixed here - SwitchYard Tooling - Development Milestone Eclipse Update Site: 2.0.1.CR1

                        • 9. Re: JBDS creates switchyard.xml file invalid
                          simplex-software

                          Hi Brian,

                           

                          Did you reproduce the issue in your environment and did the issue go away as soon as you applied the mentioned patch ?

                           

                          Kind regards,

                           

                          Nicolas

                          • 10. Re: JBDS creates switchyard.xml file invalid
                            bfitzpat

                            Yes and yes.

                            • 11. Re: JBDS creates switchyard.xml file invalid
                              simplex-software

                              Hi Brian,

                               

                              Going to the link you've mentioned and following the given instructions I'm not proposed anything useful to install, as you may see in the attched screen copy.

                               

                              Kind regards,

                               

                              Nicolas

                              • 12. Re: JBDS creates switchyard.xml file invalid
                                simplex-software

                                I'm trying to upload a screen copy here but I don't find how. Anyway, on the link you've mentioned, most of groups say that all the component have been already installed, there is a data virtualization group having components to be installed but I'm not interested and there is also the SOA-P 5 group which doesn't interest me neither. In any case, nothing concerning Switchyard.

                                 

                                Kind regards,

                                 

                                Nicolas

                                • 13. Re: JBDS creates switchyard.xml file invalid
                                  bfitzpat

                                  They have already been installed. This would be an update to your current plug-ins.

                                   

                                  SwitchYard Tooling - Development Milestone Eclipse Update Site: 2.0.1.CR1 is the latest version of the SwitchYard plug-ins for Luna from the end of September. It is the latest code and does include the fixes you need to update what you already have installed.

                                  • 14. Re: JBDS creates switchyard.xml file invalid
                                    simplex-software

                                    Brian,

                                     

                                    Here are the instrcutions displayed when I go to your link:

                                     

                                    1. Add the following update sites to the list of configured update sites
                                      Window → Preferences
                                      Install/Update → Available Software Sites
                                        • For Luna (4.4.x) add:
                                      http://download.jboss.org/jbosstools/updates/development/luna/integration-stack/
                                    2. Install the SwitchYard tooling: Help → Install New Software...
                                    3. Copy this site's URL into Eclipse, and hit Enter.
                                    4. When the site loads, select the features to install, or click the Select All button.
                                    5. To properly resolve all dependencies, check [x] Contact all update sites during install to find required software
                                    6. Click Next, agree to the license terms, and install.

                                     

                                    Following these instructions doesn't update anything. It only says that everything is installed as far as switchyard is concerned. So:

                                    • either these instructions are the correct procedure to update the switchyard plugin and then they don't do anything
                                    • or the correct procedure to update the plugin is a different one, in which case I'm wondering which one is that and how come the documentation suggests to follow a not working procedure.

                                     

                                    In any case, I don't think that it would be a good idea to update the switchyard plugin which comes with JBDS, there must be a JBDS new release which comes with everyting needed.

                                     

                                    Kind regards,

                                     

                                    Nicolas

                                    1 2 Previous Next