AnsweredAssumed Answered

Problem building custom webservice Alfresco 4.2

Question asked by jlabuelo on Nov 16, 2016
Latest reply on Nov 17, 2016 by afaust

Hi all

We are trying to build a custom webservice in order to allow an external system to run a query for all documents that have been modified between two given dates, and return all the metadata of these documents.


The issue we are facins is that after building the webservce the schmea is no finding some of the namesapace I need.


I am ussing




but with this, the namespaces are not being found. When we try to deploy the wsdl we obtain the following error:


java.lang.NoClassDefFoundError: [Lorg/alfresco/webservice/types/ResultSetRow;
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(
at java.lang.Class.getDeclaredMethod(
at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(
at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(
at org.apache.axis.description.JavaServiceDesc.getOperations(
at org.apache.axis.wsdl.fromJava.Emitter.writePortType(
at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(
at org.apache.axis.wsdl.fromJava.Emitter.emit(
at org.apache.axis.wsdl.fromJava.Emitter.emit(
at org.apache.axis.wsdl.Java2WSDL.main(
Caused by: java.lang.ClassNotFoundException: org.alfresco.webservice.types.ResultSetRow
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
... 12 more


We manage all dependencies with Maven and we are able to get access to them with no issue. I have seen that some other colleagues in this forum have fixed this issue by placing the libraries in  WEBINF/lib but this is not working either for me.

Here I attache the webservice and the xsd

Could you guide me to see what my error can be?

Thanks a lot in advance!