Hi Francesco,
Even after changing content-type to JSON, still getting same error
Response-Code: 500
Encoding: UTF-8
Content-Type: application/json; charset=UTF-8
Headers: {connection=[keep-alive], content-type=[application/json;
charset=UTF-8], Date=[Tue, 21 Nov 2017 03:19:18 GMT], Server=[WildFly/10],
transfer-encoding=[chunked], 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]}
Payload: {"status":500,"type":"Unknown","elements":["ClassNotFoundException:
com.sun.org.apache.xerces.internal.dom.DOMXSImplementationSourceImpl from
[Module \"deployment.syncope.war:main\" from Service Module Loader]"]}
I have logged into http://localhost:8080/syncope-console and tried to create
the user, still getting same error.
[cid:[email protected]]
I am able to validate the user using Syncope rest api but not able to create
new user.
Thanks
Ravi
From: Francesco Chicchiriccò<mailto:[email protected]>
Sent: Monday, November 20, 2017 8:26 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: Syncope User Registration in Syncope-2.0.6 -
Unknown:ClassNotFoundException:
com.sun.org.apache.xerces.internal.dom.DOMXSImplementationSourceImpl
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/