cancel
Showing results for 
Search instead for 
Did you mean: 

Activity with Jetty

wir33658
Champ in-the-making
Champ in-the-making
This might be not very important for you guys right now. I try to run Activiti with Jetty and by fooling around with it. I get some exceptions.
I figured out that a file is missing : activiti-form.js (in activit-explorer/js).

This is referenced by activit-explorer/WEB-INF/templates/activiti.template.lib.ftl and activit-probe/WEB-INF/templates/activiti.template.lib.ftl.

Looks like Tomcat does not have any problems if this file being not there, but Jetty does. (The exception thrown does not mention the activiti-form.js, which made it hard to figure this out. But there are debuggers ;-). Any how activiti-form.js is missing).

Where am I able to get: activiti-form.js

Cheers, Rob.
4 REPLIES 4

tombaeyens
Champ in-the-making
Champ in-the-making
Getting it to run on Jetty has our interest.  Especially since Jetty is the preferred servlet container for a number of solutions out there running in the cloud.  So we definitely want to keep that open.  Thanks for bringing it to our attention.  We'll be looking for that file and keep you posted 😉

chaoranxie
Champ in-the-making
Champ in-the-making
any update on this? is the a how-to for setting up Activiti with Jetty. Thanks

trademak
Star Contributor
Star Contributor
Hi,

We use Jetty quite a bit together with Activiti. Are you experiencing specific issues?

Best regards,

chaoranxie
Champ in-the-making
Champ in-the-making
Hi Tijs,

I am trying to find a reference setup of Activiti running on Jetty, currently we are trying to have jetty run the war file of we download from http://activiti.org/download.html and trying to override the setting using environment variables like jdbc.username. We are trying to find out how we can pass things like ldap config http://www.activiti.org/userguide/#chapter_ldap to jetty so that it can be pass down the the war file without modifying the war file itself.

<code>
    System.setProperty("jdbc.username", zkConfig.getString("hubspot.activiti.database.master.userName"));
    System.setProperty("jdbc.password", zkConfig.getString("hubspot.activiti.database.master.password"));
    System.setProperty("jdbc.driver", "com.mysql.jdbc.Driver");
    System.setProperty("jdbc.url", dataSource.getConnection().getMetaData().getURL() + "?useSSL=false");
    String endpoint = "/activiti-explore"
    String port = Optional.ofNullable(System.getenv("PORT")).orElse("8080");
    Server server = new Server(Integer.valueOf(port));
    WebAppContext webAppContext = new WebAppContext();
    webAppContext.setContextPath(endpoint);
    File warFile = new File();
    webAppContext.setWar(warFile.getAbsolutePath());
    server.setHandler(webAppContext);
</code>