7 Replies Latest reply on Dec 17, 2009 9:18 AM by Max Rydahl Andersen

    Error when deploying JBossESB SmooksAction to server

    Billy Buzzard Newbie

      I'm using JBossESB 4.5GA. I created an ESB that has a SmooksAction. Everything works fine in the IDE, but when I try to deploy the ESB to the server I get an error stating that "smooks-graphics-ext.xsd" can not be located. I copied the xsd into my browser and I got a site that had nothing to do with the xsd.

      I can remove the graph namespace and element from my smooks-config file and I can deploy with no errors; however, I can no longer use the GUI in the IDE to edit the smooks-config file.

      Does anyone know what's going wrong here and/or how to fix it?

        • 1. Re: Error when deploying JBossESB SmooksAction to server
          Denny Xu Newbie

          Did you get the "smooks-graphics-ext.xsd can not be located" error from server console or from project deployment ui?

          • 2. Re: Error when deploying JBossESB SmooksAction to server
            Xue Peng Newbie

            Hi bbuzzard:

            If you removed the "smooks-graphics-ext.xsd" namespace uri from the smooks config file , the Smooks editor can open it also, but some input informations will lose.

            Are you sure that you have removed all XML elements associated the "smooks-graphics-ext.xsd" namespace ?

            • 3. Re: Error when deploying JBossESB SmooksAction to server
              Billy Buzzard Newbie

              When I open my smooks-config.xml file for the first time in my Eclipse IDE 3.4.0 using JBossTools 3.1 it inserts two lines into the file. The first line is:

              <smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:csv="http://www.milyn.org/xsd/smooks/csv-1.1.xsd" xmlns:ds="http://www.milyn.org/xsd/smooks/datasource-1.1.xsd" xmlns:ftl="http://www.milyn.org/xsd/smooks/freemarker-1.1.xsd" xmlns:graph="http://www.jboss.org/jbosstools/smooks/smooks-graphics-ext.xsd" xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.1.xsd">

              And the second line is:

              <graph:smooks-graphics-ext inputType="csv" platformVersion="1.1"/>

              I'm debugging my JBossESB 4.5.GA server from within the IDE. When I select ADD/REMOVE to add my smooks ESB to the server I get an error stating that the the XSD "smooks-graphics-ext.xsd" can not be found.
              I'm guessing that I have something incorrectly set in my IDE that's causing the IDE to reinsert the two lines listed above, but I don't know what it is.

              Do I need a particular version of JBossESB server for the graph lines to work? What do I need to do to stop the two lines from being added to the ESB? Or, do I need to modify my existing server to tfix the problem?

              • 4. Re: Error when deploying JBossESB SmooksAction to server
                Billy Buzzard Newbie

                I see the error in the server console after I add the ESB project to a running JBossESB server.

                 

                At work I'm using: Eclipse IDE Build id: 20090920-1017 and JBoss Tools 3.1.0.v200910281724M-H247-M4.

                At home I'm using: Eclipse IDE Build id:20090621-0832 and JBoss Tools 3.1.0.v200909110340M-H277-M3.

                 

                When I create a smooks-config.xml file at home a second file called smooks-config.xml.ext is create and it contains the following:

                <?xml version="1.0" encoding="UTF-8"?>

                <smooks-graphics-ext xmlns="http://www.jboss.org/jbosstools/smooks/smooks-graphics-ext.xsd"/>

                and this does not cause any problems when I deploy it to the server.

                 

                But when I create a smooks-config.xml file at work the second file is not created.  The smooks-graphics-ext stuff is insert into the smooks-config.xml file and when it is deploy I get the error.

                 

                Either there's a bug in the newest release of the Tools or I do not have something set up correctly.  Any thoughts?

                 

                I really need to move past this and it is a really pain to have to go in and remove those lines from the smooks-config.xml file at work everything I click on that file in the project explorer.

                • 5. Re: Error when deploying JBossESB SmooksAction to server
                  Xue Peng Newbie

                  The smooks tools need some extended informations to record the input file , input type to help it open the config file , so we use the "smooks-graphics-ext" to be the extended xsd.

                   

                  In 3.1m3 version , the extended informations was recorded in a *.graph file , so when you use the 3.1m3 , you can find that when you open a smooks config file , there is a new *.graph will be generated and placed in the same folder.

                   

                  But in 3.1m4 version , we merge the extended informations into the smooks config file , it means when you open the config file , the smooks tool didn't generate the *.graph file anymore and insert the extended data into the config file.

                   

                  When you deploy the smooks config file which was opened with 3.1m4 smooks editor , the ESB can't local the "smooks-graph-ext" xsd via the uri.

                   

                  So I suggest you try to use the Smooks tools vCR1 :

                  http://download.jboss.org/jbosstools/builds/nightly/3.1.0.RC1/200912141523/

                   

                  The new smooks tool removed all extended informations.

                  • 6. Re: Error when deploying JBossESB SmooksAction to server
                    Billy Buzzard Newbie
                    Bad news.  I just updated to http://download.jboss.org/jbosstools/builds/nightly/3.1.0.RC1/200912141523/.  Now I get an error dialog when I try to open the smooks-config.xml file with the Smooks Editor.  Either this RC has a problem or I didn't prepare Eclipse properly before installing the update.  I don't know if this makes any difference, but I used the Update Site.
                    • 7. Re: Error when deploying JBossESB SmooksAction to server
                      Max Rydahl Andersen Master
                      Report in jira please. Attach the file that is causing the problems and  info about what error you get. Thanks!