Discussion:
[jboss-user] [jBPM] - Latest jBPMN Console NG won't build
focky
2013-02-15 08:37:37 UTC
Permalink
focky [https://community.jboss.org/people/focky] created the discussion

"Latest jBPMN Console NG won't build"

To view the discussion, visit: https://community.jboss.org/message/797832#797832

--------------------------------------------------------------
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:

Loading Image... Loading Image...

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?

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

Thanks.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797832#797832]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Mauricio Salatino
2013-02-15 12:20:03 UTC
Permalink
Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion

"Re: Latest jBPMN Console NG won't build"

To view the discussion, visit: https://community.jboss.org/message/797885#797885

--------------------------------------------------------------
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
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797885#797885]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
focky
2013-02-15 13:20:39 UTC
Permalink
focky [https://community.jboss.org/people/focky] created the discussion

"Re: Latest jBPMN Console NG won't build"

To view the discussion, visit: https://community.jboss.org/message/797909#797909

--------------------------------------------------------------
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?:

Loading Image... Loading Image...

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

Thanks!
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797909#797909]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Mauricio Salatino
2013-02-15 13:42:27 UTC
Permalink
Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion

"Re: Latest jBPMN Console NG won't build"

To view the discussion, visit: https://community.jboss.org/message/797916#797916

--------------------------------------------------------------
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
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797916#797916]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
focky
2013-02-15 15:54:18 UTC
Permalink
focky [https://community.jboss.org/people/focky] created the discussion

"Re: Latest jBPMN Console NG won't build"

To view the discussion, visit: https://community.jboss.org/message/797946#797946

--------------------------------------------------------------
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$***@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
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797946#797946]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Demian Calcaprina
2013-02-15 15:58:22 UTC
Permalink
Demian Calcaprina [https://community.jboss.org/people/calca] created the discussion

"Re: Latest jBPMN Console NG won't build"

To view the discussion, visit: https://community.jboss.org/message/797950#797950

--------------------------------------------------------------
This happened to me in Windows too, and it was solved by changing the https://github.com/droolsjbpm/jbpm-console-ng/blob/master/jbpm-console-ng-showcase/src/main/webapp/WEB-INF/jetty-env.xml 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>
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797950#797950]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Mauricio Salatino
2013-02-15 15:59:36 UTC
Permalink
Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion

"Re: Latest jBPMN Console NG won't build"

To view the discussion, visit: https://community.jboss.org/message/797951#797951

--------------------------------------------------------------
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..  :(
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797951#797951]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
focky
2013-02-15 16:15:56 UTC
Permalink
focky [https://community.jboss.org/people/focky] created the discussion

"Re: Latest jBPMN Console NG won't build"

To view the discussion, visit: https://community.jboss.org/message/797962#797962

--------------------------------------------------------------
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!
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/797962#797962]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...