[jboss-user] [jBPM] - jbpm 5.3 and HumanTaskStartupServlet from example

franco80 do-not-reply at jboss.com
Thu Nov 15 04:35:27 EST 2012


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]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121115/8d1d08ba/attachment.html 


More information about the jboss-user mailing list