<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using Activiti in an JEE environment in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69713#M44880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there something similar?&lt;/BLOCKQUOTE&gt;A good old startup servlet?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;ok, i switched to JEE6 for that project and use a singleton session bean for that issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i provided the activiti jars in the webapps pom and added the following activiti.cfg.xml to the WEB-INF directory:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;beans xmlns="&lt;A href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;"&lt;BR /&gt; xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:jee="&lt;A href="http://www.springframework.org/schema/jee" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/jee&lt;/A&gt;"&lt;BR /&gt; xsi:schemaLocation="&lt;BR /&gt;&amp;nbsp; &lt;A href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans&lt;/A&gt; &lt;A href="http://www.springframework.org/schema/beans/spring-beans.xsd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans/spring-beans.xsd&lt;/A&gt;&lt;BR /&gt;&amp;nbsp; &lt;A href="http://www.springframework.org/schema/jee" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/jee&lt;/A&gt; &lt;A href="http://www.springframework.org/schema/jee/spring-jee-2.0.xsd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/jee/spring-jee-2.0.xsd&lt;/A&gt;"&amp;gt;&lt;BR /&gt; &amp;lt;jee:jndi-lookup jndi-name="java:TestErp" id="dataSource" /&amp;gt;&lt;BR /&gt; &amp;lt;bean id="processEngineConfiguration"&lt;BR /&gt;&amp;nbsp; class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="dataSource" ref="dataSource" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="databaseSchemaUpdate" value="true" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="jobExecutorActivate" value="false" /&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;/beans&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;unfortunately i dont get a process engine using the following code in the constructor of the singleton session bean:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;/**&lt;BR /&gt; * Session Bean implementation class ActivitiStarter&lt;BR /&gt; */&lt;BR /&gt;@Singleton&lt;BR /&gt;@LocalBean&lt;BR /&gt;public class ActivitiStarter {&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessEngine processEngine = null;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /**&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Default constructor. &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public ActivitiStarter() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; processEngine = ProcessEngines.getDefaultProcessEngine();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What about CDI?&lt;/BLOCKQUOTE&gt;Even better&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;i added activiti-cdi to my pom and added a bean.xml with the following content:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-1"?&amp;gt;&lt;BR /&gt;&amp;lt;beans xmlns="&lt;A href="http://java.sun.com/xml/ns/javaee" rel="nofollow noopener noreferrer"&gt;http://java.sun.com/xml/ns/javaee&lt;/A&gt;" xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;"&lt;BR /&gt;xsi:schemaLocation="&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://java.sun.com/xml/ns/javaee" rel="nofollow noopener noreferrer"&gt;http://java.sun.com/xml/ns/javaee&lt;/A&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://java.sun.com/xml/ns/javaee/beans_1_0.xsd" rel="nofollow noopener noreferrer"&gt;http://java.sun.com/xml/ns/javaee/beans_1_0.xsd&lt;/A&gt;"&amp;gt;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &amp;lt;alternatives&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;class&amp;gt;org.activiti.cdi.impl.LocalProcessEngineLookup&amp;lt;/class&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/alternatives&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/beans&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;but when i deploy the webapp to glassfish i get the following exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;SCHWERWIEGEND: Exception while loading the app&lt;BR /&gt;SCHWERWIEGEND: Exception while loading the app : Exception List with 1 exceptions:&lt;BR /&gt;Exception 0 :&lt;BR /&gt;java.util.NoSuchElementException&lt;BR /&gt; at java.util.HashMap$HashIterator.nextEntry(HashMap.java:796)&lt;BR /&gt; at java.util.HashMap$KeyIterator.next(HashMap.java:828)&lt;BR /&gt; at org.activiti.cdi.impl.util.ProgrammaticBeanLookup.lookup(ProgrammaticBeanLookup.java:29)&lt;BR /&gt; at org.activiti.cdi.impl.ActivitiExtension.initializeProcessEngine(ActivitiExtension.java:83)&lt;BR /&gt; at org.activiti.cdi.impl.ActivitiExtension.afterDeploymentValidation(ActivitiExtension.java:69)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;BR /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;BR /&gt; at java.lang.reflect.Method.invoke(Method.java:597)&lt;BR /&gt; at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)&lt;BR /&gt; at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)&lt;BR /&gt; at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)&lt;BR /&gt; at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)&lt;BR /&gt; at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)&lt;BR /&gt; at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)&lt;BR /&gt; at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)&lt;BR /&gt; at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:270)&lt;BR /&gt; at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:253)&lt;BR /&gt; at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:222)&lt;BR /&gt; at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:88)&lt;BR /&gt; at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:52)&lt;BR /&gt; at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:34)&lt;BR /&gt; at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:393)&lt;BR /&gt; at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:190)&lt;BR /&gt; at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)&lt;BR /&gt; at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:298)&lt;BR /&gt; at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)&lt;BR /&gt; at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)&lt;BR /&gt; at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)&lt;BR /&gt; at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)&lt;BR /&gt; at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)&lt;BR /&gt; at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)&lt;BR /&gt; at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)&lt;BR /&gt; at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)&lt;BR /&gt; at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)&lt;BR /&gt; at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:465)&lt;BR /&gt; at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:222)&lt;BR /&gt; at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)&lt;BR /&gt; at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)&lt;BR /&gt; at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)&lt;BR /&gt; at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)&lt;BR /&gt; at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)&lt;BR /&gt; at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)&lt;BR /&gt; at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)&lt;BR /&gt; at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)&lt;BR /&gt; at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)&lt;BR /&gt; at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)&lt;BR /&gt; at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)&lt;BR /&gt; at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)&lt;BR /&gt; at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)&lt;BR /&gt; at com.sun.grizzly.ContextTask.run(ContextTask.java:71)&lt;BR /&gt; at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)&lt;BR /&gt; at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:662)&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;does this happen because activiti-cdi can not find a process engine?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Aug 2011 19:53:56 GMT</pubDate>
    <dc:creator>chris_joelly</dc:creator>
    <dc:date>2011-08-01T19:53:56Z</dc:date>
    <item>
      <title>Using Activiti in an JEE environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69711#M44878</link>
      <description>Hello,i just try to figure out how to use Activiti engine in an JEE application running on an JEE server.The server in question is Apache Geronimo which provides things like JPA and JSF, which i wantto use for an application, and for some parts of that application i want to use Activiti as processen</description>
      <pubDate>Thu, 28 Jul 2011 18:45:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69711#M44878</guid>
      <dc:creator>chris_joelly</dc:creator>
      <dc:date>2011-07-28T18:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using Activiti in an JEE environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69712#M44879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there something similar?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;A good old startup servlet?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;When Activiti is configured with a persistence unit from that persistence.xml, is this sufficient for Activiti to be able to use the JPA driven entities from the EJB module?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I think so, have not used it myself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;but how needs Activiti to be configured to use a datasource provided by the JEE server?&lt;/BLOCKQUOTE&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=1623" rel="nofollow noopener noreferrer"&gt;See here&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can the process engine and the processes and tasks be managed without Explorer, e.g. when building an own user interface around the Activiti engine?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Sure, Activiti core is basically a jar with a java api&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is the REST interface of Activiti the interface for such integration?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I would not use that if you think JSF… use the java api, much, much easier, typesafe, performant etc…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What about CDI?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Even better&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;This is only available in JEE6 environments?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;It is present by default in JEE6, but just add some jars to JEE5 and it works great.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 20:56:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69712#M44879</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-07-28T20:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using Activiti in an JEE environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69713#M44880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there something similar?&lt;/BLOCKQUOTE&gt;A good old startup servlet?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;ok, i switched to JEE6 for that project and use a singleton session bean for that issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i provided the activiti jars in the webapps pom and added the following activiti.cfg.xml to the WEB-INF directory:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;beans xmlns="&lt;A href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;"&lt;BR /&gt; xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:jee="&lt;A href="http://www.springframework.org/schema/jee" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/jee&lt;/A&gt;"&lt;BR /&gt; xsi:schemaLocation="&lt;BR /&gt;&amp;nbsp; &lt;A href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans&lt;/A&gt; &lt;A href="http://www.springframework.org/schema/beans/spring-beans.xsd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans/spring-beans.xsd&lt;/A&gt;&lt;BR /&gt;&amp;nbsp; &lt;A href="http://www.springframework.org/schema/jee" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/jee&lt;/A&gt; &lt;A href="http://www.springframework.org/schema/jee/spring-jee-2.0.xsd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/jee/spring-jee-2.0.xsd&lt;/A&gt;"&amp;gt;&lt;BR /&gt; &amp;lt;jee:jndi-lookup jndi-name="java:TestErp" id="dataSource" /&amp;gt;&lt;BR /&gt; &amp;lt;bean id="processEngineConfiguration"&lt;BR /&gt;&amp;nbsp; class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="dataSource" ref="dataSource" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="databaseSchemaUpdate" value="true" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="jobExecutorActivate" value="false" /&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;/beans&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;unfortunately i dont get a process engine using the following code in the constructor of the singleton session bean:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;/**&lt;BR /&gt; * Session Bean implementation class ActivitiStarter&lt;BR /&gt; */&lt;BR /&gt;@Singleton&lt;BR /&gt;@LocalBean&lt;BR /&gt;public class ActivitiStarter {&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessEngine processEngine = null;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /**&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * Default constructor. &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public ActivitiStarter() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; processEngine = ProcessEngines.getDefaultProcessEngine();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What about CDI?&lt;/BLOCKQUOTE&gt;Even better&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;i added activiti-cdi to my pom and added a bean.xml with the following content:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-1"?&amp;gt;&lt;BR /&gt;&amp;lt;beans xmlns="&lt;A href="http://java.sun.com/xml/ns/javaee" rel="nofollow noopener noreferrer"&gt;http://java.sun.com/xml/ns/javaee&lt;/A&gt;" xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;"&lt;BR /&gt;xsi:schemaLocation="&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://java.sun.com/xml/ns/javaee" rel="nofollow noopener noreferrer"&gt;http://java.sun.com/xml/ns/javaee&lt;/A&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://java.sun.com/xml/ns/javaee/beans_1_0.xsd" rel="nofollow noopener noreferrer"&gt;http://java.sun.com/xml/ns/javaee/beans_1_0.xsd&lt;/A&gt;"&amp;gt;&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &amp;lt;alternatives&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;class&amp;gt;org.activiti.cdi.impl.LocalProcessEngineLookup&amp;lt;/class&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/alternatives&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/beans&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;but when i deploy the webapp to glassfish i get the following exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;SCHWERWIEGEND: Exception while loading the app&lt;BR /&gt;SCHWERWIEGEND: Exception while loading the app : Exception List with 1 exceptions:&lt;BR /&gt;Exception 0 :&lt;BR /&gt;java.util.NoSuchElementException&lt;BR /&gt; at java.util.HashMap$HashIterator.nextEntry(HashMap.java:796)&lt;BR /&gt; at java.util.HashMap$KeyIterator.next(HashMap.java:828)&lt;BR /&gt; at org.activiti.cdi.impl.util.ProgrammaticBeanLookup.lookup(ProgrammaticBeanLookup.java:29)&lt;BR /&gt; at org.activiti.cdi.impl.ActivitiExtension.initializeProcessEngine(ActivitiExtension.java:83)&lt;BR /&gt; at org.activiti.cdi.impl.ActivitiExtension.afterDeploymentValidation(ActivitiExtension.java:69)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;BR /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;BR /&gt; at java.lang.reflect.Method.invoke(Method.java:597)&lt;BR /&gt; at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)&lt;BR /&gt; at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)&lt;BR /&gt; at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)&lt;BR /&gt; at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)&lt;BR /&gt; at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)&lt;BR /&gt; at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)&lt;BR /&gt; at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)&lt;BR /&gt; at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:270)&lt;BR /&gt; at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:253)&lt;BR /&gt; at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:222)&lt;BR /&gt; at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:88)&lt;BR /&gt; at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:52)&lt;BR /&gt; at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:34)&lt;BR /&gt; at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:393)&lt;BR /&gt; at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:190)&lt;BR /&gt; at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:128)&lt;BR /&gt; at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:298)&lt;BR /&gt; at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)&lt;BR /&gt; at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)&lt;BR /&gt; at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)&lt;BR /&gt; at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)&lt;BR /&gt; at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)&lt;BR /&gt; at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)&lt;BR /&gt; at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)&lt;BR /&gt; at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)&lt;BR /&gt; at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)&lt;BR /&gt; at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:465)&lt;BR /&gt; at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:222)&lt;BR /&gt; at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)&lt;BR /&gt; at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)&lt;BR /&gt; at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)&lt;BR /&gt; at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)&lt;BR /&gt; at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)&lt;BR /&gt; at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)&lt;BR /&gt; at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)&lt;BR /&gt; at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)&lt;BR /&gt; at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)&lt;BR /&gt; at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)&lt;BR /&gt; at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)&lt;BR /&gt; at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)&lt;BR /&gt; at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)&lt;BR /&gt; at com.sun.grizzly.ContextTask.run(ContextTask.java:71)&lt;BR /&gt; at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)&lt;BR /&gt; at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:662)&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;does this happen because activiti-cdi can not find a process engine?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 19:53:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69713#M44880</guid>
      <dc:creator>chris_joelly</dc:creator>
      <dc:date>2011-08-01T19:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using Activiti in an JEE environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69714#M44881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i found some issues:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;first the activity.cfg.xml was not in the classpath, and then i found in the docs that i need to execute ProcessEngines.init() and ProcessEngines.destroy() to start and stop the engine. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then it seems that i used a wrong schemaLocation for the jee namespace in the activiti.cfg.xml. i corrected the namespace, but i still get the following exception when the Activiti engine initializes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;INFO: initializing process engine for resource file:/data/Projects/JavaLibs/glassfish/glassfish3/glassfish/domains/domain1/eclipseApps/&lt;A href="http://erp.web/WEB-INF/classes/activiti.cfg.xml" rel="nofollow noopener noreferrer"&gt;erp.web/WEB-INF/classes/activiti.cfg.xml&lt;/A&gt;&lt;BR /&gt;INFO: Loading XML bean definitions from resource loaded through InputStream&lt;BR /&gt;&lt;BR /&gt;SCHWERWIEGEND: Exception while initializing process engine :Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [&lt;A href="http://www.springframework.org/schema/jee" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/jee&lt;/A&gt;]&lt;BR /&gt;Offending resource: resource loaded through InputStream&lt;BR /&gt;org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [&lt;A href="http://www.springframework.org/schema/jee" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/jee&lt;/A&gt;]&lt;BR /&gt;Offending resource: resource loaded through InputStream&lt;BR /&gt; at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)&lt;BR /&gt; at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)&lt;BR /&gt; at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:80)&lt;BR /&gt; at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error(BeanDefinitionParserDelegate.java:284)&lt;BR /&gt; at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1332)&lt;BR /&gt; at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1325)&lt;BR /&gt; at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)&lt;BR /&gt; at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:93)&lt;BR /&gt; at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)&lt;BR /&gt; at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)&lt;BR /&gt; at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)&lt;BR /&gt; at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)&lt;BR /&gt; at org.activiti.engine.impl.cfg.BeansConfigurationHelper.parseProcessEngineConfiguration(BeansConfigurationHelper.java:35)&lt;BR /&gt; at org.activiti.engine.impl.cfg.BeansConfigurationHelper.parseProcessEngineConfigurationFromInputStream(BeansConfigurationHelper.java:43)&lt;BR /&gt; at org.activiti.engine.ProcessEngineConfiguration.createProcessEngineConfigurationFromInputStream(ProcessEngineConfiguration.java:163)&lt;BR /&gt; at org.activiti.engine.ProcessEngineConfiguration.createProcessEngineConfigurationFromInputStream(ProcessEngineConfiguration.java:159)&lt;BR /&gt; at org.activiti.engine.ProcessEngines.buildProcessEngine(ProcessEngines.java:176)&lt;BR /&gt; at org.activiti.engine.ProcessEngines.initProcessEnginFromResource(ProcessEngines.java:150)&lt;BR /&gt; at org.activiti.engine.ProcessEngines.init(ProcessEngines.java:88)&lt;BR /&gt; at com.examples.ejbeans.ActivitiStarter.initEngine(ActivitiStarter.java:30)&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;it seems that i have some problems getting the activiti.cfg.xml file correct so that i can use jee:jndi-lookup:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;beans xmlns="&lt;A href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;"&lt;BR /&gt; xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:jee="&lt;A href="http://www.springframework.org/schema/jee" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/jee&lt;/A&gt;"&lt;BR /&gt; xsi:schemaLocation="&lt;BR /&gt; &lt;A href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans&lt;/A&gt; &lt;A href="http://www.springframework.org/schema/beans/spring-beans.xsd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans/spring-beans.xsd&lt;/A&gt;&lt;BR /&gt; &lt;A href="http://www.springframework.org/schema/jee" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/jee&lt;/A&gt; &lt;A href="http://www.springframework.org/schema/jee/spring-jee.xsd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/jee/spring-jee.xsd&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;jee:jndi-lookup jndi-name="jdbc/MysqlErp" id="dataSource" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;bean id="processEngineConfiguration"&lt;BR /&gt;&amp;nbsp; class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="dataSource" ref="dataSource" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="databaseSchemaUpdate" value="true" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="databaseType" value="mysql" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="jobExecutorActivate" value="false" /&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;/beans&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;can somebody point me to the problems i have? in my classpath i only have the dependencies which maven adds via activiti-engine, maybe i need another spring module for this to work correct?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2011 22:08:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69714#M44881</guid>
      <dc:creator>chris_joelly</dc:creator>
      <dc:date>2011-08-01T22:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using Activiti in an JEE environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69715#M44882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I am not Spring expert but just copied activiti.cfg.xml from Manual and it works fine for me! Go to "Creating a ProcessEngine" in manual and you are done!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Somebody can tell me if following call in every JSF's backing bean's constructor that need process engine is a bad practise?:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;processEngine = ProcessEngines.getDefaultProcessEngine();&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 08:59:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69715#M44882</guid>
      <dc:creator>p4w3l</dc:creator>
      <dc:date>2011-08-02T08:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using Activiti in an JEE environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69716#M44883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi, I am not Spring expert but just copied activiti.cfg.xml from Manual and it works fine for me! Go to "Creating a ProcessEngine" in manual and you are done!&lt;BR /&gt;&lt;BR /&gt;Somebody can tell me if following call in every JSF's backing bean's constructor that need process engine is a bad practise?:&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;processEngine = ProcessEngines.getDefaultProcessEngine();&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;my issue is related to the jee: namespace because i want/need to lookup a datasource from the JEE container via JNDI.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so just copying the sample cfg.xml is not enough.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;unfortunately i am not able to see the problem, even if i debug the code creating a processengine from the activiti.cfg.xml.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 09:28:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69716#M44883</guid>
      <dc:creator>chris_joelly</dc:creator>
      <dc:date>2011-08-02T09:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using Activiti in an JEE environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69717#M44884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;what does the spring forum say about this? Sounds like some jar is missing, but I'm not only not a spring expert, I'm not a spring user at all, so could not help you in detail&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 17:43:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69717#M44884</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-08-02T17:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using Activiti in an JEE environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69718#M44885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;what does the spring forum say about this? Sounds like some jar is missing, but I'm not only not a spring expert, I'm not a spring user at all, so could not help you in detail&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;i managed to find the neccessary sping dependency: it is spring-context, there the needed xsd is available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 18:48:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69718#M44885</guid>
      <dc:creator>chris_joelly</dc:creator>
      <dc:date>2011-08-02T18:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using Activiti in an JEE environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69719#M44886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;finally Activitiy is able to create the needed tables in the MySql database, but i get the following exception:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;javax.resource.spi.LocalTransactionException: Can't call commit when autocommit=true&lt;BR /&gt; at com.sun.gjc.spi.LocalTransaction.commit(LocalTransaction.java:112)&lt;BR /&gt; at com.sun.enterprise.resource.ConnectorXAResource.commit(ConnectorXAResource.java:124)&lt;BR /&gt; at com.sun.enterprise.transaction.JavaEETransactionImpl.commit(JavaEETransactionImpl.java:503)&lt;BR /&gt; at com.sun.enterprise.transaction.JavaEETransactionManagerSimplified.commit(JavaEETransactionManagerSimplified.java:867)&lt;BR /&gt; at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:5115)&lt;BR /&gt; at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4894)&lt;BR /&gt; at com.sun.ejb.containers.AbstractSingletonContainer.createSingletonEJB(AbstractSingletonContainer.java:555)&lt;BR /&gt; at com.sun.ejb.containers.AbstractSingletonContainer.access$100(AbstractSingletonContainer.java:79)&lt;BR /&gt; at com.sun.ejb.containers.AbstractSingletonContainer$SingletonContextFactory.create(AbstractSingletonContainer.java:717)&lt;BR /&gt; at com.sun.ejb.containers.AbstractSingletonContainer.instantiateSingletonInstance(AbstractSingletonContainer.java:449)&lt;BR /&gt; at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:216)&lt;BR /&gt; at org.glassfish.ejb.startup.SingletonLifeCycleManager.initializeSingleton(SingletonLifeCycleManager.java:177)&lt;BR /&gt; at org.glassfish.ejb.startup.SingletonLifeCycleManager.doStartup(SingletonLifeCycleManager.java:155)&lt;BR /&gt; at org.glassfish.ejb.startup.EjbApplication.start(EjbApplication.java:177)&lt;BR /&gt; at org.glassfish.internal.data.EngineRef.start(EngineRef.java:130)&lt;BR /&gt; at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:269)&lt;BR /&gt; at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:286)&lt;BR /&gt; at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)&lt;BR /&gt; at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)&lt;BR /&gt; at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)&lt;BR /&gt; at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)&lt;BR /&gt; at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)&lt;BR /&gt; at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)&lt;BR /&gt; at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)&lt;BR /&gt; at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)&lt;BR /&gt; at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)&lt;BR /&gt; at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:465)&lt;BR /&gt; at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:222)&lt;BR /&gt; at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)&lt;BR /&gt; at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)&lt;BR /&gt; at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)&lt;BR /&gt; at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)&lt;BR /&gt; at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)&lt;BR /&gt; at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)&lt;BR /&gt; at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)&lt;BR /&gt; at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)&lt;BR /&gt; at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)&lt;BR /&gt; at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)&lt;BR /&gt; at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)&lt;BR /&gt; at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)&lt;BR /&gt; at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)&lt;BR /&gt; at com.sun.grizzly.ContextTask.run(ContextTask.java:71)&lt;BR /&gt; at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)&lt;BR /&gt; at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:662)&lt;BR /&gt;Caused by: java.sql.SQLException: Can't call commit when autocommit=true&lt;BR /&gt; at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:930)&lt;BR /&gt; at com.mysql.jdbc.ConnectionImpl.commit(ConnectionImpl.java:1602)&lt;BR /&gt; at com.sun.gjc.spi.LocalTransaction.commit(LocalTransaction.java:106)&lt;BR /&gt; … 44 more&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;i assume this is related to the datasource configuration in Glassfish, but i did not find a property&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to disable autocommit on the JDBC connection pool nor on the JDBC resource.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I saw in the user guide of Activiti that it is possible to disable autocommit on an datasource&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which is configured through an e.g. DBCP datasource. So.. i think i can not disable it when i&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lookup the datasource via JNDI in activiti.cfg.xml and inject it into the engine configuration?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 20:09:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69719#M44886</guid>
      <dc:creator>chris_joelly</dc:creator>
      <dc:date>2011-08-02T20:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using Activiti in an JEE environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69720#M44887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Depending on what you want, you can make activiti use/join a jta transaction. It does not doe the transactionhandling itself. So that might be a solution&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 21:53:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69720#M44887</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-08-02T21:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Activiti in an JEE environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69721#M44888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hm. ok. i found this snippet in the forum:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;bean id="transactionManager"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class="org.springframework.transaction.jta.WebSphereUowTransactionManager"/&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;!– process engine configuration –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;bean id="processEngineConfiguration"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class="org.activiti.engine.impl.cfg.JtaProcessEngineConfiguration"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="dataSourceJndiName" value="jdbc/activitiDSH2" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="transactionManager" ref="transactionManager" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="transactionsExternallyManaged" value="true" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="databaseSchemaUpdate" value="false" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="mailServerHost" value="localhost" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="mailServerPort" value="2525" /&amp;gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;and it is said that "The JTA process engine configuration needs a javax.transaction.TransactionManager…"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is this the configuration i need? and from where can i obtain such a TransactionManager?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 17:05:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69721#M44888</guid>
      <dc:creator>chris_joelly</dc:creator>
      <dc:date>2011-08-03T17:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using Activiti in an JEE environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69722#M44889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;is this the configuration i need? and from where can i obtain such a TransactionManager?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it is… Obtaining the JTA TransactionManager is done IN the class you specified (since it is container specific) So you should not need to do anything else (I think, did not use the spring way of configuring Activiti)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 22:28:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69722#M44889</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-08-03T22:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using Activiti in an JEE environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69723#M44890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;finally i can initialize a process engine using the following activiti.cfg.xml and an singleton session bean in Glassfish:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;beans xmlns="&lt;A href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;"&lt;BR /&gt; xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:jee="&lt;A href="http://www.springframework.org/schema/jee" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/jee&lt;/A&gt;"&lt;BR /&gt; xsi:schemaLocation="&lt;BR /&gt; &lt;A href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans&lt;/A&gt; &lt;A href="http://www.springframework.org/schema/beans/spring-beans.xsd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans/spring-beans.xsd&lt;/A&gt;&lt;BR /&gt; &lt;A href="http://www.springframework.org/schema/jee" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/jee&lt;/A&gt; &lt;A href="http://www.springframework.org/schema/jee/spring-jee.xsd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/jee/spring-jee.xsd&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;jee:jndi-lookup jndi-name="java:appserver/TransactionManager" id="transactionManager" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;bean id="processEngineConfiguration"&lt;BR /&gt;&amp;nbsp; class="org.activiti.engine.impl.cfg.JtaProcessEngineConfiguration"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="transactionManager" ref="transactionManager"/&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="transactionsExternallyManaged" value="true" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="dataSourceJndiName" value="jdbc/MysqlErp" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="databaseSchemaUpdate" value="true" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="databaseType" value="mysql" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="jobExecutorActivate" value="false" /&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/beans&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the help &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2011 14:02:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69723#M44890</guid>
      <dc:creator>chris_joelly</dc:creator>
      <dc:date>2011-08-07T14:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using Activiti in an JEE environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69724#M44891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for reporting back…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2011 21:22:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69724#M44891</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-08-07T21:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using Activiti in an JEE environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69725#M44892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use class java based &amp;nbsp;classe to replace activiti.cfg.xml it's bettre if you need help &amp;nbsp;i can help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 08:17:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69725#M44892</guid>
      <dc:creator>idireneyoucef</dc:creator>
      <dc:date>2017-04-13T08:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using Activiti in an JEE environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69726#M44893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think you can help &amp;nbsp;me &amp;nbsp;im working with activiti and jsf page &amp;nbsp;i start my process&amp;nbsp;&lt;/P&gt;&lt;P&gt;the problem is when i go to the first user &amp;nbsp;task and i try to complet task with this instruction&lt;/P&gt;&lt;P&gt;#{businessProcess.completeTask(true)} i have this error &amp;nbsp;no task associed call start task before&amp;nbsp;&lt;/P&gt;&lt;P&gt;this error &amp;nbsp;come cause the ID &amp;nbsp;of the current task is nullif you can help me pleas &amp;nbsp;tel me &amp;nbsp;&lt;/P&gt;&lt;P&gt;#HELP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 May 2017 12:42:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-activiti-in-an-jee-environment/m-p/69726#M44893</guid>
      <dc:creator>idireneyoucef</dc:creator>
      <dc:date>2017-05-29T12:42:08Z</dc:date>
    </item>
  </channel>
</rss>

