Bug 780815 (SOA-3261) - Remove JcrNodeMatcher from jbpm.varmapping.xml
Summary: Remove JcrNodeMatcher from jbpm.varmapping.xml
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-3261
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: JBPM - within SOA
Version: 5.1.0 GA
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 5.2.0 GA,5.2.0.ER4
Assignee: Marco Rietveld
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-11 10:26 UTC by Martin Weiler
Modified: 2016-09-20 05:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-21 11:40:01 UTC
Type: Task


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 779846 0 high CLOSED JackRabbit is shipped with SOA-P 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker SOA-3261 0 None Closed Remove JcrNodeMatcher from jbpm.varmapping.xml 2012-06-11 09:51:27 UTC

Internal Links: 779846

Description Martin Weiler 2011-08-11 10:26:48 UTC
Help Desk Ticket Reference: https://na7.salesforce.com/500A0000007qyRe
project_key: SOA

As the jcr*.jar has been removed from SOA-P 5.1.0 as a result of SOA-2206, we should also remove the JCR Node mapping from jbpm.varmapping.xml:

    <!-- JSR 170 JCR Node -->
    <jbpm-type>
      <matcher>
        <bean class="org.jbpm.context.exe.matcher.JcrNodeMatcher" />
      </matcher>
      <variable-instance class="org.jbpm.context.exe.variableinstance.JcrNodeInstance" />
    </jbpm-type>   

Otherwise, an attempt to persist a jBPM variable which is not handled by any of the other matchers (eg. a non-serializable POJO), results in the following failure:

WARN  [org.jboss.soa.esb.listeners.message.MessageAwareListener] (pool-21-thread-1:) TransactionalRunner caught throwable: 
java.lang.NoClassDefFoundError
	at org.jbpm.context.exe.matcher.JcrNodeMatcher.class$(JcrNodeMatcher.java:33)
	at org.jbpm.context.exe.matcher.JcrNodeMatcher.matches(JcrNodeMatcher.java:33)
	at org.jbpm.context.exe.JbpmType.matches(JbpmType.java:54)
	at org.jbpm.context.exe.VariableInstance.createVariableInstance(VariableInstance.java:76)
	at org.jbpm.context.exe.VariableInstance.create(VariableInstance.java:59)
	at org.jbpm.context.exe.VariableContainer.setVariableLocally(VariableContainer.java:171)
	at org.jbpm.context.exe.VariableContainer.setVariable(VariableContainer.java:50)
	at org.jbpm.context.exe.ContextInstance.setVariable(ContextInstance.java:205)
	at org.jbpm.context.exe.ContextInstance.setVariable(ContextInstance.java:196)
	at org.jbpm.command.NewProcessInstanceCommand.execute(NewProcessInstanceCommand.java:99)
...
Caused by: java.lang.ClassNotFoundException: javax.jcr.Node from BaseClassLoader@7a043387{vfsfile:/data/jboss/work/jboss-soa-p-5.1.0/jboss-as/server/test/deploy/jbpm.esb/
}
	at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:477)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:186

Comment 1 Martin Weiler 2011-08-11 10:27:21 UTC
Link: Added: This issue is related to SOA-2206


Comment 2 (please assign to mrietvel@redhat.com) 2011-08-12 10:49:38 UTC
Link: Added: This issue is related to JBPM-3326


Comment 3 Douglas Palmer 2011-09-08 10:32:47 UTC
Fixed in 3.2.11.SP1 which will be included in ER4.

Comment 4 David Le Sage 2011-09-18 23:34:31 UTC
Release Notes Docs Status: Added: Documented as Resolved Issue
Writer: Added: dlesage
Release Notes Text: Added: https://issues.jboss.org/browse/SOA-3261

As the jcr*.jar was removed from SOA, the JCR Node mapping has now also been removed from jbpm.varmapping.xml.
This was to prevent users from encountering java.lang.NoClassDefFoundError messages.


Comment 5 Jiri Pechanec 2011-10-21 11:40:01 UTC
Verified in ER5


Note You need to log in before you can comment on or make changes to this bug.