[jBPM] - Re: persistence JBPM5.3 on tomcat with mysql
by Ted Pan
Ted Pan [https://community.jboss.org/people/ted.pan] created the discussion
"Re: persistence JBPM5.3 on tomcat with mysql"
To view the discussion, visit: https://community.jboss.org/message/777286#777286
--------------------------------------------------------------
hi Kehua,
there are some issues with your code
1. since you have declared the datasource in web.xm, in persistence.xml, you can use java:comp/env/jdbc/jbpm-ds, instead of jdbc/jbpm-ds, and you don't need to define the connection parameters( driver_class, username and so on) in the persistence.xml, since you are using data source from container.
please see the attached persistence.xml for detailed information.
2. you can pre-create the database with schema for the persistence unit, org.jbpm.persistence.jpa. But if you want to create it or update it when the persistence unit is created at the first time( see persistence.xml for <property name="hibernate.hbm2ddl.auto" value="update" />), you need to disable the transaction in your TaskProcessServlet's init(), please see the attached TaskProcessServlet.java file.
3. you do not need to manually initial the dateasource, please see the TaskProcessServlet.java from line 71 to 86. those lines could be commentted out.
4. the default's port for Mina server is 9123, you use MinaTaskServer server = new MinaTaskServer(taskService); to create the mina server, then you should use the port 9123 in your JbpmAPIUtil.java. please see the attached JbpmAPIUtil.java
5. in HumanTaskStartupServlet.java. you don't need to start a h2 server there, so you don't need the h2.jar in your classpath.
please note, I use different database name and database username, you can adjust the btm-resources.proeprties. and because the attached file size limitation, I remove hibernate jars from the lib folder, you should add them back if you want to run it.
in case if I did not list all the issues, I attached the whole server1 with libraries for you. you can do a comparison with your server1.
Ted
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/777286#777286]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[JBoss Messaging] - Problem upgrading to JBoss Messaging from 1.4.3 to 1.4.5
by Nitesh Mehta
Nitesh Mehta [https://community.jboss.org/people/niteshmehta] created the discussion
"Problem upgrading to JBoss Messaging from 1.4.3 to 1.4.5"
To view the discussion, visit: https://community.jboss.org/message/777410#777410
--------------------------------------------------------------
I am trying to upgrade JBoss Messaging from 1.4.3 to 1.4.5
After changing jars and configuration files I see following exception
java.lang.RuntimeException: No Attribute found with name: SecurityStore for jboss.messaging:service=ServerPeer, attributes: [JMSMinorVersion, Instance, DefaultRedeliveryDelay, MessageCounterSamplePeriod, ServerPeerID, SuckerConnectionRetryInterval, ClusterPullConnectionFactoryName, RecoverDeliveriesTimeout, JMSVersion, MessageCounters, JMSUserManager, FailoverCompleteTimeout, DefaultMessageCounterHistoryDayLimit, StrictTck, DefaultTopicJNDIContext, DefaultDLQ, DefaultMaxDeliveryAttempts, PostOffice, JMSMajorVersion, SecurityDomain, FailoverStartTimeout, SupportsFailover, DefaultPreserveOrdering, ProviderMajorVersion, DefaultExpiryQueue, SuckerPassword, MessageStatistics, ProviderVersion, DefaultQueueJNDIContext, Destinations, SuckerConnectionRetryTimes, JMSProviderName, EnableMessageCounters, ProviderMinorVersion, PersistenceManager, DefaultSecurityConfig]
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:142)
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:114)
at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:58)
at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:42)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
at org.jboss.system.ServiceController.install(ServiceController.java:274)
at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:90)
... 34 more
below is my serverPeer mbean conf
<mbean code="org.jboss.jms.server.ServerPeer"
name="jboss.messaging:service=ServerPeer"
xmbean-dd="xmdesc/ServerPeer-xmbean.xml">
<!-- The unique id of the server peer - in a cluster each node MUST have a unique value - must be an integer -->
<attribute name="ServerPeerID">${jboss.messaging.ServerPeerID:0}</attribute>
<!-- The default JNDI context to use for queues when they are deployed without specifying one -->
<attribute name="DefaultQueueJNDIContext">/queue</attribute>
<!-- The default JNDI context to use for topics when they are deployed without specifying one -->
<attribute name="DefaultTopicJNDIContext">/topic</attribute>
<attribute name="PostOffice">jboss.messaging:service=PostOffice</attribute>
<!-- The default Dead Letter Queue (DLQ) to use for destinations.
This can be overridden on a per destinatin basis -->
<attribute name="DefaultDLQ">jboss.messaging.destination:service=Queue,name=DLQ</attribute>
<!-- The default maximum number of times to attempt delivery of a message before sending to the DLQ (if configured).
This can be overridden on a per destinatin basis -->
<attribute name="DefaultMaxDeliveryAttempts">10</attribute>
<!-- The default Expiry Queue to use for destinations. This can be overridden on a per destinatin basis -->
<attribute name="DefaultExpiryQueue">jboss.messaging.destination:service=Queue,name=ExpiryQueue</attribute>
<!-- The default redelivery delay to impose. This can be overridden on a per destination basis -->
<attribute name="DefaultRedeliveryDelay">10000</attribute>
<!-- The periodicity of the message counter manager enquiring on queues for statistics -->
<attribute name="MessageCounterSamplePeriod">5000</attribute>
<!-- The maximum amount of time for a client to wait for failover to start on the server side after
it has detected failure -->
<attribute name="FailoverStartTimeout">60000</attribute>
<!-- The maximum amount of time for a client to wait for failover to complete on the server side after
it has detected failure -->
<attribute name="FailoverCompleteTimeout">300000</attribute>
<attribute name="StrictTck">false</attribute>
<!-- The maximum number of days results to maintain in the message counter history -->
<attribute name="DefaultMessageCounterHistoryDayLimit">-1</attribute>
<!-- The name of the connection factory to use for creating connections between nodes to pull messages -->
<attribute name="ClusterPullConnectionFactoryName">jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory</attribute>
<!-- When redistributing messages in the cluster. Do we need to preserve the order of messages received
by a particular consumer from a particular producer? -->
<attribute name="DefaultPreserveOrdering">false</attribute>
<!-- Max. time to hold previously delivered messages back waiting for clients to reconnect after failover -->
<attribute name="RecoverDeliveriesTimeout">300000</attribute>
<!-- Set to true to enable message counters that can be viewed via JMX -->
<attribute name="EnableMessageCounters">false</attribute>
<attribute name="SuckerPassword">${queues.database.password}</attribute>
<!-- The name of the server aspects configuration resource
<attribute name="ServerAopConfig">aop/jboss-aop-messaging-server.xml</attribute>
-->
<!-- The name of the client aspects configuration resource
<attribute name="ClientAopConfig">aop/jboss-aop-messaging-client.xml</attribute>
-->
<depends optional-attribute-name="PersistenceManager">jboss.messaging:service=PersistenceManager</depends>
<depends optional-attribute-name="JMSUserManager">jboss.messaging:service=JMSUserManager</depends>
<depends>jboss.messaging:service=Connector,transport=bisocket</depends>
<depends optional-attribute-name="SecurityStore"
proxy-type="org.jboss.jms.server.SecurityStore">jboss.messaging:service=SecurityStore</depends>
</mbean>
following is security store conf
<bean name="SecurityStore" class="org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStore">
<!-- default security configuration -->
<property name="defaultSecurityConfig">
<![CDATA[
<security>
<role name="guest" read="true" write="true" create="true"/>
</security>
]]>
</property>
<property name="suckerPassword">CHANGE ME!!</property>
<property name="securityDomain">messaging</property>
<property name="securityManagement"><inject bean="JNDIBasedSecurityManagement"/></property>
<!-- @JMX annotation to export the management view of this bean -->
<annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.messaging:service=SecurityStore",exposedInterface=org.jboss.jms.server.jbosssx.JBossASSecurityMetadataStoreMBean.class)</annotation>
<!-- Password Annotation to inject the password from the common password utility
<annotation>@org.jboss.security.integration.password.Password(securityDomain="messaging",methodName="setSuckerPassword")</annotation>
-->
</bean>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/777410#777410]
Start a new discussion in JBoss Messaging at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[jBPM] - JBoss-esb 4.11 "bpm5processor" sample on JBoss AS 6.1 with gwt-console-server 5.2.0
by fischsalat
fischsalat [https://community.jboss.org/people/fischsalat] created the discussion
"JBoss-esb 4.11 "bpm5processor" sample on JBoss AS 6.1 with gwt-console-server 5.2.0"
To view the discussion, visit: https://community.jboss.org/message/777391#777391
--------------------------------------------------------------
Hi folks,
I'm trying to set up the JBoss-esb 4.11 "bpm5processor" sample on a JBoss 6.1 AS.
As an orientation i followed this great work-around to understand the jBPM installing procedure with JBoss AS 5.1:
https://community.jboss.org/docs/DOC-18580 https://community.jboss.org/wiki/InstallingJBPM53OnJBossAS51AndChangingDB
So i tried to adapt this work-around on a JBoss AS 6.1.
-------------------------------------------
My configuration:
ubuntu 12.04
java version 1.6.0_24
JBoss 6.1.0. Final
Jboss-esb 4.11
jBPM 5.2.0 Final full installer
Maven 3.0.4
eclipse indigo 3.7
------------------------------------------
As the "bpm5processor" sample readme.txt says, i'm using the jbpm 5.2.0 Final installer. Via this installer, i did some configurations and installed it successfully without eclipse helios or JBoss AS 7.
With the jBPM ant build script i'm setting up the Mina human task server and get access to his port on 9123.
The JBoss AS 6.1 with his jboss-esb 4.11 starts externally.
With eclipse indigo i have imported the „bpm5processor“ sample, build a esb-project with Maven 3.0.4 and deployed the .esb on the JBoss AS 6.1.
As far, everything seems to be fine and the class „org.jboss.soa.esb.services.jbpm5.actions.Bpm5Processor“, which i call inside the esb.xml is working correctly on JBoss AS 6.1. So i am able to process my jBPM5-models on a JBoss AS 6.1.
But i want more visual feedback or informations about my deployed jBPM-Processes except some "System.out.println("");" ;)
I'm able to deploy the jBPM gwt-console 5.2, but if i try to do the same with the jBPM 5.2 gwt-console-server, i get a lot of error messages on server's start up.
I tried to fix this errors, so i followed this Thread about the persistance issue:
https://community.jboss.org/message/739278#739278 https://community.jboss.org/message/739278
I also tried the „hard way“ and deleted some lib-files, like it is discussed here:
https://community.jboss.org/thread/162491 https://community.jboss.org/thread/162491
But it doesn't help at all.
Is it possible, that i have to isolate some classloaders inside the gwt-console-server's jboss-web.xml?
Does somebody have any experience with deploying the jbpm 5.2.0 gwt-console-server? Or got any ideas how i could deploy the gwt-console-server?
Here is the error stack in short, which i get when i try to start the AS6 server.
+ERROR [[/gwt-console-server]] Exception sending context initialized event to listener instance of class org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap: java.lang.RuntimeException: java.lang.RuntimeException: Unable to instantiate MessageBodyReader+
+ERROR [[/gwt-console-server]] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossMojarra20ConfigureListener: java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl cannot be cast to javax.xml.parsers.SAXParserFactory+
+ERROR [StandardContext] Error listenerStart+
+ERROR [StandardContext] Context [/gwt-console-server] startup failed due to previous errors+
+ERROR [AbstractKernelController] Error installing to Start: name=jboss.web.deployment:war=/gwt-console-server state=Create mode=Manual requiredState=Installed: org.jboss.deployers.spi.DeploymentException: URL file:/home/fischsalat/dev/jboss-6.1.0.Final/server/node1/tmp/vfs/automounta1456e8d80cc4705/jbpm-gwt-console-server-5.2.0.Final.war-93b218be814f9bad/ deployment failed+
+ERROR [AbstractKernelController] Error installing to Real: name=vfs:///home/fischsalat/dev/jboss-6.1.0.Final/server/node1/deploy/jbpm-gwt-console-server-5.2.0.Final.war state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException: URL file:/home/fischsalat/dev/jboss-6.1.0.Final/server/node1/tmp/vfs/automounta1456e8d80cc4705/jbpm-gwt-console-server-5.2.0.Final.war-93b218be814f9bad/ deployment failed+
I would appreciate any help or ideas.
Regards,
Eybe
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/777391#777391]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[jBPM] - Abort / retry / skip UI
by sbremal
sbremal [https://community.jboss.org/people/sbremal] created the discussion
"Abort / retry / skip UI"
To view the discussion, visit: https://community.jboss.org/message/777295#777295
--------------------------------------------------------------
Hello
I have a requirement for the following scenario: the jBPM workflow suppose to check the availability of various IT systems, it will also make changes to the systems. Each step is implemented as web service (implemented in Python).
It is expected that each step fails multiple times, and here comes the real issue. We need a smart user driven retry mechanism. The aim is that a failed step will generate a user task where it can be retried, skipped, aborted etc. (The workflow and further checks are suspended until a failed checkpoint step is remedied manually and is retried.)
How would you guys implement it?
I imagine a user task with an HTML form (error message, 3 buttons etc.). Where do I put the web service error handling? Where do I put the workflow signalling code? How do I make it generic so it 'guards' all web service calls in the entire workflow?
Thanks.
Cheers
B.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/777295#777295]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[JBoss Tools] - Caused by: java.lang.ClassNotFoundException: org.jboss.tools.runtime.ui.IDownloadRuntimes
by Manu Osten
Manu Osten [https://community.jboss.org/people/argonist] created the discussion
"Caused by: java.lang.ClassNotFoundException: org.jboss.tools.runtime.ui.IDownloadRuntimes"
To view the discussion, visit: https://community.jboss.org/message/774971#774971
--------------------------------------------------------------
Hello,
How can I solve that problem? I open hibernate prepective, then I got the error message.
Error message:
> !SESSION 2012-11-06 09:20:10.516 -----------------------------------------------
> eclipse.buildId=M20120914-1800
> java.version=1.6.0_24
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
> Framework arguments: -product org.eclipse.epp.package.jee.product
> Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product
>
>
> This is a continuation of log file /home/argonist/om-umgebung/workspaceOM/.metadata/.bak_2.log
> Created Time: 2012-11-06 09:20:16.508
>
>
> !ENTRY org.eclipse.mylyn.tasks.ui 4 0 2012-11-06 09:20:16.508
> !MESSAGE Could not load repository template extension contributed by org.jboss.tools.common.mylyn with connectorKind jira
>
>
> !ENTRY org.eclipse.equinox.ds 4 0 2012-11-06 09:20:16.650
> !MESSAGE Exception occurred while creating new instance of component Component[
> name = org.jboss.tools.project.examples.DownloadRuntimes
> activate = activate
> deactivate = deactivate
> modified =
> configuration-policy = optional
> factory = null
> autoenable = true
> immediate = true
> implementation = org.jboss.tools.project.examples.DownloadRuntimes
> state = Unsatisfied
> properties =
> serviceFactory = false
> serviceInterface = [org.jboss.tools.runtime.ui.IDownloadRuntimes]
> references = null
> located in bundle = org.jboss.tools.project.examples_1.4.0.M1-v20120822-0243-H736 [1111]
> ]
> !STACK 0
> java.lang.NoClassDefFoundError: org/jboss/tools/runtime/ui/IDownloadRuntimes
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)
> at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClassHoldingLock(ClasspathManager.java:632)
> at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:614)
> at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:568)
> at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:492)
> at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:465)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
> at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:395)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:464)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
> at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:340)
> at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
> at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1212)
> at org.eclipse.equinox.internal.ds.model.ServiceComponent.createInstance(ServiceComponent.java:493)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.createInstance(ServiceComponentProp.java:272)
> at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:333)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
> at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
> at org.eclipse.equinox.internal.ds.Resolver.getEligible(Resolver.java:343)
> at org.eclipse.equinox.internal.ds.SCRManager.serviceChanged(SCRManager.java:222)
> at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
> at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
> at org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
> at org.eclipse.e4.ui.services.internal.events.EventBroker.subscribe(EventBroker.java:129)
> at org.eclipse.e4.ui.services.internal.events.EventBroker.subscribe(EventBroker.java:114)
> at org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer.init(MenuManagerRenderer.java:211)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
> at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:859)
> at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
> at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:81)
> at org.eclipse.e4.core.contexts.ContextInjectionFactory.inject(ContextInjectionFactory.java:72)
> at org.eclipse.e4.ui.workbench.renderers.swt.WorkbenchRendererFactory.initRenderer(WorkbenchRendererFactory.java:133)
> at org.eclipse.e4.ui.workbench.renderers.swt.WorkbenchRendererFactory.getRenderer(WorkbenchRendererFactory.java:61)
> at org.eclipse.ui.internal.WorkbenchWindow.setup(WorkbenchWindow.java:567)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
> at org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:859)
> at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:111)
> at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:81)
> at org.eclipse.e4.core.contexts.ContextInjectionFactory.inject(ContextInjectionFactory.java:72)
> at org.eclipse.ui.internal.Workbench.createWorkbenchWindow(Workbench.java:1252)
> at org.eclipse.ui.internal.Workbench.openWorkbenchWindow(Workbench.java:2324)
> at org.eclipse.ui.internal.Workbench.getWorkbenchPage(Workbench.java:1737)
> at org.eclipse.ui.internal.Workbench.setReference(Workbench.java:1756)
> at org.eclipse.ui.internal.Workbench.access$22(Workbench.java:1753)
> at org.eclipse.ui.internal.Workbench$33.handleEvent(Workbench.java:1693)
> at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
> at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
> at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
> at org.eclipse.swt.widgets.Display.syncExec(Display.java:4291)
> at org.eclipse.e4.ui.internal.workbench.swt.E4Application$1.syncExec(E4Application.java:187)
> at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:38)
> at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197)
> at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
> at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
> at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
> at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
> at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
> at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
> at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:81)
> at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:58)
> at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
> at org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl.setContext(PartImpl.java:399)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:609)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$6.run(PartRenderingEngine.java:518)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:503)
> at org.eclipse.e4.ui.workbench.renderers.swt.ElementReferenceRenderer.createWidget(ElementReferenceRenderer.java:74)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:896)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:630)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682)
> at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1114)
> at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:646)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682)
> at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:642)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682)
> at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:642)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682)
> at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
> at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveRenderer.processContents(PerspectiveRenderer.java:59)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:642)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682)
> at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.showTab(PerspectiveStackRenderer.java:103)
> at org.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer.postProcess(LazyStackRenderer.java:98)
> at org.eclipse.e4.ui.workbench.renderers.swt.PerspectiveStackRenderer.postProcess(PerspectiveStackRenderer.java:77)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:646)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682)
> at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:642)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682)
> at org.eclipse.e4.ui.workbench.renderers.swt.SWTPartRenderer.processContents(SWTPartRenderer.java:59)
> at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer.processContents(WBWRenderer.java:639)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:642)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:732)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$2(PartRenderingEngine.java:703)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$7.run(PartRenderingEngine.java:697)
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:682)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:968)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
> at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
> Caused by: java.lang.ClassNotFoundException: org.jboss.tools.runtime.ui.IDownloadRuntimes
> at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
> ... 171 more
>
>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/774971#774971]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[jBPM] - How to create Adhoc Task using jbpm-human-task-war.war that comes with jbpm5.3 full installer?
by Thomas Setiabudi
Thomas Setiabudi [https://community.jboss.org/people/thomas.setiabudi] created the discussion
"How to create Adhoc Task using jbpm-human-task-war.war that comes with jbpm5.3 full installer?"
To view the discussion, visit: https://community.jboss.org/message/777335#777335
--------------------------------------------------------------
Hi,
We use jbpm5.3 full installer and changed its configuration to use MS SQL Server 2008. And Everything works fine. All tasks are persisted in the database.
We have been using jbpm as a service, we do activities like start process, claim group task, complete task using JBPM-Console's REST API.
Now, we have a requirement to create adhoc task (create a human task without any process definition).
Since there is no REST API on JBPM-Console to do this, we plan to create a small application to create task and communicate directly with jbpm-human-task-war.war that comes with jbpm5.3 full installer.
We want to do this since we need all of our task to be persisted in the database.
Is it true by doing it this way, all task created by jbpm-human-task-war.war will be persisted to the database?
Is there any sample code on how to do this? (create a small application to create task and communicate directly with jbpm-human-task-war.war) ?
Any Help is Appreciated.
Regards,
Thomas Setiabudi
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/777335#777335]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months
[jBPM] - Could not find datasource: java:jboss/datasources/jbpmDS
by Yogesh Garg
Yogesh Garg [https://community.jboss.org/people/nsit_yogesh] created the discussion
"Could not find datasource: java:jboss/datasources/jbpmDS"
To view the discussion, visit: https://community.jboss.org/message/774783#774783
--------------------------------------------------------------
Hi all,
I am receiving following error. I am using jBPM5.3 and JBOSS AS 5.x. Please let me know what am I missing.
> 16 05/11 16:40:32,344[main] ERROR hibernate.connection.DatasourceConnectionProvider.configure - Could not find datasource: java:jboss/datasources/jbpmDS
> javax.naming.NameNotFoundException: unable to find a bound object at name 'java:jboss/datasources/jbpmDS'
> at bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:83)
> at javax.naming.InitialContext.lookup(InitialContext.java:392)
> at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)
> at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)
> at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
> at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
> at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
> at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
> at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
> at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
> at com.sample.ProcessMain.startTaskService(ProcessMain.java:219)
> at com.sample.ProcessMain.main(ProcessMain.java:50)
> Exception in thread "main" javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] Unable to build EntityManagerFactory
> at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
> at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
> at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
> at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
> at com.sample.ProcessMain.startTaskService(ProcessMain.java:219)
> at com.sample.ProcessMain.main(ProcessMain.java:50)
> Caused by: org.hibernate.HibernateException: Could not find datasource
> at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:79)
> at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:137)
> at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29)
> at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:89)
> at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)
> at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)
> at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
> at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
> ... 5 more
> Caused by: javax.naming.NameNotFoundException: unable to find a bound object at name 'java:jboss/datasources/jbpmDS'
> at bitronix.tm.jndi.BitronixContext.lookup(BitronixContext.java:83)
> at javax.naming.InitialContext.lookup(InitialContext.java:392)
> at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75)
> ... 13 more
*I am using the following persistence.xml*
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <persistence
> version="1.0"
> xsi:schemaLocation=
> " http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence
> http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
> http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm
> http://java.sun.com/xml/ns/persistence/orm_1_0.xsd http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
> xmlns:orm=" http://java.sun.com/xml/ns/persistence/orm http://java.sun.com/xml/ns/persistence/orm"
> xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
> xmlns=" http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence">
>
> <persistence-unit name="org.jbpm.persistence.jpa" transaction-type="RESOURCE_LOCAL">
> <provider>org.hibernate.ejb.HibernatePersistence</provider>
> <non-jta-data-source>java:jboss/datasources/jbpmDS</non-jta-data-source>
> <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.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>
>
>
> <properties>
> <property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/>
> <property name="hibernate.connection.driver_class" value="org.h2.Driver"/>
> <property name="hibernate.connection.url" value="jdbc:h2:~/test" />
> <property name="hibernate.connection.username" value="sa"/>
> <property name="hibernate.connection.password" value=""/>
> <property name="hibernate.connection.autocommit" value="true" />
> <property name="hibernate.max_fetch_depth" value="3"/>
> <property name="hibernate.hbm2ddl.auto" value="create" />
> <property name="hibernate.show_sql" value="true" />
> </properties>
> </persistence-unit>
> </persistence>
>
Regards,
Yogesh Garg
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/774783#774783]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 3 months