<?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: CDI problem in WebLogic in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108468#M76047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Update again:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have come to the conclusion that this is a general classloading problem in WebLogic and hence has nothing to do with Activiti as such. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the interested:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The ServiceLoader lookup on ProcessEngingeLookup instances in ActivitiExtension fails in WebLogic due to the fact that the system class loader does not see the LocalProcessEngineLookup…Fixed that by providing the class loader for the ActivitiExtension class in the load call but then stumbled on the subsequent programmatic lookup for a ActivitiServices instance..Similar problem here, the injected BeanManager instance does not see the ActivitiServices bean instance…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Giving this up for now and hoping for the next version of WebLogic to fix these problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/Petter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Nov 2012 12:50:31 GMT</pubDate>
    <dc:creator>petter_f</dc:creator>
    <dc:date>2012-11-08T12:50:31Z</dc:date>
    <item>
      <title>CDI problem in WebLogic</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108460#M76039</link>
      <description>Hi all,We are currently trying to refactor our Activiti module into using CDI and I've run into a number of problems. Now, reverting back to step 1 I get the following error:weblogic.management.DeploymentException: &amp;nbsp;&amp;nbsp;&amp;nbsp;at weblogic.application.internal.BaseDeployment.throwAppException(BaseDeployment.j</description>
      <pubDate>Wed, 10 Oct 2012 11:29:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108460#M76039</guid>
      <dc:creator>petter_f</dc:creator>
      <dc:date>2012-10-10T11:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: CDI problem in WebLogic</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108461#M76040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I assume you also have to change the process engine configuration to CdiStandaloneProcessEngineConfiguration or CdiJtaProcessEngineConfiguration&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 13:09:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108461#M76040</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-11T13:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: CDI problem in WebLogic</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108462#M76041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, currently using CdiJtaProcessEngineConfiguration, see config file below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&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;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-2.5.xsd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans/spring-beans-2.5.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-2.5.xsd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/jee/spring-jee-2.5.xsd&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;jee:jndi-lookup jndi-name="weblogic.transaction.TransactionManager" id="transactionManager" /&amp;gt;&lt;BR /&gt; &amp;lt;jee:jndi-lookup jndi-name="ActivitiDS" id="dataSource" /&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;bean id="processEngineConfiguration" class="org.activiti.cdi.CdiJtaProcessEngineConfiguration"&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="databaseSchemaUpdate" value="false" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="dataSource" ref="dataSource" /&amp;gt;&lt;BR /&gt;&amp;lt;!–&amp;nbsp;&amp;nbsp; &amp;lt;property name="jobExecutorActivate" value="true" /&amp;gt; –&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="jdbcDriver" value="oracle.jdbc.driver.OracleDriver" /&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;/beans&amp;gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 09:40:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108462#M76041</guid>
      <dc:creator>petter_f</dc:creator>
      <dc:date>2012-10-12T09:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: CDI problem in WebLogic</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108463#M76042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So did you make a typo in your original post, because you stated that 'My activiti.cfg.xml is left unchanged:' and posted one without the cdi config.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, where is the config you posted now is living, and how are you accessing the process engine created that way?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 07:51:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108463#M76042</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-15T07:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: CDI problem in WebLogic</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108464#M76043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, I was fiddling around with the config file and accidentally posted one with the Cdi configuration. Both configurations generate the same error however….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for the access of the ProcessEngine instance, it is done as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;ProcessEngineConfiguration.createProcessEngineConfigurationFromResourceDefault().buildProcessEngine();&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/Petter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 12:35:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108464#M76043</guid>
      <dc:creator>petter_f</dc:creator>
      <dc:date>2012-10-15T12:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: CDI problem in WebLogic</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108465#M76044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, but where is this code called? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In CDI, shouldn't you configure these beans somehow. Now you are circumventing the cdi containter, it seems to me. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See the userguide:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The cdi extension needs to get access to a ProcessEngine. To achieve this, an implementation of the interface org.activiti.cdi.spi.ProcessEngineLookup is looked up at runtime. The cdi module ships with a default implementation named org.activiti.cdi.impl.LocalProcessEngineLookup, which uses the ProcessEngines-Utility class for looking up the ProcessEngine. In the default configuration ProcessEngines#NAME_DEFAULT is used to lookup the ProcessEngine. This class might be subclassed to set a custom name. NOTE: needs an activiti.cfg.xml configuration on the classpath.&lt;BR /&gt;&lt;BR /&gt;Activiti cdi uses a java.util.ServiceLoader SPI for resolving an instance of org.activiti.cdi.spi.ProcessEngineLookup. In order to provide a custom implementation of the interface, we need to add a plain text file named META-INF/services/org.activiti.cdi.spi.ProcessEngineLookup to our deployment, in which we specify the fully qualified classname of the implementation.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 09:37:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108465#M76044</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-16T09:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: CDI problem in WebLogic</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108466#M76045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It actually seems like we have a general problem with running CDI enabled modules in our WebLogic. We are currently trying to resolve those issues using a very simple test app without involving Activiti at all. Will update this thread once that has been completed. Thanks for your time so far!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/Petter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Oct 2012 07:37:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108466#M76045</guid>
      <dc:creator>petter_f</dc:creator>
      <dc:date>2012-10-18T07:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: CDI problem in WebLogic</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108467#M76046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, update: I do have a test war that works in Jboss 7.1.1 and in Glassfish 3.1.2.2 but fails in Weblogic 12c (12.1.1.0) with the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;org.activiti.engine.ActivitiException: Could not find an implementation of the org.activiti.cdi.spi.ProcessEngineLookup service returning a non-null processEngine. Giving up.&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;I did run into the jersey/cdi problem (java.io.NotSerializableException: com.sun.jersey.server.impl.cdi.CDIExtension) and circumvented by adding&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;-Dcom.sun.jersey.server.impl.cdi.lookupExtensionInBeanManager=true&lt;/CODE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to the start script of the managed node….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems to me that it is indeed a problem with Weblogic and not with Activiti. But if anyone has experienced a similar problem (and resolved it) I would be thrilled to know how.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a side note, my current config (activiti.cdg.xml) is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xsi:schemaLocation="&lt;A href="http://www.springframework.org/schema/beans" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/schema/beans&lt;/A&gt;&amp;nbsp;&amp;nbsp; &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;"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;bean id="processEngineConfiguration" class="org.activiti.cdi.CdiStandaloneProcessEngineConfiguration"&amp;gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="jdbcUrl" value="jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="jdbcDriver" value="org.h2.Driver" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="jdbcUsername" value="sa" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="jdbcPassword" value="" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="databaseSchemaUpdate" value="true" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="jobExecutorActivate" value="false" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;/beans&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;and the engine initialization is performed from a JAX-RS class as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;@Path("/test")&lt;BR /&gt;@RequestScoped&lt;BR /&gt;public class MyResource {&lt;BR /&gt; @Inject&lt;BR /&gt; private ProcessEngine pe;&lt;BR /&gt; …..&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a hunch that this may have something to do with the fact that the spring depencies brings in jars with non-compliant version names like "3.1.0.RELEASE". I don't know if the Weblogic appc chokes on jars like that, but if anyone can give me hint on that as well I would appreicate it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your time,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/Petter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 20:44:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108467#M76046</guid>
      <dc:creator>petter_f</dc:creator>
      <dc:date>2012-10-25T20:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: CDI problem in WebLogic</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108468#M76047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Update again:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have come to the conclusion that this is a general classloading problem in WebLogic and hence has nothing to do with Activiti as such. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the interested:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The ServiceLoader lookup on ProcessEngingeLookup instances in ActivitiExtension fails in WebLogic due to the fact that the system class loader does not see the LocalProcessEngineLookup…Fixed that by providing the class loader for the ActivitiExtension class in the load call but then stumbled on the subsequent programmatic lookup for a ActivitiServices instance..Similar problem here, the injected BeanManager instance does not see the ActivitiServices bean instance…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Giving this up for now and hoping for the next version of WebLogic to fix these problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/Petter&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 12:50:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108468#M76047</guid>
      <dc:creator>petter_f</dc:creator>
      <dc:date>2012-11-08T12:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: CDI problem in WebLogic</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108469#M76048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for posting this back. Interesting. Sad it just doesn't work &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 23:08:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cdi-problem-in-weblogic/m-p/108469#M76048</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-11-13T23:08:22Z</dc:date>
    </item>
  </channel>
</rss>

