Bug 1127032

Summary: missing Dynamic JAXBContext Filter in web-exec-server.xml
Product: [Retired] JBoss BPMS Platform 6 Reporter: jbride <jbride>
Component: Business CentralAssignee: Shelly McGowan <smcgowan>
Status: CLOSED EOL QA Contact: Marek Baluch <mbaluch>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0.2CC: kverlaen
Target Milestone: ER2   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:36:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description jbride@redhat.com 2014-08-06 01:47:32 UTC
Hi.
  With 6.0.2, I'm experimenting with the use of web-exec-server.xml found in business-central.war/WEB-INF.  In doing so, I'm encountering an "Unable to instantiate JAXBContext" exception when invoking the REST API of the execution server.  Turns out this config file is missing the following filter elements:

<filter>
    <filter-name>Dynamic JAXBContext Filter</filter-name>
    <filter-class>org.kie.remote.services.rest.jaxb.DynamicJaxbContextFilter</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>Dynamic JAXBContext Filter</filter-name>
    <url-pattern>/rest/*</url-pattern>
</filter-mapping>

Adding these filter elements resolves the problem and the exec server works fine.

jeff

Comment 2 Marco Rietveld 2014-09-25 11:57:27 UTC
Fixed by Maciej! Commits: 

master: 
https://github.com/droolsjbpm/kie-wb-distributions/commit/2ed0a326

Comment 3 Marek Baluch 2014-12-01 11:56:49 UTC
Verified on 6.1.0.ER2.