Trying to run camunda-webapps project not working

I’m trying to run this project to make some local changes.
I’ve followed the configuration instructions.

I’m starting the app with the mvn jetty:run -Pdevelop command but on http://localhost:8080/ nothing is running.

This is the last message that appears:

Dec 21, 2016 3:53:54 PM org.camunda.bpm.pa.demo.InvoiceDemoDataGenerator createDemoData
INFO: Generating demo data for tasklist
Dec 21, 2016 3:53:54 PM org.camunda.bpm.pa.DevProcessApplication createReportDemoData
INFO: Generating random report data for cockpit
log4j:WARN No appenders could be found for logger (org.apache.http.impl.conn.PoolingHttpClientConnectionManager).
log4j:WARN Please initialize the log4j system properly.

I’m using 7.5.0 version.

Thanks,
Leonardo

Hi @lcrodriguez,

Have you tried http://localhost:8080/camunda/ ? It might be necessary to run also grunt auto-build in parallel.

Cheers,
Roman

I have finally make it work with latest version.
I’ve done several changes I needed and works fine from development jetty server.

Now I’m trying to compile the project to move to tomcat for production.

I’m running:

mvn -Pdistro install

I install the WAR file in the tomcat but seems to be poiting to a local rest api instead of the one in the tomcat in /engine-rest/

Is there any other setting to compile properly?

I’m also getting an error on the tasklist using the war. Everything works fine via jetty.

camunda-tasklist-bootstrap.js?bust=7.6.2-SNAPSHOT-1483469443307:1 GET http://localhost:9000/camunda/api/tasklist/plugin/tasklistPlugins/static/app/plugin.css
(anonymous) @ camunda-tasklist-bootstrap.js?bust=7.6.2-SNAPSHOT-1483469443307:1
(anonymous) @ camunda-tasklist-bootstrap.js?bust=7.6.2-SNAPSHOT-1483469443307:1
execCb @ require.js:1
check @ require.js:1
(anonymous) @ require.js:1
(anonymous) @ require.js:1
(anonymous) @ require.js:1
each @ require.js:1
emit @ require.js:1
check @ require.js:1
enable @ require.js:1
init @ require.js:1
o @ require.js:1
completeLoad @ require.js:1
onScriptLoad @ require.js:1
require.js:1 GET http://localhost:9000/camunda/api/tasklist/plugin/tasklistPlugins/static/app/plugin.js?bust=7.6.2-SNAPSHOT-1483469443307 404 ()
req.load @ require.js:1
load @ require.js:1
load @ require.js:1
fetch @ require.js:1
check @ require.js:1
enable @ require.js:1
enable @ require.js:1
(anonymous) @ require.js:1
(anonymous) @ require.js:1
each @ require.js:1
enable @ require.js:1
init @ require.js:1
(anonymous) @ require.js:1
require.js:1 Uncaught Error: Script error for “tasklist-plugin-tasklistPlugins/plugin”
http://requirejs.org/docs/errors.html#scripterror
at makeError (require.js:1)
at HTMLScriptElement.onScriptError (require.js:1)

1 Like

This error only happen when I copy the compiled version. If I copy-paste just the webapp files, it works.
But I do need to compile because I’ve made a Java code change.

1 Like

I’ve found out the main reason is the lack of several jars in the package WEB-INF/lib/ and when deploying does not work.

I’ve added the files manually and started to work as expected.

1 Like