[jBPM] - jbpm 5.4 installation problems with eclipse
by David Harris
David Harris [https://community.jboss.org/people/dmwpepper] created the discussion
"jbpm 5.4 installation problems with eclipse"
To view the discussion, visit: https://community.jboss.org/message/800693#800693
--------------------------------------------------------------
Hello,
I need some help getting Eclipse to work with the jbpm installation. I downloaded and unzipped jpemo-5.4.0.final-installer-full.zip. I then ran ant install.demo and the build failed when getting to the Eclipse installation part. The error message is in red bold below:
[unzip] Expanding: C:\jbpm\jbpm-installer\lib\jboss-as-7.1.1.Final.zip into C:\jbpm\jbpm-installer
1. check.jboss.version:
1. download.db.driver.check:
[echo] Checking if db driver jar has been downloaded ....//db/driver/h2.jar
1. download.db.driver:
1. install.db.files:
1. download.drools.guvnor.check:
[echo] Checking Drools Guvnor download ...
1. download.drools.guvnor:
1. install.guvnor.into.jboss:
[mkdir] Created dir: C:\jbpm\jbpm-installer\target
[unzip] Expanding: C:\jbpm\jbpm-installer\lib\guvnor-distribution-wars-5.5.0.Final.war into C:\jbpm\jbpm-installer\target
[copy] Copying 1 file to C:\jbpm\jbpm-installer\target\WEB-INF\classes
[zip] Building zip: C:\jbpm\jbpm-installer\target\guvnor-distribution-wars-5.5.0.Final.war
[copy] Copying 1 file to C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments
[delete] Deleting directory C:\jbpm\jbpm-installer\target
1. download.designer.check:
[echo] Checking Designer download ...
1. download.designer:
1. install.designer.into.jboss:
[copy] Copying 1 file to C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments
1. check.jboss.version:
1. created.designer.deployment.as7:
[touch] Creating C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments\designer.war.dodeploy
1. download.jBPM.gwt-console.check:
[echo] Checking jBPM gwt-console download ...EE6
1. download.jBPM.gwt-console:
1. install.jBPM-gwt-console.into.jboss:
1. check.jboss.version:
1. download.transport.lib.check:
1. install.transport.lib:
1. install.jBPM-gwt-console.into.jboss5:
1. check.jboss.version:
1. install.jBPM-gwt-console.into.jboss7:
1. check.birt.as7:
1. download.birt.check.as7:
[echo] Checking birt reporting engine download for as7 ...
1. download.birt.as7:
[mkdir] Created dir: C:\jbpm\jbpm-installer\target
[mkdir] Created dir: C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-war
[unzip] Expanding: C:\jbpm\jbpm-installer\lib\jbpm-gwt-console-server-5.4.0.Final-EE6.war into C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-war
[copy] Copying 1 file to C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\lib
[copy] Copying 5 files to C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\classes
[copy] Warning: Could not find file C:\jbpm\jbpm-installer\db\jbpm-persistence.xml to copy.
[copy] Copying 1 file to C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\classes\META-INF
1. check.birt.as7:
1. install.reporting.into.jboss7:
[mkdir] Created dir: C:\jbpm\jbpm-installer\birt
[unzip] Expanding: C:\jbpm\jbpm-installer\lib\birt-runtime-3_7_0.zip into C:\jbpm\jbpm-installer\birt
[copy] Copying 77 files to C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\lib
[mkdir] Created dir: C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\output
[mkdir] Created dir: C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\reports
[copy] Copying 1 file to C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-war\WEB-INF\reports
[delete] Deleting directory C:\jbpm\jbpm-installer\birt
1. install.dependencies:
[zip] Building zip: C:\jbpm\jbpm-installer\target\jbpm-gwt-console-server-5.4.0.Final.war
[copy] Copying 1 file to C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments
[copy] Copying 1 file to C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments
[delete] Deleting directory C:\jbpm\jbpm-installer\target
[copy] Copying 1 file to C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\configuration
[copy] Copying 1 file to C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\configuration
[copy] Copying 1 file to C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\configuration
1. download.jBPM.ht-war.check:
[echo] Checking jBPM human task war download ...
1. download.jBPM-ht.war:
1. download.transport.lib.check:
1. install.transport.lib:
1. install.jBPM-ht.into.jboss:
1. install.ht.war.into.jboss5:
1. install.ht.war.into.jboss7:
[mkdir] Created dir: C:\jbpm\jbpm-installer\target
[mkdir] Created dir: C:\jbpm\jbpm-installer\target\jbpm-human-task-war
[unzip] Expanding: C:\jbpm\jbpm-installer\lib\jbpm-human-task-war-5.4.0.Final-EE6.war into C:\jbpm\jbpm-installer\target\jbpm-human-task-war
[copy] Copying 1 file to C:\jbpm\jbpm-installer\target\jbpm-human-task-war\WEB-INF
[copy] Warning: Could not find file C:\jbpm\jbpm-installer\db\task-persistence.xml to copy.
[copy] Warning: Could not find file C:\jbpm\jbpm-installer\db\Taskorm.xml to copy.
[zip] Building zip: C:\jbpm\jbpm-installer\target\jbpm-5.4.0.Final-human-task-war.war
[copy] Copying 1 file to C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments
[delete] Deleting directory C:\jbpm\jbpm-installer\target
1. download.form.builder.check:
[echo] Checking Form Builder download ...
1. download.form.builder:
1. install.form.builder.into.jboss:
[mkdir] Created dir: C:\jbpm\jbpm-installer\target
[mkdir] Created dir: C:\jbpm\jbpm-installer\target\jbpm-form-builder-war
[unzip] Expanding: C:\jbpm\jbpm-installer\lib\jbpm-5.4.0.Final-form-builder.war into C:\jbpm\jbpm-installer\target\jbpm-form-builder-war
[copy] Copying 1 file to C:\jbpm\jbpm-installer\target\jbpm-form-builder-war\WEB-INF\classes
[copy] Copying 1 file to C:\jbpm\jbpm-installer\target\jbpm-form-builder-war\WEB-INF\classes
[zip] Building zip: C:\jbpm\jbpm-installer\target\jbpm-5.4.0.Final-form-builder.war
[copy] Copying 1 file to C:\jbpm\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments
[delete] Deleting directory C:\jbpm\jbpm-installer\target
1. *download.eclipse.check:*
* [echo] Checking Eclipse download ...*
**
1. *download.eclipse:*
* [echo] Getting Eclipse ...*
*[get] Getting: http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e... http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e...
*[get] To: C:\jbpm\jbpm-installer\lib\eclipse-java-helios-SR2-win32.zip*
*[get] Error opening connection java.io.FileNotFoundException: http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e... http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e...
*[get] Error opening connection java.io.FileNotFoundException: http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e... http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e...
*[get] Error opening connection java.io.FileNotFoundException: http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e... http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e...
*[get] Can't get http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e... http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e... to C:\jbpm\jbpm-installer\lib\eclipse-java-helios-SR2-win*
1. *32.zip*
**
*BUILD FAILED*
*C:\jbpm\jbpm-installer\build.xml:254: Can't get http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e... http://download.eclipse.org/technology/epp/downloads/release/helios/SR2/e... to C:\jbpm\jbpm-installer\lib\e*
*clipse-java-helios-SR2-win32.zip*
Total time: 1 minute 9 seconds
C:\jbpm\jbpm-installer>
It looks like it can’t find the Helios version. Can I use a later version of Eclipse, like Indigo or Juno? How do I get the jbpm package into Eclipse? Do you have a different installer that uses the latest version of Eclipse? Thanks very much.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/800693#800693]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 10 months
[JBoss Web Services] - Using apache cxf.xml with a jax-ws client
by Daniel Cote
Daniel Cote [https://community.jboss.org/people/daniel.cote.qc.ca] created the discussion
"Using apache cxf.xml with a jax-ws client"
To view the discussion, visit: https://community.jboss.org/message/802369#802369
--------------------------------------------------------------
Hi forum,
I'm taking the chance to put here an entry refering to my previous post made on the more general 'Jboss AS 7' community ( https://community.jboss.org/thread/222322 cxf.xml and spring and jbossws-cxf-4.1.1.Final)
Since the topic is really related to the Web service stack, I hope I'll can get back some additional clues...
To summarize:
I my quest to make my webservice client working with a specific configuration, I did upgrate my JBOSS 7.1.1 final with jbossws-cxf-4.1.1.Final.
I did the upgrate using instructions provider in https://community.jboss.org/docs/DOC-13545 https://community.jboss.org/wiki/JBossWS-Installation.
* I'm working with JBOSS 7.1.1 final. I updated the jboss-cxf stack to *jbossws-cxf-4.1.1.Final*, including the installation of spring, using *-Dspring=true option*, which I found is required in order for my cxf.xml file to be recognized by the runtime.
* the declaration of the springs schemas NOT recognized by my current installation. When I shutdowm my network services, I can see the attempt to resolve the schemas failed because the definition, included in the ..jboss-as-7.1.1.Final\modules\org\apache\cxf\impl\main jars file are NOT correctly resolved (hence the fallback on the http).
Ex.:
23:45:47,303 FINE (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.BusEntityResolver.resolveEntity Attempting to resolve systemId http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
23:45:48,270 FINE (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.BusEntityResolver.resolveEntity Attempting to resolve systemId http://cxf.apache.org/schemas/configuration/http-conf.xsd
23:45:48,676 FINE (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.BusEntityResolver.resolveEntity Attempting to resolve systemId http://cxf.apache.org/schemas/wsdl/http-conf.xsd
23:45:48,926 FINE (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.BusEntityResolver.resolveEntity Attempting to resolve systemId http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd
...
Are all going through the network instead of using the provided schemas (example: ...jboss-as-7.1.1.Final\modules\org\apache\cxf\impl\main\cxf-rt-transports-http.jar\schemas\configuration\ contains the http-conf.xsd... and the spring.schemas defines the location).
* the namespace handlers, declared in the .jboss-as-7.1.1.Final\modules\org\apache\cxf\impl\main jars file are NOT correctly resolved as we can see in the following trace, where the runtime was unable to locate the *NameSpace handler,* altough this specifc handler is exposed by the jboss-as-7.1.1.Final\modules\org\apache\cxf\impl\main\cxf-rt-transports-http.jar\META-INF\spring.handlers
08:42:20,168 INFO (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.BusApplicationContext.prepareRefresh Refreshing org.apache.cxf.bus.spring.BusApplicationContext@31906846: startup date [Wed Mar 13 08:42:20 EDT 2013]; root of context hierarchy
08:42:20,184 INFO (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.BusApplicationContext.getConfigResources Loaded configuration file cxf.xml.
08:42:20,184 FINE (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.BusApplicationContext.getConfigResources Creating application context with resources: [class path resource [META-INF/cxf/cxf.xml], class path resource [cxf.xml]]
08:42:20,184 INFO (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
08:42:20,184 INFO (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.loadBeanDefinitions Loading XML bean definitions from class path resource [cxf.xml]
08:42:20,184 FINE (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.BusEntityResolver.resolveEntity Attempting to resolve systemId http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
08:42:20,932 FINE (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.BusEntityResolver.resolveEntity Attempting to resolve systemId http://cxf.apache.org/schemas/configuration/http-conf.xsd
08:42:21,307 FINE (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.BusEntityResolver.resolveEntity Attempting to resolve systemId http://cxf.apache.org/schemas/wsdl/http-conf.xsd
08:42:21,556 FINE (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.BusEntityResolver.resolveEntity Attempting to resolve systemId http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd
08:42:22,134 FINE (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.BusEntityResolver.resolveEntity Attempting to resolve systemId http://cxf.apache.org/schemas/configuration/parameterized-types.xsd
08:42:22,258 FINE (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.BusEntityResolver.resolveEntity Attempting to resolve systemId http://cxf.apache.org/schemas/configuration/security.xsd
08:42:22,383 FINE (http-localhost-127.0.0.1-8080-1) org.apache.cxf.bus.spring.BusEntityResolver.resolveEntity Attempting to resolve systemId http://cxf.apache.org/schemas/configuration/cxf-beans.xsd
08:42:22,524 WARN (http-localhost-127.0.0.1-8080-1) org.jboss.ws.cxf.createApplicationContext JBWS024027: Spring initial application context creation failed using classloader org.jboss.ws.common.utils.DelegateClassLoader@719b072f, will try again after having switched the current thread context classloader to ModuleClassLoader for Module "org.apache.cxf.impl:main" from local module loader @7b41aa25 (roots: C:\AppServer\jboss-as-7.1.1.Final\jboss-as-7.1.1.Final\modules): org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: U*nable to locate Spring NamespaceHandler for XML schema namespace [http://cxf.apache.org/transports/http/configuration]*
*Offending resource: class path resource [cxf.xml]*
at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68) [spring-beans.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85) [spring-beans.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80) [spring-beans.jar:3.0.7.RELEASE]
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:284) [spring-beans.jar:3.0.7.RELEASE]
...
* Those inabilities to resolve the NamespaceHandler and the provided schemas seems to indicate a problem of classloading, which is very difficult (for me) to diagnose.
* I followed some suggestions regarding the use of EAR\META-INF\jboss-deployment-structure.xml, but none resolved the classloading problems. I tried the followings
jboss-deployment-structure.xml with no dependencies, except the ones required by my application (oracle driver, configuration parameters)
jboss-deployment-structure.xml with:
<module name="org.apache.cxf" export="true">
<imports>
<include path="META-INF**"/>
<include path="org**"/>
</imports>
</module>
jboss-deployment-structure.xml with:
<module name="org.apache.cxf" export="true">
<imports>
<include path="META-INF**"/>
<include path="org**"/>
</imports>
</module>
jboss-deployment-structure.xml with:
<module name="org.springframework.spring" export="true">
<imports>
<include path="META-INF**"/>
<include path="org**"/>
</imports>
</module>
<module name="org.apache.cxf" export="true">
<imports>
<include path="META-INF**"/>
<include path="org**"/>
</imports>
</module>
jboss-deployment-structure.xml with:
<module name="org.jboss.ws.cxf.jbossws-cxf-client" export="true">
</module>
(this one did NOT retrieve my cxf.xml configuration file...)
* Until now, I worked a lot to make thinks working using only a configuration file and the JAX-WS api, but if I cannot resolve this issue, I will have to fall back on using the CXF api directly
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/802369#802369]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 10 months
[Datasource Configuration] - [JBoss-7.1.1.Final] xa-datasource-property bug?
by Rudolf S
Rudolf S [https://community.jboss.org/people/Diamantregen] created the discussion
"[JBoss-7.1.1.Final] xa-datasource-property bug?"
To view the discussion, visit: https://community.jboss.org/message/732603#732603
--------------------------------------------------------------
Hello,
I found that when the following is set in the standalone.xml of JBoss-7.1.1.Final, it will have a fatal error:
<xa-datasource....>
....
*<xa-datasource-property name="ConnectionProperties">SetBigStringTryClob=true</xa-datasource-property>*
....
</xa-datasource>
The error is:
Caused by: javax.resource.ResourceException: No property editor found for type: class java.util.Properties
at org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory.getXADataSource(XAManagedConnectionFactory.java:601)
at org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory.getXAManagedConnection(XAManagedConnectionFactory.java:430)
When I don't define the SetBigStringTryClob setting, all is fine. However, the SetBigStringTryClob is really important for the application to work correctly.
Maybe this a bug? It worked without problems in JBoss 4.2.3. Is there any workaround? Please help, thanks!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/732603#732603]
Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 10 months
[jBPM] - How to fill the value of "outcomes" field in JBPM-console JSON for Personal Task List?
by Thomas Setiabudi
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion
"How to fill the value of "outcomes" field in JBPM-console JSON for Personal Task List?"
To view the discussion, visit: https://community.jboss.org/message/776140#776140
--------------------------------------------------------------
Hi,
In our environment, we use JBPM5.3 as a service via JBPM-Console REST service.
when we call this REST:
/gwt-console-server/rs/tasks/{idRef}
The resulting JSON is something like this:
{
tasks:
[
{
id:6,
processInstanceId:11,
processId:com.sample.evaluation,
name:Performance Evaluation,
assignee:thomas,
isBlocking:true,
isSignalling:false,
outcomes:[],
currentState:ASSIGNED,
participantUsers:[],
participantGroups:[],
url:http://localhost:8080/gwt-console-server/rs/form/task/6/render,
priority:0
},
{
id:7,
processInstanceId:11,
processId:com.sample.evaluation,
name:Performance Evaluation,
assignee:thomas,
isBlocking:true,
isSignalling:false,
outcomes:[],
currentState:ASSIGNED,
participantUsers:[],
participantGroups:[],
url:http://localhost:8080/gwt-console-server/rs/form/task/6/render,
priority:0
}
]
}
The outcomes field is always empty.. "outcomes":[]
is there any way to fill value to this field?
We have a requirement to add a custom field for every human task, and retrieve its value when we open personal task list.
We thought that maybe we can fill in the custom field in the JSON "outcomes" field.
is it possible? Or is there any other way? maybe like create a custom WorkItemHandler that extends the Human Task?
Any help is appreciated.
Regards,
Thomas Setiabudi
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/776140#776140]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 10 months
[jBPM] - Problem with jbpm 5.3, jboss 6.1 and BTMTransactionManagerLookup
by Pablo Umaña
Pablo Umaña [https://community.jboss.org/people/pumanar] created the discussion
"Problem with jbpm 5.3, jboss 6.1 and BTMTransactionManagerLookup"
To view the discussion, visit: https://community.jboss.org/message/739753#739753
--------------------------------------------------------------
Hi everyone
I'm having some problems with my JBPM app. My technology stack is: JBoss AS 6.1, jBPM 5.3 and a PostgreSQL 9.0 database.
My problem occurs when I try to start a new process..
persistence.xml
props.put("hibernate.transaction.manager_lookup_class", "org.hibernate.transaction.BTMTransactionManagerLookup");
Ejb3Configuration cfg = new Ejb3Configuration();
PersistenceMetadata p = new PersistenceMetadata();
p.setTransactionType(PersistenceUnitTransactionType.JTA);
p.setName("org.jbpm.persistence.jpa");
p.setMappingFiles(mappingFiles);
cfg.configure(p, null);
cfg.addAnnotatedClass(org.jbpm.task.Attachment.class);
cfg.addAnnotatedClass(org.jbpm.task.Content.class);
cfg.addAnnotatedClass(org.jbpm.task.BooleanExpression.class);
cfg.addAnnotatedClass(org.jbpm.task.Comment.class);
cfg.addAnnotatedClass(org.jbpm.task.Deadline.class);
cfg.addAnnotatedClass(org.jbpm.task.Comment.class);
cfg.addAnnotatedClass(org.jbpm.task.Deadline.class);
cfg.addAnnotatedClass(org.jbpm.task.Delegation.class);
cfg.addAnnotatedClass(org.jbpm.task.Escalation.class);
cfg.addAnnotatedClass(org.jbpm.task.Group.class);
cfg.addAnnotatedClass(org.jbpm.task.I18NText.class);
cfg.addAnnotatedClass(org.jbpm.task.Notification.class);
cfg.addAnnotatedClass(org.jbpm.task.EmailNotification.class);
cfg.addAnnotatedClass(org.jbpm.task.EmailNotificationHeader.class);
cfg.addAnnotatedClass(org.jbpm.task.PeopleAssignments.class);
cfg.addAnnotatedClass(org.jbpm.task.Reassignment.class);
cfg.addAnnotatedClass(org.jbpm.task.Status.class);
cfg.addAnnotatedClass(org.jbpm.task.Task.class);
cfg.addAnnotatedClass(org.jbpm.task.TaskData.class);
cfg.addAnnotatedClass(org.jbpm.task.SubTasksStrategy.class);
cfg.addAnnotatedClass(org.jbpm.task.OnParentAbortAllSubTasksEndStrategy.class);
cfg.addAnnotatedClass(org.jbpm.task.OnAllSubTasksEndParentEndStrategy.class);
cfg.addAnnotatedClass(org.jbpm.task.User.class);
cfg.addAnnotatedClass(org.jbpm.persistence.processinstance.ProcessInstanceInfo.class);
cfg.addAnnotatedClass(org.jbpm.persistence.processinstance.ProcessInstanceEventInfo.class);
cfg.addAnnotatedClass(org.drools.persistence.info.WorkItemInfo.class);
cfg.addAnnotatedClass(org.drools.persistence.info.SessionInfo.class);
cfg.addProperties(props);
entityManagerFactory = cfg.buildEntityManagerFactory();
when I try to create a new StatefulKnowledgeSession
Environment env = KnowledgeBaseFactory.newEnvironment();
env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, taskServer.getEntityManagerFactory());
env.set(EnvironmentName.TRANSACTION_MANAGER, TransactionManagerServices.getTransactionManager());
KnowledgeBase kbase = readKnowledgeBase(process);
ksession = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null, env);
int sessionId = ksession.getId();
ksession.getWorkItemManager().registerWorkItemHandler("Human Task", new CommandBasedWSHumanTaskHandler(ksession));
this returns the following error
INFO [bitronix.tm.BitronixTransactionManager] Bitronix Transaction Manager version 2.1.2
WARN [bitronix.tm.Configuration] cannot get this JVM unique ID. Make sure it is configured and you only use ASCII characters. Will use IP address instead (unsafe for production usage!).
INFO [bitronix.tm.Configuration] JVM unique ID: <192.168.1.142>
ERROR [STDERR] bitronix.tm.utils.InitializationException: initialization failed, cannot safely start the transaction manager
ERROR [STDERR] at bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:79)
ERROR [STDERR] at bitronix.tm.TransactionManagerServices.getTransactionManager(TransactionManagerServices.java:62)
ERROR [STDERR] at cl.exe.monoTarea.process.Proceso.iniciarProcesos(Proceso.java:65)
ERROR [STDERR] at cl.exe.fonasa.fiscalizacion.app.ProcesoApp.iniciarProceso(ProcesoApp.java:59)
ERROR [STDERR] at cl.exe.fonasa.fiscalizacion.estructuras.Inicializador.create(Inicializador.java:99)
ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
ERROR [STDERR] at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
ERROR [STDERR] at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
ERROR [STDERR] at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
ERROR [STDERR] at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
ERROR [STDERR] at org.jboss.weld.introspector.jlr.WeldMethodImpl.invoke(WeldMethodImpl.java:193)
ERROR [STDERR] at org.jboss.weld.injection.MethodInjectionPoint.invoke(MethodInjectionPoint.java:127)
ERROR [STDERR] at org.jboss.weld.util.Beans.callInitializers(Beans.java:901)
ERROR [STDERR] at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:888)
ERROR [STDERR] at org.jboss.weld.bean.SessionBean$1$1.proceed(SessionBean.java:194)
ERROR [STDERR] at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:54)
ERROR [STDERR] at org.jboss.weld.bean.SessionBean$1.inject(SessionBean.java:189)
ERROR [STDERR] at org.jboss.weld.integration.ejb.SessionBeanInterceptor.postConstruct(SessionBeanInterceptor.java:97)
ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.LifecycleCallbackInterceptorMethodLazyInterceptor.invoke(LifecycleCallbackInterceptorMethodLazyInterceptor.java:109)
ERROR [STDERR] at org.jboss.aop.joinpoint.ConstructionInvocation.invokeNext(ConstructionInvocation.java:80)
ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:56)
ERROR [STDERR] at org.jboss.aop.joinpoint.ConstructionInvocation.invokeNext(ConstructionInvocation.java:80)
ERROR [STDERR] at org.jboss.ejb3.tx.NullInterceptor.invoke(NullInterceptor.java:42)
ERROR [STDERR] at org.jboss.aop.joinpoint.ConstructionInvocation.invokeNext(ConstructionInvocation.java:80)
ERROR [STDERR] at org.jboss.ejb3.singleton.aop.impl.ConstructionInvocationContextAdapter.proceed(ConstructionInvocationContextAdapter.java:106)
ERROR [STDERR] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:247)
ERROR [STDERR] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:392)
ERROR [STDERR] at org.jboss.ejb3.tx2.impl.CMTTxInterceptor.invoke(CMTTxInterceptor.java:211)
ERROR [STDERR] at org.jboss.ejb3.tx2.aop.CMTTxInterceptorWrapper.invoke(CMTTxInterceptorWrapper.java:52)
ERROR [STDERR] at org.jboss.aop.joinpoint.ConstructionInvocation.invokeNext(ConstructionInvocation.java:80)
ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
ERROR [STDERR] at org.jboss.aop.joinpoint.ConstructionInvocation.invokeNext(ConstructionInvocation.java:80)
ERROR [STDERR] at org.jboss.ejb3.core.context.CurrentInvocationContextInterceptor.invoke(CurrentInvocationContextInterceptor.java:47)
ERROR [STDERR] at org.jboss.aop.joinpoint.ConstructionInvocation.invokeNext(ConstructionInvocation.java:80)
ERROR [STDERR] at org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor.setup(InvocationContextInterceptor.java:90)
ERROR [STDERR] at org.jboss.aop.advice.org.jboss.ejb3.interceptors.aop.InvocationContextInterceptor_z_setup_962065316.invoke(InvocationContextInterceptor_z_setup_962065316.java)
ERROR [STDERR] at org.jboss.aop.joinpoint.ConstructionInvocation.invokeNext(ConstructionInvocation.java:80)
ERROR [STDERR] at org.jboss.aspects.currentinvocation.CurrentInvocationInterceptor.invoke(CurrentInvocationInterceptor.java:67)
ERROR [STDERR] at org.jboss.aop.joinpoint.ConstructionInvocation.invokeNext(ConstructionInvocation.java:80)
ERROR [STDERR] at org.jboss.ejb3.singleton.aop.impl.AOPBasedSingletonContainer.invokeCallback(AOPBasedSingletonContainer.java:1061)
ERROR [STDERR] at org.jboss.ejb3.EJBContainer.invokePostConstruct(EJBContainer.java:1396)
ERROR [STDERR] at org.jboss.ejb3.singleton.aop.impl.AOPBasedSingletonContainer.postConstruct(AOPBasedSingletonContainer.java:762)
ERROR [STDERR] at org.jboss.ejb3.singleton.impl.container.SingletonEJBInstanceManagerImpl.create(SingletonEJBInstanceManagerImpl.java:133)
ERROR [STDERR] at org.jboss.ejb3.singleton.impl.container.SingletonEJBInstanceManagerImpl.get(SingletonEJBInstanceManagerImpl.java:152)
ERROR [STDERR] at org.jboss.ejb3.singleton.deployer.StartupSingletonInitiator.start(StartupSingletonInitiator.java:84)
ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
ERROR [STDERR] at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:60)
ERROR [STDERR] at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168)
ERROR [STDERR] at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257)
ERROR [STDERR] at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125)
ERROR [STDERR] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)
ERROR [STDERR] at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202)
ERROR [STDERR] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
ERROR [STDERR] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
ERROR [STDERR] at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
ERROR [STDERR] at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)
ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)
ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)
ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)
ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)
ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)
ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)
ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)
ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983)
ERROR [STDERR] at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076)
ERROR [STDERR] at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679)
ERROR [STDERR] at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106)
ERROR [STDERR] at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143)
ERROR [STDERR] at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151)
ERROR [STDERR] at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94)
ERROR [STDERR] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
ERROR [STDERR] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
ERROR [STDERR] at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
ERROR [STDERR] at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
ERROR [STDERR] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379)
ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044)
ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083)
ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322)
ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246)
ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139)
ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939)
ERROR [STDERR] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654)
ERROR [STDERR] at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190)
ERROR [STDERR] at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87)
ERROR [STDERR] at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215)
ERROR [STDERR] at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159)
ERROR [STDERR] at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112)
ERROR [STDERR] at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87)
ERROR [STDERR] at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91)
ERROR [STDERR] at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132)
ERROR [STDERR] at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56)
ERROR [STDERR] at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827)
ERROR [STDERR] at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417)
ERROR [STDERR] at java.lang.Thread.run(Thread.java:680)
ERROR [STDERR] Caused by: java.nio.channels.OverlappingFileLockException
ERROR [STDERR] at sun.nio.ch.FileChannelImpl$SharedFileLockTable.checkList(FileChannelImpl.java:1166)
ERROR [STDERR] at sun.nio.ch.FileChannelImpl$SharedFileLockTable.add(FileChannelImpl.java:1068)
ERROR [STDERR] at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:868)
ERROR [STDERR] at bitronix.tm.journal.TransactionLogAppender.<init>(TransactionLogAppender.java:70)
ERROR [STDERR] at bitronix.tm.journal.DiskJournal.open(DiskJournal.java:151)
ERROR [STDERR] at bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:62)
ERROR [STDERR] ... 108 more
Thanks in advance for any help.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/739753#739753]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 10 months