0 Replies Latest reply on Apr 15, 2006 1:06 PM by Moises Souza

    web Service deployment error

    Moises Souza Newbie

      hi,

      I am writing a webService application using wscompile to generate my artifacts.

      1. I write my session bean and my Interface, adding the <service-endpoint> tag on the description of session bean.
      2. Run the wsCompile to generate the artifacts.
      3. After all, I package everything on a jar file.

      When I try to deploy I get the follow error:

      13:20:07,109 WARN [verifier] EJB spec violation:
      Bean : ControleMensagemHandler
      Section: 7.10.5
      Warning: The remote interface must extend the javax.ejb.EJBObject interface.

      13:20:07,109 WARN [verifier] EJB spec violation:
      Bean : ControleMensagemHandler
      Method : public abstract ControleMensagemHandlerSrv getControleMensagemHandlerSrvPort() throws ServiceException
      Section: 7.10.5
      Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

      13:20:07,109 WARN [verifier] EJB spec violation:
      Bean : ControleMensagemHandler
      Method : public abstract Remote getPort(Class) throws ServiceException
      Section: 7.10.5
      Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

      13:20:07,109 WARN [verifier] EJB spec violation:
      Bean : ControleMensagemHandler
      Method : public abstract Remote getPort(QName, Class) throws ServiceException
      Section: 7.10.5
      Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

      13:20:07,109 WARN [verifier] EJB spec violation:
      Bean : ControleMensagemHandler
      Method : public abstract QName getServiceName()
      Section: 7.10.5
      Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

      13:20:07,109 WARN [verifier] EJB spec violation:
      Bean : ControleMensagemHandler
      Method : public abstract TypeMappingRegistry getTypeMappingRegistry()
      Section: 7.10.5
      Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

      13:20:07,109 WARN [verifier] EJB spec violation:
      Bean : ControleMensagemHandler
      Method : public abstract Iterator getPorts() throws ServiceException
      Section: 7.10.5
      Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

      13:20:07,109 WARN [verifier] EJB spec violation:
      Bean : ControleMensagemHandler
      Method : public abstract HandlerRegistry getHandlerRegistry()
      Section: 7.10.5
      Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

      13:20:07,109 WARN [verifier] EJB spec violation:
      Bean : ControleMensagemHandler
      Method : public abstract Call; getCalls(QName) throws ServiceException
      Section: 7.10.5
      Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

      13:20:07,125 WARN [verifier] EJB spec violation:
      Bean : ControleMensagemHandler
      Method : public abstract Call createCall(QName) throws ServiceException
      Section: 7.10.5
      Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

      13:20:07,125 WARN [verifier] EJB spec violation:
      Bean : ControleMensagemHandler
      Method : public abstract Call createCall(QName, QName) throws ServiceException
      Section: 7.10.5
      Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

      13:20:07,125 WARN [verifier] EJB spec violation:
      Bean : ControleMensagemHandler
      Method : public abstract Call createCall(QName, String) throws ServiceException
      Section: 7.10.5
      Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

      13:20:07,125 WARN [verifier] EJB spec violation:
      Bean : ControleMensagemHandler
      Method : public abstract Call createCall() throws ServiceException
      Section: 7.10.5
      Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

      13:20:07,125 WARN [verifier] EJB spec violation:
      Bean : ControleMensagemHandler
      Method : public abstract URL getWSDLDocumentLocation()
      Section: 7.10.5
      Warning: The methods in the remote interface must include java.rmi.RemoteException in their throws clause.

      13:20:07,125 WARN [verifier] EJB spec violation:
      Bean : ControleMensagemHandler
      Method : public abstract ControleMensagemHandlerSrv getControleMensagemHandlerSrvPort() throws ServiceException
      Section: 7.10.5
      Warning: The methods defined in the remote interface must have a matching method in the bean's class with the same name and same number and types of arguments.

      13:20:07,125 ERROR [MainDeployer] Could not create deployment: file:/C:/Arquivos de programas/jboss-4.0.3SP1/server/all/tmp/deploy/tmp58832webService.ear-contents/webServiceData.jar
      org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.

      if I remove the stub, ... classes generated by wscompile and keep the wsdl, webservice.xml and the mapping file. My ejb is deployed and my webService is registered.

      The ant code that I am using to invoke wscompile is this:










      thanks