You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Ivar Hagen (JIRA)" <ji...@apache.org> on 2013/12/02 14:06:36 UTC

[jira] [Created] (CMIS-738) WebMethod(exclude=true) not allowed on intefaces

Ivar Hagen created CMIS-738:
-------------------------------

             Summary: WebMethod(exclude=true) not allowed on intefaces
                 Key: CMIS-738
                 URL: https://issues.apache.org/jira/browse/CMIS-738
             Project: Chemistry
          Issue Type: Bug
          Components: opencmis-server
    Affects Versions: OpenCMIS 0.10.0
            Reporter: Ivar Hagen


When deploying on JBoss 7.1.1.1.Final I get this error below.
According to https://issues.apache.org/jira/browse/CXF-3128 an interface is not allowed to use WebMethod(exclude=true), it's only for the implementation.
This prevents the war package to be deployed.

Please advice on what to do. Simply remove the exclude=true part of this?

CODE

package org.apache.chemistry.opencmis.server.impl.webservices;


 @WebService(name = "RepositoryServicePort", targetNamespace = "http://docs.oasis-open.org/ns/cmis/ws/200908/")
 @XmlSeeAlso({ ObjectFactory.class })
 public interface RepositoryServicePort10 extends RepositoryServicePort {
     @WebMethod(action = "createType", exclude = true)
     public void createType(String repositoryId, Holder<CmisTypeDefinitionType> type, CmisExtensionType extension)
             throws CmisException;


CONSOLE

13:38:55,096 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.unit."chemistry-opencmis-server-bindings-war-0.10.0.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."chemistry-opencmis-server-bindings-war-0.10.0.war".INSTALL: Failed to process phase INSTALL of deployment "chemistry-opencmis-server-bindings-war-0.10.0.war"
	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_40]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_40]
	at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_40]
Caused by: javax.xml.ws.WebServiceException: org.apache.cxf.jaxws.JaxWsConfigurationException: The @javax.jws.WebMethod(exclude=true) cannot be used on a service endpoint interface. Method: createType
	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:350)
	at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:88)




--
This message was sent by Atlassian JIRA
(v6.1#6144)