[jBPM] - Human Task Module RoadMap
by Mauricio Salatino
Mauricio Salatino [https://community.jboss.org/people/salaboy21] modified the document:
"Human Task Module RoadMap"
To view the document, visit: https://community.jboss.org/docs/DOC-18617
--------------------------------------------------------------
I've being working with the Human Task module since I've started with my first steps in the jBPM community more than 3 years ago. Now it's time to take this component to the next level.
This wiki page describes the features and improvements that I will be tackling down on the next few months. If you have feedaback about this roadmap please leave a comment here or contact me.
Most of the changes and new features comes from people that is using jBPM or Drools and the Human Task module to handle Human Interactions, so feel free to drop a your suggestions or features that you would like to see in the short term.
I've divided the work into two different sides:
* External Improvements :* Starting from the Local Task Service I will be focused in the following topics* https://community.jboss.org/docs/DOC-18641 API improvements :Well defined interfaces and factories to interact with the human task functionality. Refactor towards CDI/WELD I will be adding here the proposed changes.
* Documentation & Examples: Documentation about the exposed APIs and about the semantic of each method.
** https://community.jboss.org/docs/DOC-18719 Transport improvements (probably using switchyard/apache camel/quartz) and integration with different environments (Application Server, Servlet Containers)
* Internal Refactorings* https://community.jboss.org/docs/DOC-18641 Review Task, TaskData and I18N structures and queries
* Admin Operations and Queries
* Task Events and Queries
* Refactoring for callbacks mechanisms (Task Parent)
* Task Definition Deployment ( (deploy + new instance) instead of add)
* Lifecycle hooks
* Sub Tasks mechanisms
Notice that the External Changes will happen gradually and in parallel with the internal reviews.
*
#Review_Task_TaskData_and_I18N_structures_and_queries Review Task, TaskData and I18N structures and queries
*
#Admin_Operations_and_Queries_Improvements Admin Operations and Queries Improvements
*
#Task_Events_and_Queries Task Events and Queries
*
#Callbacks_Mechanisms_Review Callbacks Mechanisms Review
*
#Task_Definition_Deployment_and_Instantiation_mechanisms Task Definition Deployment and Instantiation mechanisms
*
#LifeCycle_Hooks LifeCycle Hooks
*
#Sub_Tasks_and_Ad_Hoc_Sub_Tasks_Creation Sub Tasks and Ad Hoc Sub Tasks Creation
I've added my personal priority, but feel free to leave a comment if you have another topics or if you feel that one of these bullets needs to be prioritized.
(10 is Top Priority and 1 Low)
h1. Review Task, TaskData and I18N structures and queries
A deep process of documentation and review of the core data structures that are being used by the module will be done. The main focus
of this revision is to improve these structures to be easily accessed and work in the best way possible. The queries associated to these entities
will be reviewed, extended and documented as necessary. Migration scripts should be provided for migrating the old structures to the new ones in case that new structures
modifies core fields.
A detailed documentation about these structures and the generated tables should be provided by this revision.
A categorization about the provided queries should also be included to identify missing bits.
A set of mock task structures and tests for the queries should be provided to guarrantee the expected results.
Update: Based on revisions to the WS-HT specification and the current structures, I've started to belive that including the concept of
TaskDefinition will help us to create a simplier API, a simple deployment and instantiation mechanism and the relationship between the
different pieces of information that are kept.
This will help us to create simple queries on TaskInstances and more straight forward mechanisms.
All the Presentation, Assignment and delegation related fields can be extracted from the task itself and query only when an operation is executed.
For rendering the only information that matters is the one related with each particular task instance. We can avoid the need of querying for all the
other bits of information.
Update 2: https://community.jboss.org/wiki/HumanTaskAPIAndDataStructuresProposal (https://community.jboss.org/docs/DOC-18641)
Salaboy Priority: 9
h1. Admin Operations and Queries Improvements
All the administrative operations will be centralized in one place. Removing, archiving and querying finished tasks, and all the associated data.
These operations will include:
* Archive Finished Tasks
* Delete Finished Tasks
* Get all the finished tasks by Process instance
* Get all the finished tasks by Process Definition
* Etc.
Salaboy Priority: 7
h1. Task Events and Queries
Provide a mechanisms to record all the events derived by the Task interactions.
The WS-HT Specification defines 30 events that will be emited by the Human Task component depending on the different interactions against a human task instance.
A mechanism to record and query these events will be implemented.
Salaboy Priority: 7
h1. Callbacks Mechanisms Review
The main focus of this review is to extend and abstract the current methods that are being used for registering callabacks from third party components that wants to
keep track of the tasks' lifecycle.
Having different strategies for setting up callbacks will decouple the responsability for this module to decide how to contact the interested components. Providing
an interface to implement these callbacks in an application dependant way will allow us to describe best practices depending on the third party application requirements.
Salaboy Priority: 6
Topic included here also: https://community.jboss.org/wiki/HumanTaskAPIAndDataStructuresProposal (https://community.jboss.org/docs/DOC-18641)
h1. Task Definition Deployment and Instantiation mechanisms
The WS-HT specification defines to phases to Deploy a task definition and then to create an instance for a specific task definition.
This feature will allow us to have global tasks definitions that can be instantiated multiple times once we get a definition deployed. This mechanism
will give us a fine grained control about who creates a task and how the interactions are done.
Salaboy Priority: 4
Topic included here also: https://community.jboss.org/wiki/HumanTaskAPIAndDataStructuresProposal (https://community.jboss.org/docs/DOC-18641)
h1. LifeCycle Hooks
A flexible mechanism to define and plug your own task lifecycles will be provided, increasing the flexibility of the Human Task module to fit more simpler and more complex scenarios.
Salaboy Priority: 4
h1. Sub Tasks and Ad Hoc Sub Tasks Creation
Having a good and flexible mechanisms for creating sub tasks is a very important feature to have and to show. It will allows us to have new tasks defined on the fly depending on
a parent User Task defined in our business processes.
Salaboy Priority: 6
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-18617]
Create a new document in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
13 years, 9 months
[jBPM] - Human Task Module SwitchYard Integration
by Mauricio Salatino
Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the document:
"Human Task Module SwitchYard Integration"
To view the document, visit: https://community.jboss.org/docs/DOC-18719
--------------------------------------------------------------
After providing a well defined set of Interfaces from the Human Task Module the next step is to expose those interfaces as services.
Leveraging the power of CDI and its integration with frameworks like Switchyard, Camel and JMS I will be doing some experiments to integrate these technologies together.
The main focus of this experiments is to remove the need of handling any transport related code inside the Human Task Module.
Providing Sync and Async integration points will allow the Human Task Module to keeps it focus in the internal logic that it handles without adding complexity related with integration.
This integration need to allows us to integrate the module in SE as well as EE environments. HornetQ (JMS implementation) will be used to demonstrate this functionality. Quartz will be used to show the scheduling capabilities that can also be offered by SwitchYard.
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-18719]
Create a new document in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
13 years, 9 months
[jBPM] - Iusse of human task persistence - Transaction not active
by Adam Peng
Adam Peng [https://community.jboss.org/people/patternman] created the discussion
"Iusse of human task persistence - Transaction not active"
To view the discussion, visit: https://community.jboss.org/message/747072#747072
--------------------------------------------------------------
Hi all,
I encoutnered issue when I was executing process including Human Tasks (on the other hand without human task the persistence was working fine!)
The error message is as below:
Hibernate: insert into ProcessInstanceInfo (OPTLOCK, processId, startDate, lastReadDate, lastModificationDate, state, processInstanceByteArray) values (?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into WorkItemInfo (creationDate, name, processInstanceId, state, OPTLOCK, workItemByteArray) values (?, ?, ?, ?, ?, ?)
Hibernate: insert into Task (archived, allowedToDelegate, taskInitiator_id, priority, activationTime, actualOwner_id, createdBy_id, createdOn, documentAccessType, documentContentId, documentType, expirationTime, faultAccessType, faultContentId, faultName, faultType, outputAccessType, outputContentId, outputType, parentId, previousStatus, processId, processInstanceId, processSessionId, skipable, status, workItemId, OPTLOCK) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into I18NText (language, text) values (?, ?)
Hibernate: insert into I18NText (language, text) values (?, ?)
Hibernate: update SessionInfo set lastModificationDate=?, rulesByteArray=?, startDate=?, OPTLOCK=? where id=? and OPTLOCK=?
Hibernate: insert into Content (content) values (?)
Hibernate: update ProcessInstanceInfo set OPTLOCK=?, processId=?, startDate=?, lastReadDate=?, lastModificationDate=?, state=?, processInstanceByteArray=? where InstanceId=? and OPTLOCK=?
Hibernate: update Task set archived=?, allowedToDelegate=?, taskInitiator_id=?, priority=?, activationTime=?, actualOwner_id=?, createdBy_id=?, createdOn=?, documentAccessType=?, documentContentId=?, documentType=?, expirationTime=?, faultAccessType=?, faultContentId=?, faultName=?, faultType=?, outputAccessType=?, outputContentId=?, outputType=?, parentId=?, previousStatus=?, processId=?, processInstanceId=?, processSessionId=?, skipable=?, status=?, workItemId=?, OPTLOCK=? where id=? and OPTLOCK=?
Hibernate: update I18NText set Task_Descriptions_Id=? where id=?
Hibernate: insert into PeopleAssignments_BAs (task_id, entity_id) values (?, ?)
Hibernate: update WorkItemInfo set creationDate=?, name=?, processInstanceId=?, state=?, OPTLOCK=?, workItemByteArray=? where workItemId=? and OPTLOCK=?
Hibernate: insert into PeopleAssignments_PotOwners (task_id, entity_id) values (?, ?)
java.lang.RuntimeException: Could not commit transaction
at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:994)
at org.jbpm.task.service.TaskServiceSession.addTask(TaskServiceSession.java:186)
at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:144)
at org.jbpm.task.service.mina.MinaTaskServerHandler.messageReceived(MinaTaskServerHandler.java:41)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:716)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)
at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:427)
at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:245)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)
at org.apache.mina.filter.logging.LoggingFilter.messageReceived(LoggingFilter.java:177)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:796)
at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:715)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:668)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:657)
at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:68)
at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1141)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.RuntimeException: Unable to rollback transaction
at org.jbpm.task.service.persistence.TaskLocalTransactionManager.rollback(TaskLocalTransactionManager.java:77)
at org.jbpm.task.service.persistence.TaskPersistenceManager.endTransaction(TaskPersistenceManager.java:89)
at org.jbpm.task.service.TaskServiceSession.doOperationInTransaction(TaskServiceSession.java:982)
... 28 more
Caused by: java.lang.IllegalStateException: Transaction not active
at org.hibernate.ejb.TransactionImpl.rollback(TransactionImpl.java:104)
at org.jbpm.task.service.persistence.TaskLocalTransactionManager.rollback(TaskLocalTransactionManager.java:70)
... 30 more
Start task server
:
EntityManagerFactory emf = (EntityManagerFactory) applicationContext.getBean("emf");
// EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.jbpm.persistence.jpa.task.local");
TaskService taskService = new TaskService(emf,SystemEventListenerFactory.getSystemEventListener());
TaskServiceSession taskSession = taskService.createSession();
taskSession.addUser(new User("Administrator"));
MinaTaskServer server = new MinaTaskServer(taskService);
Thread thread = new Thread(server);
thread.start();
log.info("Mina Server has started.");
taskSession.dispose();
p
ersistence.xml
<persistence-unit name="org.jbpm.persistence.jpa.local" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<mapping-file>META-INF/JBPMorm.xml</mapping-file>
<mapping-file>META-INF/ProcessInstanceInfo.hbm.xml</mapping-file>
<mapping-file>META-INF/Taskorm.xml</mapping-file>
<class>org.jbpm.task.Attachment</class>
<class>org.jbpm.task.Content</class>
<class>org.jbpm.task.BooleanExpression</class>
<class>org.jbpm.task.Comment</class>
<class>org.jbpm.task.Deadline</class>
<class>org.jbpm.task.Comment</class>
<class>org.jbpm.task.Deadline</class>
<class>org.jbpm.task.Delegation</class>
<class>org.jbpm.task.Escalation</class>
<class>org.jbpm.task.Group</class>
<class>org.jbpm.task.I18NText</class>
<class>org.jbpm.task.Notification</class>
<class>org.jbpm.task.EmailNotification</class>
<class>org.jbpm.task.EmailNotificationHeader</class>
<class>org.jbpm.task.PeopleAssignments</class>
<class>org.jbpm.task.Reassignment</class>
<class>org.jbpm.task.Status</class>
<class>org.jbpm.task.Task</class>
<class>org.jbpm.task.TaskData</class>
<class>org.jbpm.task.SubTasksStrategy</class>
<class>org.jbpm.task.OnParentAbortAllSubTasksEndStrategy</class>
<class>org.jbpm.task.OnAllSubTasksEndParentEndStrategy</class>
<class>org.jbpm.task.User</class>
<class>org.jbpm.persistence.processinstance.ProcessInstanceInfo</class>
<class>org.drools.persistence.info.SessionInfo</class>
<class>org.drools.persistence.info.WorkItemInfo</class>
<class>org.jbpm.process.audit.ProcessInstanceLog</class>
<class>org.jbpm.process.audit.NodeInstanceLog</class>
<class>org.jbpm.process.audit.VariableInstanceLog</class>
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect"/>
<property name="hibernate.connection.autocommit" value="false" />
<property name="hibernate.max_fetch_depth" value="3"/>
<property name="hibernate.archive.autodetection" value="false"/>
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.BTMTransactionManagerLookup" />
</properties>
</persistence-unit>
applicationContext-jbpm.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:drools="http://drools.org/schema/drools-spring" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://drools.org/schema/drools-spring http://drools.org/schema/drools-spring-1.3.0.xsd">
<bean id="jbpmDS" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
<property name="url" value="${productDB.jbpm.url}"/>
<property name="username" value="${productDB.username}"/>
<property name="password" value="${productDB.password}"/>
</bean>
<bean id="emf" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="dataSource" ref="jbpmDS" />
<property name="persistenceUnitName" value="org.jbpm.persistence.jpa.local" />
</bean>
<bean id="txManager" class="org.springframework.orm.jpa.JpaTransactionManager">
<property name="entityManagerFactory" ref="emf" />
</bean>
<drools:grid-node id="node1" />
<drools:kbase id="kbase1" node="node1">
<drools:resources>
<drools:resource type="BPMN2" source="classpath:processes/test.bpmn" />
</drools:resources>
</drools:kbase>
<drools:ksession id="ksession1" type="stateful" kbase="kbase1" node="node1">
<drools:configuration>
<drools:jpa-persistence>
<drools:transaction-manager ref="txManager" />
<drools:entity-manager-factory ref="emf" />
</drools:jpa-persistence>
</drools:configuration>
</drools:ksession>
<bean id="testService" class="testServiceImpl">
<property name="ksession" ref="ksession1" />
<property name="processId" value="test" />
</bean>
</beans>
And then when I use ksession1 to startProcess, I got above error message. And it's ok to start a process without human task.
Any hints/suggestion would be appreciated !!
BTW I'm using jBPM 5.3.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/747072#747072]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 9 months
[jBPM] - jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand
by Nurlan Rakhimzhanov
Nurlan Rakhimzhanov [https://community.jboss.org/people/nurlan.rakhimzhanov] created the discussion
"jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand"
To view the discussion, visit: https://community.jboss.org/message/747077#747077
--------------------------------------------------------------
Hi, guys!
I am new to jbpm5, I tried to run jbpm5.3 on jboss7, but it shows:
log:
09:31:23,517 INFO org.hibernate.tool.hbm2ddl.SchemaUpdate org.hibernate.tool.hbm2ddl.SchemaUpdate (http--127.0.0.1-8080-6) schema update complete
09:31:23,518 INFO org.hibernate.util.NamingHelper org.hibernate.util.NamingHelper (http--127.0.0.1-8080-6) JNDI InitialContext properties:{}
09:31:23,522 WARN https://community.jboss.org/message/747077#747077#747077/org.hibernate.hq... jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand (http--127.0.0.1-8080-6) no persistent classes found for query class: select processInstanceInfo.processInstanceId from org.jbpm.persistence.processinstance.ProcessInstanceInfo processInstanceInfo join processInstanceInfo.eventTypes eventTypes where eventTypes = :type
09:31:24,231 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.UnhandledException: java.lang.ExceptionInInitializerError
at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:340) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:540) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) resteasy-jaxrs-2.3.2.Final.jar:
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) jbossweb-7.0.13.Final.jar:
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) jbossweb-7.0.13.Final.jar:
at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) https://community.jboss.org/message/747077#747077#747077/classes: jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) jbossweb-7.0.13.Final.jar:
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) jbossweb-7.0.13.Final.jar:
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) jbossweb-7.0.13.Final.jar:
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) jbossweb-7.0.13.Final.jar:
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489) jbossweb-7.0.13.Final.jar:
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) jboss-as-web-7.1.1.Final.jar:7.1.1.Final
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) jbossweb-7.0.13.Final.jar:
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) jbossweb-7.0.13.Final.jar:
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) jbossweb-7.0.13.Final.jar:
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) jbossweb-7.0.13.Final.jar:
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) jbossweb-7.0.13.Final.jar:
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) jbossweb-7.0.13.Final.jar:
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2039) jbossweb-7.0.13.Final.jar:
at java.lang.Thread.run(Thread.java:680) https://community.jboss.org/message/747077#747077#747077/classes.jar:1.6.... jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand
Caused by: java.lang.ExceptionInInitializerError
at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:131) jbpm-gwt-core-5.3.0.Final.jar:5.3.0.Final
at org.jbpm.integration.console.SessionInitializer.(SessionInitializer.java:25) jbpm-gwt-core-5.3.0.Final.jar:5.3.0.Final
at org.jbpm.integration.console.TaskManagement.(TaskManagement.java:51) jbpm-gwt-core-5.3.0.Final.jar:5.3.0.Final
at org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:26) jbpm-gwt-core-5.3.0.Final.jar:5.3.0.Final
at org.jbpm.integration.console.ManagementFactory.createTaskManagement(ManagementFactory.java:19) jbpm-gwt-core-5.3.0.Final.jar:5.3.0.Final
at org.jboss.bpm.console.server.TaskListFacade.getTaskManagement(TaskListFacade.java:72) https://community.jboss.org/message/747077#747077#747077/classes: jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand
at org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRef(TaskListFacade.java:101) https://community.jboss.org/message/747077#747077#747077/classes: jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) https://community.jboss.org/message/747077#747077#747077/classes.jar:1.6.... jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) https://community.jboss.org/message/747077#747077#747077/classes.jar:1.6.... jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) https://community.jboss.org/message/747077#747077#747077/classes.jar:1.6.... jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand
at java.lang.reflect.Method.invoke(Method.java:597) https://community.jboss.org/message/747077#747077#747077/classes.jar:1.6.... jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:155) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525) resteasy-jaxrs-2.3.2.Final.jar:
... 23 more
Caused by: java.lang.RuntimeException: Could not initialize stateful knowledge session: Could not connect task client Mina(127.0.0.1:9123)
at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:163) jbpm-gwt-core-5.3.0.Final.jar:5.3.0.Final
at org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder.(StatefulKnowledgeSessionUtil.java:127) jbpm-gwt-core-5.3.0.Final.jar:5.3.0.Final
... 39 more
Caused by: java.lang.IllegalArgumentException: Could not connect task client Mina(127.0.0.1:9123)
at org.jbpm.integration.console.TaskClientFactory.newAsyncInstance(TaskClientFactory.java:109) jbpm-gwt-core-5.3.0.Final.jar:5.3.0.Final
at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.registerWorkItemHandler(StatefulKnowledgeSessionUtil.java:329) jbpm-gwt-core-5.3.0.Final.jar:5.3.0.Final
at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.initializeStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:158) jbpm-gwt-core-5.3.0.Final.jar:5.3.0.Final
... 40 more
09:31:48,310 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError: Could not initialize class org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder
at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:340) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:540) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:502) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) resteasy-jaxrs-2.3.2.Final.jar:
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) jbossweb-7.0.13.Final.jar:
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) jbossweb-7.0.13.Final.jar:
at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) https://community.jboss.org/message/747077#747077#747077/classes: jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) jbossweb-7.0.13.Final.jar:
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) jbossweb-7.0.13.Final.jar:
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) jbossweb-7.0.13.Final.jar:
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) jbossweb-7.0.13.Final.jar:
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:489) jbossweb-7.0.13.Final.jar:
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) jboss-as-web-7.1.1.Final.jar:7.1.1.Final
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) jbossweb-7.0.13.Final.jar:
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) jbossweb-7.0.13.Final.jar:
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) jbossweb-7.0.13.Final.jar:
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) jbossweb-7.0.13.Final.jar:
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) jbossweb-7.0.13.Final.jar:
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) jbossweb-7.0.13.Final.jar:
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2039) jbossweb-7.0.13.Final.jar:
at java.lang.Thread.run(Thread.java:680) https://community.jboss.org/message/747077#747077#747077/classes.jar:1.6.... jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder
at org.jbpm.integration.console.StatefulKnowledgeSessionUtil.getStatefulKnowledgeSession(StatefulKnowledgeSessionUtil.java:131) jbpm-gwt-core-5.3.0.Final.jar:5.3.0.Final
at org.jbpm.integration.console.SessionInitializer.(SessionInitializer.java:25) jbpm-gwt-core-5.3.0.Final.jar:5.3.0.Final
at org.jbpm.integration.console.ProcessManagement.(ProcessManagement.java:38) jbpm-gwt-core-5.3.0.Final.jar:5.3.0.Final
at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22) jbpm-gwt-core-5.3.0.Final.jar:5.3.0.Final
at org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19) jbpm-gwt-core-5.3.0.Final.jar:5.3.0.Final
at org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:89) https://community.jboss.org/message/747077#747077#747077/classes: jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand
at org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:125) https://community.jboss.org/message/747077#747077#747077/classes: jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) https://community.jboss.org/message/747077#747077#747077/classes.jar:1.6.... jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) https://community.jboss.org/message/747077#747077#747077/classes.jar:1.6.... jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) https://community.jboss.org/message/747077#747077#747077/classes.jar:1.6.... jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand
at java.lang.reflect.Method.invoke(Method.java:597) https://community.jboss.org/message/747077#747077#747077/classes.jar:1.6.... jbpm5.3 on jboss-as-7.1.1.Final shows ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/gwt-console-server].[Resteasy]] (http--127.0.0.1-8080-6) Servlet.service() for servlet Resteasy threw exception: org.jboss.resteasy.spi.Unhand
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:155) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211) resteasy-jaxrs-2.3.2.Final.jar:
at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525) resteasy-jaxrs-2.3.2.Final.jar:
... 23 more
in browser:
is there some suggestion or hints?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/747077#747077]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 9 months
[jBPM] - Cannot retrieve a result from human task in jBPM 5.3
by Jiri Svitak
Jiri Svitak [https://community.jboss.org/people/jsvitak] created the discussion
"Cannot retrieve a result from human task in jBPM 5.3"
To view the discussion, visit: https://community.jboss.org/message/745525#745525
--------------------------------------------------------------
Hello,
I was unable to get working human tasks in jBPM 5.3, particularly retrieving a result from human task form to a process variable. At first I suffered the same problem as here:
https://community.jboss.org/thread/200849 https://community.jboss.org/thread/200849
The fix for that was applied only to master branch, so I switched from 5.3.0-SNAPSHOT to 5.4.0-SNAPSHOT in the pom file of my project.
However now I experience a new error in the server log (jBPM engine in my application hangs):
18:55:04,163 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) java.io.OptionalDataException
18:55:04,163 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1339)
18:55:04,163 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jbpm.integration.console.forms.TaskFormDispatcher.provideForm(TaskFormDispatcher.java:77)
18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jbpm.integration.console.forms.FormDispatcherComposite.provideForm(FormDispatcherComposite.java:50)
18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jboss.bpm.console.server.FormProcessingFacade.provideForm(FormProcessingFacade.java:205)
18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jboss.bpm.console.server.FormProcessingFacade.renderTaskUI(FormProcessingFacade.java:127)
18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at java.lang.reflect.Method.invoke(Method.java:597)
18:55:04,164 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)
18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)
18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)
18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)
18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
18:55:04,165 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
18:55:04,166 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480)
18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
18:55:04,167 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
18:55:04,168 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
18:55:04,168 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
18:55:04,168 ERROR [stderr] (http-localhost-127.0.0.1-8080-6) at java.lang.Thread.run(Thread.java:662)
I have attached .bpmn2 file with my business process definition. I use HornetQHTWorkItemHandler.
I was recommended (M.Salatino) to try using a map variable to retrieve a value from the form, but that doesn't help. In the generated form was only one field named the same as the map variable, not the String variable contained in the map. After filling the badly generated form I experienced the same exception as above and the engine hung.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/745525#745525]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 9 months
[JNDI and Naming] - Error using JNDI datasouce on JBoss 7 for MySQL
by Pirzada Rashid
Pirzada Rashid [https://community.jboss.org/people/prashid] created the discussion
"Error using JNDI datasouce on JBoss 7 for MySQL"
To view the discussion, visit: https://community.jboss.org/message/746991#746991
--------------------------------------------------------------
I have spent many hrs try to fix the problem but no success. Googled and raed many related articles. followed this https://community.jboss.org/docs/DOC-16657 https://community.jboss.org/wiki/DataSourceConfigurationInAS7 also.
I want to connect MySQL database using JNDI dataSource on JBoss to reterive some data.
Someone please help.
*Error is generated as soon as I run test.jsp:*
javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver found for java:/jdbc/bookstore"
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.test_jsp._jspService(test_jsp.java:90)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
+*This is what I got*+
MySQL Server 5.5:
database -> bookstore
table -> book
connector -> mysql-connector-java-5.1.21-bin.jar
container -> jboss-as-7.1.1.Final
IDE -> Eclipse juno
h3. STEP 1 - JBoss:
[JBoss_Home]/modules/com/mysql/main -> Got files below
module.xml
mysql-connector-java-5.1.21-bin.jar
mysql-connector-java-5.1.21-bin.jar -> this auto created
h5. module.xml contain:
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.0" name="com.mysql">
<resources>
<resource-root path="mysql-connector-java-5.1.21-bin.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
</dependencies>
</module>
h3. STEP 2 JBoss:
[JBoss_Home]/standalone/configuration/standalone.xml
h5. standalone.xml added dataSource as below:
<subsystem xmlns="urn:jboss:domain:datasources:1.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
<connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1</connection-url>
<driver>h2</driver>
<security>
<user-name>sa</user-name>
<password>sa</password>
</security>
</datasource>
<datasource jta="true" jndi-name="java:/jdbc/bookstore" pool-name="bookstore_pool" enabled="true" use-java-context="true" use-ccm="true">
<connection-url>jdbc:mysql://localhost:3306/bookstore</connection-url>
<driver>mysql</driver>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<pool>
<min-pool-size>10</min-pool-size>
<max-pool-size>100</max-pool-size>
<prefill>true</prefill>
</pool>
<security>
<user-name>root</user-name>
<password>786</password>
</security>
<statement>
<prepared-statement-cache-size>32</prepared-statement-cache-size>
<share-prepared-statements>true</share-prepared-statements>
</statement>
</datasource>
<drivers>
<driver name="mysql" module="com.mysql">
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
<driver name="h2" module="com.h2database.h2">
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
h3. STEP 3 - Eclipse Project:
h5. test.jsp page:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib uri=" http://java.sun.com/jsp/jstl/sql http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
<%@ taglib uri=" http://java.sun.com/jsp/jstl/core http://java.sun.com/jsp/jstl/core" prefix="c" %>
<sql:query var="rs" dataSource="java:/jdbc/bookstore">
select title,description from book
</sql:query>
<html>
<head>
<title>DB Test</title>
</head>
<body>
<h2>Results</h2>
<c:forEach var="row" items="${rs.rows}">
Foo ${row.title}<br/>
Bar ${row.description}<br/>
</c:forEach>
</body>
</html>
h5. Add in web.xml:
<!-- JDBC DataSources (java:comp/env/jdbc) -->
<resource-ref>
<description>The used datasource</description>
<res-ref-name>jdbc/bookstore</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
h5. jboss-web.xml contains:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<resource-ref>
<res-ref-name>jdbc/bookstore</res-ref-name>
<jndi-name>java:/jdbc/bookstore</jndi-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</jboss-web>
+*Below is the project structure:*+
https://community.jboss.org/servlet/JiveServlet/showImage/2-746991-18963/... https://community.jboss.org/servlet/JiveServlet/downloadImage/2-746991-18...
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/746991#746991]
Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 9 months
[JBoss Web Services] - WSProvideTask issues
by anand pushparaj
anand pushparaj [https://community.jboss.org/people/anand-pushparaj] created the discussion
"WSProvideTask issues"
To view the discussion, visit: https://community.jboss.org/message/746894#746894
--------------------------------------------------------------
Hi All,
I am migrating an application in weblogic to JBoss 5.1.0. While doing so, I replaced the servicegen with wsprovide.
<path
id="wsprovide.path">
<fileset dir="C:/newjboss/jboss-5.1.0.GA/client" includes="jbossws-spi.jar" />
<fileset dir="C:/newjboss/jboss-5.1.0.GA/client" includes="*.jar" />
</path>
<taskdef
name="wsprovide" classname="org.jboss.wsf.spi.tools.ant.WSProvideTask" classpathref="wsprovide.path" />
<wsprovide
fork="false"
keep=
"true"
destdir=
"output"
resourcedestdir=
"out-resource"
sourcedestdir=
"out-resource"###
###
#
genwsdl=
"true"
verbose=
"true"
sei=
"org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImpl">
<classpath>
<pathelement path="${tests.output.dir}/classes/>
</wsprovide>
</classpath>
However i get the below stack of errors :##
[
wsprovide] Generating from endpoint: org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImpl[
wsprovide] Output directory: C:\july5\Server\dist\chemselect[
wsprovide] Source directory: C:\july5\Server\org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImpl[
wsprovide] Generating WSDL:
BUILD FAILED
C:\july5\Server\build.xml:190: org.jboss.ws.WSException
: Cannot obtain @WebService annotation from: org.jboss.ws.tools.jaxws.impl.JBossWSProviderFactoryImp
Can anyone help me know where am going wrong or what i am missing.
Any how do we generate JBoss.xml for EJBDoclet? If that is not possible, what is the work around ?
Thank you.
Regards,
P.Anand
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/746894#746894]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 9 months