franco80 [https://community.jboss.org/people/franco80] created the discussion
"jbpm 5.3 and HumanTaskStartupServlet from example" To view the discussion, visit: https://community.jboss.org/message/776625#776625 -------------------------------------------------------------- hello I have a question, when build my application with servlets, but without stop server I always recived error: 10:29:18,310 ERROR [stderr] (Thread-69) Exception in thread "Thread-69" java.lang.RuntimeException: Could not start human task server, address already in use, is it possible that another instance of the task server is already running? 10:29:18,310 ERROR [stderr] (Thread-69) at org.jbpm.task.service.mina.BaseMinaTaskServer.run(BaseMinaTaskServer.java:64) 10:29:18,310 ERROR [stderr] (Thread-69) at java.lang.Thread.run(Thread.java:722) code init servlet method is: EntityManagerFactory emfTask = Persistence .createEntityManagerFactory("org.jbpm.task"); TaskService taskService = new TaskService(emfTask, SystemEventListenerFactory.getSystemEventListener()); /* Add the required users */ TaskServiceSession ts = taskService.createSession(); ts.addUser(new User("admin")); ... ts.addGroup(new Group("MANAGER")); ... /* Start Mina server for HT */ MinaTaskServer server = new MinaTaskServer(taskService); /* Thread */ thread = new Thread(server) {}; thread.start(); I must always stop the jboss server when I throw new version appplication or this error is 'harmless' :) ? -------------------------------------------------------------- Reply to this message by going to Community [https://community.jboss.org/message/776625#776625] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
