Liferay Symposium 2015 | Reserve your seat today.

Combination View Flat View Tree View
Threads [ Previous | Next ]
Alex Belt
Web Services Deployment Issue, Liferay 5.2EE + Tomcat 6.0
January 4, 2013 10:17 AM

Alex Belt

Rank: Junior Member

Posts: 49

Join Date: October 9, 2012

Recent Posts

Hi Everyone,

I'm developing a web service for our Liferay installation. I used the Service Builder to create the classes, and modified the interface as described here:,+Organizations,+User+Groups,+and+Roles+via+SOAP

I've built the service and the wsdd and deployed the altered tunnel-web war file to the Tomcat server, and when I try to view the available services, I get this message:
[EXCEPTIONS:400] Exception:
org.apache.axis.InternalException: java.lang.Exception: Couldn't find a matching Java operation for WSDD operation "addUser" (6 args)
at org.apache.axis.description.JavaServiceDesc.loadServiceDescByIntrospection(
at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(
at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(
at org.apache.axis.deployment.wsdd.WSDDDeployment.getDeployedServices(
at org.apache.axis.configuration.FileProvider.getDeployedServices(
at org.apache.axis.transport.http.AxisServlet.reportAvailableServices(
at org.apache.axis.transport.http.AxisServlet.doGet(
at javax.servlet.http.HttpServlet.service(
at org.apache.axis.transport.http.AxisServletBase.service(
at com.liferay.portal.servlet.AxisServlet.service(
at javax.servlet.http.HttpServlet.service(
at com.liferay.portal.kernel.servlet.PortalClassLoaderServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(
at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.process(
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
at Source)

The code I've written contains an addUser method, along with 3 other methods that I want to expose as a web service. I've verified the interfaces and various *Impl classes contain the method signatures, and the server-config.wsdd contains the method definitions. It's finding the definitions in the wsdd but not in the code. I've tried separately building the portal-impl and portal-service jars without any success.

Does anyone have any ideas what might be causing this error?


Edit: Found the problem - turned out there was a mismatch in the method names in the classes and the wsdd. Changed the casing and it works fine.