On 20/11/2017 04:44, Ravindra Singareddy wrote:

Hi All,

I having issue with the User registration in Syncope 2.0.6 using restful api http://localhost:8080/syncope/rest/users?storePassword=true

Receiving following error:

Headers: {connection=[keep-alive], Content-Length=[267], content-type=[application/xml; charset=UTF-8], Date=[Mon, 20 Nov 2017 03:33:44 GMT], Server=[WildFly/10], Vary=[Accept-Encoding], X-Application-Error-Info=[Unknown:ClassNotFoundException: com.sun.org.apache.xerces.internal.dom.DOMXSImplementationSourceImpl from [Module "deployment.syncope.war:main" from Service Module Loader]], X-Powered-By=[Undertow/1], X-Syncope-Domain=[Master]}

This error is coming from camel running in Wildfly 10.x and which is already explained in https://issues.apache.org/jira/browse/SYNCOPE-738. I have already included syncope-ext-camel-logic-2.0.6.jar file in syncope.war but still getting same error. Here is following camel dependencies added  in the syncope.war file.

  <dependency>

<groupId>org.apache.syncope.ext.camel</groupId>

<artifactId>syncope-ext-camel-rest-cxf</artifactId>

<version>${syncope.version}</version>

        </dependency>

        <dependency>

<groupId>org.apache.syncope.ext.camel</groupId>

<artifactId>syncope-ext-camel-persistence-jpa</artifactId>

<version>${syncope.version}</version>

        </dependency>

              <dependency>

<groupId>org.apache.syncope.ext.camel</groupId>

<artifactId>syncope-ext-camel-logic</artifactId>

<version>${syncope.version}</version>

        </dependency>

        <dependency>

<groupId>org.apache.syncope.ext.camel</groupId>

<artifactId>syncope-ext-camel-provisioning</artifactId>

<version>${syncope.version}</version>

        </dependency>

Any idea, how to resolve this issue?


Hi Ravi,
the issue mentioned above (SYNCOPE-738) is related to the Camel extension only because the initialization code needs to parse the initial routes definition from XML.
This works fine with Wildfly / JBoss.

You are instead getting the same exception because your exchanging XML payloads with Syncope REST interface; just set the Accept / Content-Type request headers to application/json and all will work fine.

Regards.

--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/

Reply via email to