AnsweredAssumed Answered

activiti-webapp-rest / deployment / NullPointerException

Question asked by hlux on Apr 7, 2011
Latest reply on Apr 8, 2011 by hlux
hello,

To get more familiar with activiti I downloaded the sources of activiti 5.4.
As a starting point I chose to use the activiti-webapp-rest.

My Idea was to get the default installation running and make some changes then.
I started the webapp from inside Eclipse using tomcat 6.0.32.

When I enter the url http://localhost:8080/webapp-rest/
it shows the index.jsp correctly.

Entering http://localhost:8080/webapp-rest/service/index
I'm asked for username and password. I'm using kermit,kermit.

doAuthenticate (ActivitiBasicHttpAuthenticatorFactory) is called
 
public boolean doAuthenticate(String username, String password) {
    return ProcessEngines.getProcessEngine(config.getEngine()).getIdentityService().checkPassword(username, password);
  }

config.getEngine() returns "default"



public static ProcessEngine getProcessEngine(String processEngineName) {
    if (!isInitialized) {
      init();
    }
    return processEngines.get(processEngineName);
  }

this call returns null, because there is no ProcessEngine registered by the name "default".



I wouldn't be surprised if I got something wrong here.
I'd appreciate your help on this.

If anybody can recommend a better way to get used to activiti, in order to successfully set up
and integrate a bpm suite, I'd be happy to hear about it.

greetings
hlux

Outcomes