Cant' login (demo:demo) in wildfly distribution

534 views
Skip to first unread message

Patrick Werner

unread,
Jul 7, 2015, 8:01:23 AM7/7/15
to camunda-...@googlegroups.com
I just tried to run the prepackaged camunda wildfly server.
d/l -> unzip -> startserver.sh

I can see the welcome page. If i try to login in cockpit or taskmanager  with demo demo i get a Unauthorized :
Login is required to access the resource message.
In the logfile (http://pastebin.com/gbJ53Eac) i can see the following errors:
  • [stderr] (ServerService Thread Pool -- 54) ScriptEngineManager providers.next(): javax.script.ScriptEngineFactory: Provider com.sun.script.javascript.RhinoScriptEngineFactory not found
  • [stderr] (xnio-file-watcher[Watcher for /Users/patrickwerner/java_server_env/camunda-bpm-wildfly-7.3.0/./server/wildfly-8.2.0.Final/standalone/tmp/vfs/temp/tempc2b5709915e76ba9/camunda-example-invoice-7.3.0.war-5797a20ffced85dd/]-0) Exception in thread "xnio-file-watcher[Watcher for /Users/patrickwerner/java_server_env/camunda-bpm-wildfly-7.3.0/./server/wildfly-8.2.0.Final/standalone/tmp/vfs/temp/tempc2b5709915e76ba9/camunda-example-invoice-7.3.0.war-5797a20ffced85dd/]-0" java.nio.file.ClosedWatchServiceException
  • [stderr] (xnio-file-watcher[Watcher for /Users/patrickwerner/java_server_env/camunda-bpm-wildfly-7.3.0/./server/wildfly-8.2.0.Final/standalone/tmp/vfs/temp/tempc2b5709915e76ba9/camunda-example-invoice-7.3.0.war-5797a20ffced85dd/]-0) at sun.nio.fs.AbstractWatchService.checkOpen(AbstractWatchService.java:80)
  • [stderr] (xnio-file-watcher[Watcher for /Users/patrickwerner/java_server_env/camunda-bpm-wildfly-7.3.0/./server/wildfly-8.2.0.Final/standalone/tmp/vfs/temp/tempc2b5709915e76ba9/camunda-example-invoice-7.3.0.war-5797a20ffced85dd/]-0) at sun.nio.fs.AbstractWatchService.checkKey(AbstractWatchService.java:92)
with the camunda tomcat package i never had a problem: unzip, run, login..
what am i missing here?

Christian Lipphardt

unread,
Jul 7, 2015, 8:09:42 AM7/7/15
to camunda-...@googlegroups.com
Hi Patrick,

Just try to restart the server again. It seems that it is a Wildfly bug,
see [1] and [2].

Cheers,
Christian

[1]: https://developer.jboss.org/message/911519
[2]: https://issues.jboss.org/browse/XNIO-240

signature.asc

Patrick Werner

unread,
Jul 7, 2015, 8:16:23 AM7/7/15
to camunda-...@googlegroups.com
Am Dienstag, 7. Juli 2015 14:09:42 UTC+2 schrieb Christian Lipphardt:

Just try to restart the server again. It seems that it is a Wildfly bug,
see [1] and [2].

Hi Christian,

i (of course) tried several restarts. Still not working. 

Frank Langelage

unread,
Jul 7, 2015, 1:35:05 PM7/7/15
to camunda-...@googlegroups.com
The problem might still exist in 8.2.0. There was a fix in March this year, see [1].
This fix will be part of 8.2.1 if it will ever be released.
But as it simply is a fix in an module.xml file, you could add the same line to your unzipped Wildfly version.
Filename is modules/system/layers/base/sun/jdk/main/module.xml.

[1]: https://github.com/wildfly/wildfly/commit/2d53a0718c39c13f91afd9dd7cf7c7fe5f88269a

Christian Lipphardt

unread,
Jul 8, 2015, 5:02:15 AM7/8/15
to camunda-...@googlegroups.com, frank.l...@osnanet.de
Hi Patrick,

Did you try to to clean your browser cache / use anonymous mode in your browser logging in?

Cheers,
Christian

Patrick Werner

unread,
Aug 10, 2015, 7:54:19 AM8/10/15
to camunda BPM users, frank.l...@osnanet.de
I tried to fix the module.xml and cleared all caches.
The problem is related to Java8 i think.

So i tried to use wildfly9 - without any success, run into the same issue as mentioned here:

I then tried to compile the wildfly9+ fork:

Without any success:
[ERROR] /Users/patrickwerner/Downloads/camunda-bpm-platform-wildfly9-/engine/src/main/java/org/camunda/bpm/engine/impl/cmmn/handler/HumanTaskItemHandler.java:[202,37] cannot find symbol
  symbol
:   method getCamundaFollowUpDate()
  location
: variable definition of type org.camunda.bpm.model.cmmn.instance.HumanTask

Im using maven 3.3.3 with JDK  1.8.0_51.

Has anyone managed to get camunda working with wildfly9 / JDK8 ?
I think @frank hast this combination working. What am i doing wrong whilst compiling your fork?

Frank Langelage

unread,
Aug 10, 2015, 10:56:45 AM8/10/15
to camunda BPM users
I think branch wildfly9+ never build successful, there I started to make the number of threads configurable as it was before, using JBoss's threads module bus got stuck somewhere.
Branch wildfly9 unfortunately shows the same problem. Don't know why and since when. Do not have time available right now to spend on this problem.

You might take the master branch and build this: mvn clean; mvn install -Pdistro-serverless -Pdistro-wildfly9.
This is based on the current Camunda-BPM 7.4.0-SNAPSHOT as of last Friday, using WildFly 9.0.1. I regularly update this branch with the latest commits from camunda/master.
I just cloned this branch and build it and tried it. It works for me.

This I tried only tried to compile and run it with JDK 7.
But I'm using this camunda-bpm module wildfly9 also together with WildFly 10 Beta1 (WF 10 requires Java 8).

Reply all
Reply to author
Forward
0 new messages