Monday 11 April 2011

jBPM + Maven + JSF + GlassFish

If you use jBPM + Maven + JSF + GlassFish then this won't work (exception thrown Undefined Method - or sth like this)





(eg is with PrimeFaces)

<p:commandButton action="#{foosBean.viewFoo}">
<f:setPropertyActionListener value="#{foo}" target="#{foosBean.foo}" />

solution:
remove any juel*.jar in your dependencies (gggrrrr.....jBPM!)
More specifically include jBPM in you pom.xml this way:

<dependency>
   <groupId>org.jbpm.jbpm4</groupId>
   <artifactId>jbpm-api</artifactId>
   <version>4.4</version>
   <exclusions>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-engine</artifactId>
    </exclusion>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-impl</artifactId>
    </exclusion>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-api</artifactId>
    </exclusion>
   </exclusions>
  </dependency>
  <dependency>
   <groupId>org.jbpm.jbpm4</groupId>
   <artifactId>jbpm-bpmn</artifactId>
   <version>4.4</version>
   <exclusions>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-engine</artifactId>
    </exclusion>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-impl</artifactId>
    </exclusion>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-api</artifactId>
    </exclusion>
   </exclusions>
  </dependency>
  <dependency>
   <groupId>org.jbpm.jbpm4</groupId>
   <artifactId>jbpm-jpdl</artifactId>
   <version>4.4</version>
   <exclusions>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-engine</artifactId>
    </exclusion>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-impl</artifactId>
    </exclusion>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-api</artifactId>
    </exclusion>
   </exclusions>
  </dependency>
  <dependency>
 <groupId>org.jbpm.jbpm4</groupId>
 <artifactId>jbpm-pvm</artifactId>
 <version>4.4</version>
   <exclusions>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-engine</artifactId>
    </exclusion>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-impl</artifactId>
    </exclusion>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-api</artifactId>
    </exclusion>
   </exclusions>
 </dependency>
  <dependency>
 <groupId>org.jbpm.jbpm4</groupId>
 <artifactId>jbpm-log</artifactId>
 <version>4.4</version>
   <exclusions>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-engine</artifactId>
    </exclusion>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-impl</artifactId>
    </exclusion>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-api</artifactId>
    </exclusion>
   </exclusions>
 </dependency>
 <dependency>
 <groupId>org.jbpm.jbpm4</groupId>
 <artifactId>jbpm-db</artifactId>
 <version>4.4</version>
   <exclusions>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-engine</artifactId>
    </exclusion>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-impl</artifactId>
    </exclusion>
    <exclusion>
     <groupId>juel</groupId>
     <artifactId>juel-api</artifactId>
    </exclusion>
   </exclusions>
 </dependency>

No comments:

Post a Comment