Skip to Content
0
Former Member
Apr 22, 2005 at 03:20 PM

how to deploy a web service with complex java type?

50 Views

Hi all,

I create a simple Java class, and implement a simple method like following:

   public ArrayList retureList(){
        ArrayList list = new ArrayList();
        list.add("str1");
        list.add("str2");
        return list;
    }

I want to create a webservice about this method. so I create VI -> Web service definition -> web service configuration.

At last, when I want to deploy the generated .ear file to the J2EE server , I got a error :

2005-4-22 16:37:12 /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,6,main]] ERROR:

[005]Deployment aborted

Settings

SDM host : vm6

SDM port : 51018

URL to deploy : file:/E:/TMP/temp44279DummyWebServices.ear

Result

=> deployment aborted : file:/E:/TMP/temp44279DummyWebServices.ear

Aborted: development component 'DummyWebServices'/'sap.com'/'localhost'/'2005.04.22.16.29.52':

Caught exception during application deployment from SAP J2EE Engine's deploy service:

com.sap.engine.services.deploy.server.utils.DSRemoteException: Cannot deploy application sap.com/DummyWebServices.. Reason: Webservices deployment exception! The reason is: Error occured, trying to generate web services deployment files for application sap.com/DummyWebServices. . The error refers to application: none, jar: , web service: .; nested exception is: java.rmi.RemoteException: class com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices deployment exception! The reason is: Error occured, trying to generate web services deployment files for application sap.com/DummyWebServices. . The error refers to application: none, jar: , web service: .; nested exception is: java.rmi.RemoteException: class com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment exception! The reason is: Error occured, deploying web service DummyWS2, application sap.com/DummyWebServices. . Additional info: ; nested exception is: java.rmi.RemoteException: class com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices deployment exception! The reason is: Unable to generate complex types. The error refers to application: sap.com/DummyWebServices, jar: DummyWebServices.wsar, web service: DummyWS2.; nested exception is: java.rmi.RemoteException: class com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices deployment exception! The reason is: Unable to generate complex types. The error refers to application: sap.com/DummyWebServices, jar: DummyWebServices.wsar, web service: DummyWS2.; nested exception is: java.rmi.RemoteException: class com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment exception! The reason is: Unable to generate complex types. Additional info: not available; nested exception is: java.rmi.RemoteException: class java.lang.NullPointerException: Methods getMessage() and getLocalizedMessage() of java.lang.NullPointerException returned NULL.Please check, why the original exception was thrown with message NULL.

(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)

Deployment exception : The deployment of at least one item aborted

It seems that this error occurs because my method return a ArrayList which is a complex Java type.

So anyone knows how to solve this problem?

Thanks a lot.

Deyang