0
activiti를 설치하고 샘플 vacationrequest bpmn 프로젝트를 만들려면 activiti 사용자 가이드 http://www.activiti.org/userguide/#demo.setup.one.minute.version을 팔로우하고 있습니다. 프로젝트를 실행할 때 프로세스 엔진 생성과 관련하여이 오류가 발생합니다.일식 activiti에서 BPMN 샘플 오류
exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.activiti.engine.ProcessEngines.<clinit>(ProcessEngines.java:63)
at vacation.resources.test.main(test.java:15)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 2 more
이 내 test.java 클래스
package vacation.resources;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;
import org.activiti.engine.ProcessEngines;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.RuntimeService;
public class test {
public static void main(String[] args) {
// TODO Auto-generated method stub
ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
RepositoryService repositoryService = processEngine.getRepositoryService();
repositoryService.createDeployment()
.addClasspathResource("VacationRequest.bpmn20.xml")
.deploy();
// Log.info("Number of process definitions: " + repositoryService.createProcessDefinitionQuery().count());
}
}
이며, 이것은 내가 getDefaultProcessEngine (보다 다른 옵션을 시도
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration">
<property name="jdbcUrl" value="jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000" />
<property name="jdbcDriver" value="org.h2.Driver" />
<property name="jdbcUsername" value="sa" />
<property name="jdbcPassword" value="" />
</bean>
</beans>
내 activiti.cfg.xml 파일)하지만 그들은 모두 종료 위로 오류.