The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Shola (5) [Avatar] Offline
#1
Hello All,
I am trying to get the sample application Activiti-CDI to work on Glassfish 3.1.2.2 Server (Windows) but I am getting this error
Exception 0 :
org.activiti.engine.ActivitiException: Could not find an implementation of the org.activiti.cdi.spi.ProcessEngineLookup service returning a non-null processEngine. Giving up.
at org.activiti.cdi.impl.ActivitiExtension.lookupProcessEngine(ActivitiExtension.java:110)

I am using Activiti-cdi 5.13 in my Maven pom
Below is my activiti.cfg.xml file

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" >
xmlnssmiliesi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

<!– activiti configuration for glassfish application server –>
<!– lookup the JTA-Transaction manager –>
<bean id="transactionManager" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="java:appserver/TransactionManager"></property>
<property name="resourceRef" value="true" />
</bean>

<!– process engine configuration –>
<bean id="processEngineConfiguration" class="org.activiti.cdi.CdiJtaProcessEngineConfiguration">
<property name="dataSourceJndiName" value="jdbc/activiti" />
<property name="databaseType" value="mysql" />
<property name="transactionManager" ref="transactionManager" />
<property name="transactionsExternallyManaged" value="true" />
<property name="databaseSchemaUpdate" value="true" />
<property name="mailServerHost" value="localhost" />
<property name="mailServerPort" value="2525" />
</bean>
</beans>

Any help will be appreciated.
Thanks

Message was edited by:
Shola
tijs.rademakers (494) [Avatar] Offline
#2
Re: Book-cdi app on Glassfish 3.1.2.2
Hi Shola,

The Activiti CDI implementation has been tested on JBoss only so it could be that there are problems for Glassfish. Could you create a JIRA in the Activiti project?

Best regards,

Tijs
Shola (5) [Avatar] Offline
#3
Re: Book-cdi app on Glassfish 3.1.2.2
Thanks Tijs for your quick response.

I will do that asap.
Shola (5) [Avatar] Offline
#4
Re: Book-cdi app on Glassfish 3.1.2.2
Hi Tijs,

I tried creating a Jira ticket. I am not sure I can create an account?

BR
tijs.rademakers (494) [Avatar] Offline
#5
Re: Book-cdi app on Glassfish 3.1.2.2
Hi,

You should be able to create an account here:

https://xircles.codehaus.org/signup

Best regards,

Tijs