7 Replies Latest reply on Feb 15, 2013 11:15 AM by focky

    Latest jBPMN Console NG won't build

    focky

      First I wan't to say that the new jBPM Console NG and the uberfire framework looks very good => nice job.

       

      The latest commits of February 14th on the console NG project, leads to an ERROR in the build (mvn clean install).

       

      The error is the following: Cannot run program "...JAVA URL...": CreateProcess error=206, The filename or extension is too long:

       

      error.png

       

      When I take the tagged release of GitHub (6.0.0.Alpha7) it does build perfectly, but when trying to run (mvn gwt:run) I receive the followin error in the GWT developmet mode:

       

      00:00:00,003 [ERROR] Unable to find 'org/jbpm/console/ng/bh/JbpmConsoleNGBPMHomeClient.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?

       

      error_GWT.png

      Could someone please point me in the right direction to solve this, so I can get the nice new console up and running.

       

      Thanks.

        • 1. Re: Latest jBPMN Console NG won't build
          salaboy21

          Hi Focky,

          Thanks for the feedback. The error that you are getting with the latest source code sounds as a windows problem. "File too long" is not something that we can see in unix like OS. Can you please take a look at the stack trace to see if we can find out which is the file that is causing troubles? I'm running on Mac OSX now, so if we find the problem I will fix it and you can test it.

          Did you pull the latest sources today? if so, please do a mvn clean install on the root directory.

          Cheers

          • 2. Re: Latest jBPMN Console NG won't build
            focky

            Hey Mauricio,

             

            Thanks for the fast reply.

             

            I've replaced the maven and github repositories to the C-drive and than the build worked :-) , so potentially windows users with default settings could have the same build issue.

             

            performing a mvn gwt:run, the jetty server returns an 503 error both in Chrome as in Firefox, is this as expected?:

             

            GWTRun.png

             

            But I when deploying the distribution war file to Jboss, all works well.

             

            Thanks!

            • 3. Re: Latest jBPMN Console NG won't build
              salaboy21

              Can you take a look at the GWT Development Mode console to see what is going on in jetty?

              I rememebr that there are some temporal files being created at /tmp/ which is also unix. Can you please pastebin the stack traces from the terminal?

               

              Cheers

              • 4. Re: Latest jBPMN Console NG won't build
                focky

                On the GWT dev mode, there are following warnings on jetty:

                 

                -----------

                --- 1

                ----------

                 

                                00:00:00,978 [WARN] Config error at <New id="tx" class="org.mortbay.jetty.plus.naming.Resource"><Arg>java:comp/UserTransaction</Arg><Arg>

                <Call name="getTransactionManager" class="bitronix.tm.TransactionManagerServices"/>

                </Arg></New>   

                 

                 

                -----------

                --- 2

                ----------

                 

                                00:00:00,978 [WARN] Failed startup of context org.jboss.errai.cdi.server.gwt.JettyLauncher$WebAppContextWithReload@b8338f{/,c:\GitHub\jbpm-console-ng\jbpm-console-ng-showcase\target\jbpm-console-ng-showcase-6.0.0-SNAPSHOT} 

                java.lang.reflect.InvocationTargetException: null
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.mortbay.xml.XmlConfiguration.call(XmlConfiguration.java:534)
                ...
                     at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)
                     at com.google.gwt.dev.DevMode.main(DevMode.java:311)
                Caused by: bitronix.tm.utils.InitializationException: cannot open disk journal
                     at bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:75)
                     at bitronix.tm.TransactionManagerServices.getTransactionManager(TransactionManagerServices.java:62)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:597)
                     at org.mortbay.xml.XmlConfiguration.call(XmlConfiguration.java:534)
                     at org.mortbay.xml.XmlConfiguration.itemValue(XmlConfiguration.java:905)
                     at org.mortbay.xml.XmlConfiguration.value(XmlConfiguration.java:829)
                ...
                     at org.mortbay.jetty.Server.doStart(Server.java:222)
                     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
                     at org.jboss.errai.cdi.server.gwt.JettyLauncher.start(JettyLauncher.java:692)
                     at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
                     at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1093)
                     at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)
                     at com.google.gwt.dev.DevMode.main(DevMode.java:311)
                Caused by: java.io.FileNotFoundException: .
                      btm2.tlog (The filename, directory name, or volume label syntax is incorrect)
                     at java.io.RandomAccessFile.open(Native Method)
                     at java.io.RandomAccessFile.<init>(RandomAccessFile.java:216)
                     at bitronix.tm.journal.DiskJournal.createLogfile(DiskJournal.java:231)
                     at bitronix.tm.journal.DiskJournal.open(DiskJournal.java:136)
                     at bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:62)
                ...
                     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
                     at org.jboss.errai.cdi.server.gwt.JettyLauncher.start(JettyLauncher.java:692)
                     at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
                     at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1093)
                     at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)
                     at com.google.gwt.dev.DevMode.main(DevMode.java:311)

                 

                -----------

                --- 3

                ----------

                 

                                00:00:00,979 [WARN] Nested in java.lang.reflect.InvocationTargetException: 

                bitronix.tm.utils.InitializationException: cannot open disk journal
                     at bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:75)
                     at bitronix.tm.TransactionManagerServices.getTransactionManager(TransactionManagerServices.java:62)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                ...
                     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
                     at org.jboss.errai.cdi.server.gwt.JettyLauncher.start(JettyLauncher.java:692)
                     at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
                     at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1093)
                     at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)
                     at com.google.gwt.dev.DevMode.main(DevMode.java:311)
                Caused by: java.io.FileNotFoundException: .
                      btm2.tlog (The filename, directory name, or volume label syntax is incorrect)
                     at java.io.RandomAccessFile.open(Native Method)
                     at java.io.RandomAccessFile.<init>(RandomAccessFile.java:216)
                     at bitronix.tm.journal.DiskJournal.createLogfile(DiskJournal.java:231)
                     at bitronix.tm.journal.DiskJournal.open(DiskJournal.java:136)
                     at bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:62)
                     at bitronix.tm.TransactionManagerServices.getTransactionManager(TransactionManagerServices.java:62)
                ...
                     at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
                     at org.jboss.errai.cdi.server.gwt.JettyLauncher.start(JettyLauncher.java:692)
                     at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:509)
                     at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1093)
                     at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:836)
                     at com.google.gwt.dev.DevMode.main(DevMode.java:311)

                 

                The error when opening a browser (see attachment image)

                 

                Cheers

                • 5. Re: Latest jBPMN Console NG won't build
                  calca

                  This happened to me in Windows too, and it was solved by changing the jety-env.xml file. I changed it to used some specific directory in windows instead of ".".

                   

                  <Call name="getConfiguration" class="bitronix.tm.TransactionManagerServices">

                      <Set name="serverId">jetty-btm-node0</Set>

                      <Set name="logPart1Filename">

                      C:/tmp/btm1.tlog

                      </Set>

                      <Set name="logPart2Filename">

                            C:/tmp/btm2.tlog

                      </Set>

                    </Call>

                  1 of 1 people found this helpful
                  • 6. Re: Latest jBPMN Console NG won't build
                    salaboy21

                    Thanks Demian, I was looking for that file

                    Any idea how to fix it for all the platforms? we cannot use C:/tmp for unix and we cannot use . for windows.. 

                    • 7. Re: Latest jBPMN Console NG won't build
                      focky

                      Perfect, that did the trick

                       

                      If there is a generic solution (for both to long name and logging of jetty) for this, that would be handy, for later releases.

                       

                      Thanks!