1 2 Previous Next 29 Replies Latest reply on Apr 6, 2012 7:32 AM by stanley103 Go to original post
      • 15. Re: Designer loading problem in drools-guvnor
        floraly

        I am deploying as .war file in the prod server.

         

        I added some logs in editorhander.java and found that it has loaded all the scripts successfully

         

        And I can get 'resultXML' as below before (response.getWriter().write(resultHtml.toString());).  Now Let me try to deploy as exploded war

         

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

        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

         

        <html xmlns="http://www.w3.org/1999/xhtml" xmlns:b3mn="http://b3mn.org/2007/b3mn" xmlns:ext="http://b3mn.org/2007/ext" xmlns:rdf="http://www.w3.org/1999/02/2

        2-rdf-syntax-ns#" xmlns:atom="http://b3mn.org/2007/atom+xhtml">

          <head profile="http://purl.org/NET/erdf/profile">

            <link rel="icon" href="/designer/favicon.ico"></link>

            <meta http-equiv="Content-type" content="text/html;charset=UTF-8"></meta>

            <title>jBPM Process Designer</title>

            <!-- libraries -->

            <script src="/designer/lib/prototype-1.5.1.js" type="text/javascript"></script>

            <script src="/designer/lib/path_parser.js" type="text/javascript"></script>

            <script src="/designer/lib/ext-2.0.2/adapter/ext/ext-base.js" type="text/javascript"></script>

            <script src="/designer/lib/ext-2.0.2/ext-all.js" type="text/javascript"></script>

            <script src="/designer/lib/ext-2.0.2/color-field.js" type="text/javascript"></script>

            <style media="screen" type="text/css">@import url("/designer/lib/ext-2.0.2/resources/css/ext-all.css");</style>

            <!-- Chrome Frame -->

            <script type="text/javascript" src="/designer/js/CFInstall.min.js"></script>

            <!-- process designer -->

            <!-- erdf schemas -->

            <link rel="Stylesheet" media="screen" href="/designer/css/theme_norm.css" type="text/css"></link>

            <link rel="schema.dc" href="http://purl.org/dc/elements/1.1/"></link>

            <link rel="schema.dcTerms" href="http://purl.org/dc/terms/"></link>

            <link rel="schema.b3mn" href="http://b3mn.org"></link>

            <link rel="schema.oryx" href="http://oryx-editor.org/"></link>

            <link rel="schema.raziel" href="http://raziel.org/"></link>

            <script src="/designer/js/kickstart.js" type="text/javascript"></script>

            <script src="/designer/js/config.js" type="text/javascript"></script>

            <script src="/designer/js/oryx.js" type="text/javascript"></script>

            <script src="/designer/js/clazz.js" type="text/javascript"></script>

            <script src="/designer/js/Core/main.js" type="text/javascript"></script>

            <script src="/designer/js/utils.js" type="text/javascript"></script>

            <script src="/designer/js/erdfparser.js" type="text/javascript"></script>

            <script src="/designer/js/datamanager.js" type="text/javascript"></script>

            <script src="/designer/js/Core/SVG/editpathhandler.js" type="text/javascript"></script>

            <script src="/designer/js/Core/SVG/minmaxpathhandler.js" type="text/javascript"></script>

            <script src="/designer/js/Core/SVG/pointspathhandler.js" type="text/javascript"></script>

            <script src="/designer/js/Core/SVG/svgmarker.js" type="text/javascript"></script>

            <script src="/designer/js/Core/SVG/svgshape.js" type="text/javascript"></script>

            <script src="/designer/js/Core/SVG/label.js" type="text/javascript"></script>

            <script src="/designer/js/Core/Math/math.js" type="text/javascript"></script>

            <script src="/designer/js/Core/StencilSet/stencil.js" type="text/javascript"></script>

            <script src="/designer/js/Core/StencilSet/property.js" type="text/javascript"></script>

            <script src="/designer/js/Core/StencilSet/propertyitem.js" type="text/javascript"></script>

            <script src="/designer/js/Core/StencilSet/complexpropertyitem.js" type="text/javascript"></script>

            <script src="/designer/js/Core/StencilSet/rules.js" type="text/javascript"></script>

            <script src="/designer/js/Core/StencilSet/stencilset.js" type="text/javascript"></script>

            <script src="/designer/js/Core/StencilSet/stencilsets.js" type="text/javascript"></script>

            <script src="/designer/js/Core/command.js" type="text/javascript"></script>

            <script src="/designer/js/Core/bounds.js" type="text/javascript"></script>

            <script src="/designer/js/Core/uiobject.js" type="text/javascript"></script>

            <script src="/designer/js/Core/abstractshape.js" type="text/javascript"></script>

            <script src="/designer/js/Core/canvas.js" type="text/javascript"></script>

            <script src="/designer/js/Core/svgDrag.js" type="text/javascript"></script>

            <script src="/designer/js/Core/shape.js" type="text/javascript"></script>

            <script src="/designer/js/Core/Controls/control.js" type="text/javascript"></script>

            <script src="/designer/js/Core/Controls/magnet.js" type="text/javascript"></script>

            <script src="/designer/js/Core/Controls/docker.js" type="text/javascript"></script>

            <script src="/designer/js/Core/node.js" type="text/javascript"></script>

            <script src="/designer/js/Core/edge.js" type="text/javascript"></script>

            <script src="/designer/js/Core/abstractPlugin.js" type="text/javascript"></script>

            <script src="/designer/js/Core/abstractLayouter.js" type="text/javascript"></script>

            <script src="/designer/js/Core/abstractDragTracker.js" type="text/javascript"></script>

            <script src="/designer/i18n/translation_en_us.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.Toolbar.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.UUIDRepositoryDummySave.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.ShapeMenuPlugin.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.ShapeRepository.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.PropertyWindow.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.CanvasResize.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.View.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.DragDropResize.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.RenameShapes.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.Undo.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.Arrangement.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.Grouping.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.DragDocker.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.AddDocker.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.SelectionFrame.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.ShapeHighlighting.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.Edit.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.KeysMove.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.Layouter.EdgeLayouter.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.ContainerLayouter.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.DragTracker.LaneDragTracker.js" type="text/javascript"></script>

            <script src="/designer/plugin/ORYX.Plugins.DragTracker.PoolDragTracker.js" type="text/javascript"></script>

            <script type="text/javascript">ORYX.VERSION = "1.0.0.053";

         

              ORYX.CONFIG.SSET = "bpmn2.0jbpm";

              ORYX.CONFIG.DEV = true;

              if (ORYX.CONFIG.DEV) {

                ORYX_LOGLEVEL = 4;

              }

         

              ORYX.PREPROCESSING = "";

         

              params = window.location.search.toQueryParams();

         

              if (params['profile'] === undefined) {

                params['profile'] = 'jbpm';

              }

         

              ORYX.UUID = params['uuid'];

              ORYX.PROFILE = params['profile'];

         

              var segments = window.location.pathname.split("/").without("");

         

              ORYX.CONFIG.ROOT_PATH = "/" + segments.first() + "/";

              ORYX.PATH = ORYX.CONFIG.ROOT_PATH;

         

              if (ORYX.UUID === undefined) {

                ORYX.UUID = segments.pop();

              }

         

              ORYX.CONFIG.UUID_AUTOSAVE_INTERVAL = 120000;

                  ORYX.CONFIG.UUID_AUTOSAVE_DEFAULT = true;

         

              ORYX.CONFIG.SSEXTS= [].map(function(ssext) {

                // for each of the extensions, we get the extension file and return its contents.

                var contents = null;

                new Ajax.Request(ORYX.PATH + "stencilset/" + ssext, {

                  asynchronous: false,

                  method: 'get',

                  contentType: 'application/json',

                  onSuccess: function(result) {

                    contents = result.responseText.evalJSON();

                  },

                  onFailure: function(result) {

                    alert("Could not load Process Designer"); //TODO even better logging ?

                  }

                });

                return contents;

              });

         

              new Ajax.Request(ORYX.PATH + "plugins", {

                asynchronous: false,

                method: 'get',

                contentType: 'application/json',

                onSuccess: function(result) {

                  var allPlugins = {};

                  result.responseText.evalJSON().each(function (p) {

                    allPlugins[p.name] = p;

                  }.bind(allPlugins));

                  // install the current plugins

                  ORYX.availablePlugins = [];

                  ["ORYX.Plugins.Toolbar","ORYX.Plugins.UUIDRepositoryDummySave","ORYX.Plugins.ShapeMenuPlugin","ORYX.Plugins.ShapeRepository","ORYX.Plugins.Property

        Window","ORYX.Plugins.CanvasResize","ORYX.Plugins.View","ORYX.Plugins.DragDropResize","ORYX.Plugins.RenameShapes","ORYX.Plugins.Undo","ORYX.Plugins.Arrangeme

        :...........................................

        • 16. Re: Designer loading problem in drools-guvnor
          floraly

          when I deployed as exploded war, I still got the same issue.

          • 17. Re: Designer loading problem in drools-guvnor
            mika1325

            Problem is with German umlaut and ß symbols in designer.war\stencilsets\bpmn2.0jbpm\stencildata\bpmn2.0jbpm.orig. I changed them, ant designer started!

            • 18. Re: Designer loading problem in drools-guvnor
              renez

              Hello,

               

              I'm having this problem today, too. I'm using jbpm 5.2 installed by installer on Ubuntu Linux 10.04 with openjdk-6. In Guvnor I can create a BPmn 2.0 process. But when I try to open the File just get a screen "Please wait while loading". In server.log I can find.

               

              18:21:25,182 INFO  [stdout] (http--0.0.0.0-8080-5) INFO  04-03 18:21:25,181 (NilAuthenticator.java:authenticate:35)
               All users are guests.
              
              18:22:47,125 INFO  [stdout] (http--0.0.0.0-8080-6) (null: -1, -1): Premature end of file.
              18:22:47,799 INFO  [org.jbpm.designer.server.EditorHandler] (http--0.0.0.0-8080-6) The diagram editor is running in development mode. Javascript will be served uncompressed
              18:22:47,801 INFO  [org.jbpm.designer.server.EditorHandler] (http--0.0.0.0-8080-6) Performing diagram information pre-processing steps. 
              18:22:48,208 INFO  [stdout] (http--0.0.0.0-8080-7) INFO  04-03 18:22:48,206 (NilAuthenticator.java:authenticate:35)
               All users are guests.
              18:22:48,494 INFO  [stdout] (http--0.0.0.0-8080-7) INFO  04-03 18:22:48,493 (NilAuthenticator.java:authenticate:35)
               All users are guests.
              18:22:48,560 INFO  [stdout] (http--0.0.0.0-8080-7) INFO  04-03 18:22:48,559 (NilAuthenticator.java:authenticate:35)
               All users are guests.
              18:22:48,698 INFO  [stdout] (http--0.0.0.0-8080-7) INFO  04-03 18:22:48,697 (NilAuthenticator.java:authenticate:35)
               All users are guests.
              18:22:48,739 INFO  [stdout] (http--0.0.0.0-8080-7) INFO  04-03 18:22:48,738 (NilAuthenticator.java:authenticate:35)
               All users are guests.
              
              18:22:48,772 INFO  [org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit] (http--0.0.0.0-8080-6) Successfully deleted file :/opt/jboss/jbpm-5.2/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp5fa1d605b1619162/designer.war-74ced14e8e0c620f/stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
              18:22:48,773 INFO  [org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit] (http--0.0.0.0-8080-6) Created file:/opt/jboss/jbpm-5.2/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp5fa1d605b1619162/designer.war-74ced14e8e0c620f/stencilsets/bpmn2.0jbpm/bpmn2.0jbpm.json
              18:22:48,818 INFO  [org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit] (http--0.0.0.0-8080-6) Created file:/opt/jboss/jbpm-5.2/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp5fa1d605b1619162/designer.war-74ced14e8e0c620f/stencilsets/bpmn2.0jbpm/view/activity/workitems/Log.svg
              18:22:48,829 INFO  [org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit] (http--0.0.0.0-8080-6) Created file:/opt/jboss/jbpm-5.2/jboss-as-7.0.2.Final/standalone/tmp/vfs/temp5fa1d605b1619162/designer.war-74ced14e8e0c620f/stencilsets/bpmn2.0jbpm/view/activity/workitems/Email.svg
              18:23:10,604 INFO  [stdout] (http--0.0.0.0-8080-7) INFO  04-03 18:23:10,603 (NilAuthenticator.java:authenticate:35)
               All users are guests.
              
              18:23:10,660 INFO  [stdout] (http--0.0.0.0-8080-7) (null: -1, -1): Premature end of file.
              
              

               

              Like mika suggested I changed the umlauts and the special charkters. The strang thing is, that everyting works fine on my local developer system with win xp.

               

              Does somebody have a suggestion? Hints a greatly appriciated!

               

              René

              • 19. Re: Designer loading problem in drools-guvnor
                tsurdilovic

                Are you getting any JavaScript errors? Wonder how I can reproduce this so can debug.

                Overall it seems that we should remove all german umlauts from the stencil info. I can do that and commit soon.

                • 20. Re: Designer loading problem in drools-guvnor
                  renez

                  Tihomir,

                   

                  thank you for your quick reply and your hint. Firebug gives me

                   

                   

                  Error: namespace is undefined
                  Source: http://xxx.xxx.xxx.xxx:8080/designer/js/Core/StencilSet/stencilsets.js
                  Line: 83
                  
                  

                   

                  I think a read something about an error like this but I'm not sure...

                  • 21. Re: Designer loading problem in drools-guvnor
                    tsurdilovic

                    Just uploaded new wars to people.redhat.com/tsurdilo/designer/master. Give it a shot and let me know if this fixes the issue (don't forget to clear your browser cache before testing).

                    • 22. Re: Designer loading problem in drools-guvnor
                      renez

                      Hey Tihomir,

                       

                      I downloaded the file for jboss as 7 an replaced the designer.war in the deployment directory. I cleared the cache in chrome and firefox, but I still get the same error. This is the stacktrace from firefox

                       

                      1. Uncaught TypeError: Cannot call method 'split' of undefined
                        1. Enumerable.eachprototype-1.5.1.js:449
                        2. ORYX.Core.StencilSet.stencilSetsstencilsets.js:61
                        3. ORYX.Editor.getStencilSetsmain.js:1204
                        4. ORYX.Editor._createCanvasmain.js:643
                        5. ORYX.Editor.constructmain.js:125
                        6. classDefclazz.js:60
                        7. window.onOryxResourcesLoadedORYX.Plugins.UUIDRepositoryDummySave.js:418
                        8. initmain.js:44
                        9. Object.extend.loadoryx.js:121

                       

                      • 23. Re: Designer loading problem in drools-guvnor
                        tsurdilovic

                        I'd like to get to the bottom of this issue, but am not able to reproduce it. Any instructions on what to see this problem are much appreciated.

                        • 24. Re: Designer loading problem in drools-guvnor
                          renez

                          I downloaded the jbpm-installer and used the ant tasks to install the demo. This worked perfect for me on my win xp developer machine. On our linux test server I allways get the error with "Premature end of file". This occures even with the new 2.1 version you provided. We are using Ubuntu 10.04.4 LTS. My first suggestion was an line ending problem between linux and win because on one os it worked and fails on the other. But I checked the files and they all have linux line endings. The other difference is, that the sever runs remotely at our hoster and it's not working. The working installation is running locally. I don't know if this matters. If it helps you can send me a pm and I can give you access to the linux installation.

                           

                          I would like to provide you log files, but there is nothing related to the error in the logs. Maybe you can tell me how to log more related to the error?

                           

                          René

                          • 25. Re: Designer loading problem in drools-guvnor
                            tsurdilovic

                            I think we got this resolved this time Replace your war with what's on people.redhat.com/tsurdilo/designer/master and clear your browser cache before trying. Let me know if you still run into this problem.

                            • 26. Re: Designer loading problem in drools-guvnor
                              renez

                              Now it's working on WIN and Linux. Thank you for your effort!

                              • 27. Re: Designer loading problem in drools-guvnor
                                stanley103

                                i have this problem too. I download jbpm5.2 installer and ant install.demo on my win7 or xp

                                Like mika suggested I changed the umlauts and the special charkters.

                                either i replace ä to a, ö to o, ü to u, ß to B

                                or i just delete all ä,ö,ü,ß

                                i still get the javascript error as same as renez's error as below:

                                1. Uncaught TypeError: Cannot call method 'split' of undefined
                                  1. Enumerable.eachprototype-1.5.1.js:449
                                  2. ORYX.Core.StencilSet.stencilSetsstencilsets.js:61
                                  3. ORYX.Editor.getStencilSetsmain.js:1204
                                  4. ORYX.Editor._createCanvasmain.js:643
                                  5. ORYX.Editor.constructmain.js:125
                                  6. classDefclazz.js:60
                                  7. window.onOryxResourcesLoadedORYX.Plugins.UUIDRepositoryDummySave.js:418
                                  8. initmain.js:44
                                  9. Object.extend.loadoryx.js:121

                                finally, i delete designer.war\stencilsets\bpmn2.0jbpm\stencildata\bpmn2.0jbpm.orig ,then it seems work well.

                                my question is will it cause another problem?

                                • 28. Re: Designer loading problem in drools-guvnor
                                  tsurdilovic

                                  Stanley, maybe you did not read the entire thread before posting, it's ok - this issue has been resolved. You have to update your war (info on that also in this thread).

                                  • 29. Re: Designer loading problem in drools-guvnor
                                    stanley103

                                    thank you, it's working fine now, i thought people.redhat.com/tsurdilo/designer/master is a path before, and don't know that is a url: http://people.redhat.com/tsurdilo/designer/master

                                    it is hard to think i should download something from other web site.

                                    1 2 Previous Next