cancel
Showing results for 
Search instead for 
Did you mean: 

Error -- trying to invoke to other Web Service

jorge_velasquez
Contributor
0 Kudos

Hi! I am developing a Web Service that invoke to other Web

Service...but, after deploy i get this error:

java.lang.ClassNotFoundException:

com.sun.xml.rpc.client.ServiceFactoryImpl----


Loader Info -


ClassLoader name:

[common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore] Parent loader name: [Frame ClassLoader] References:

library:com.sap.ip.basecomps library:core_lib

common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl library:servlet library:sapxmltoolkit

library:com.sap.mw.jco library:com.sap.util.monitor.jarm

library:j2eeca library:opensql interface:security interface:log

interface:shell interface:keystore_api library:ejb20

interface:webservices library:com.sap.guid interface:appcontext

interface:endpoint_api interface:resourceset_api

interface:resourcecontext_api

common:service:iiop;service:naming;service:p4;service:ts

interface:ejbcomponent interface:container

interface:visual_administration interface:transactionext

interface:dsr_ejbcontext_api service:timeout library:tc~jmx

library:tcSLUTIL service:memory library:antlr

library:jdbdictionary library:opensqlextensions interface:cross

service:locking service:file Resources: E:\usr\sap\NCG\DVEBMGS00

\j2ee\cluster\server0\bin\ext\security.class\tc_sec_jaas_test.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\services\keystore\keystore.jar E:\usr\sap\NCG\DVEBMGS00

\j2ee\cluster\server0\bin\ext\security.class\tc_sec_saml_util.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\ext\com.sap.security.core.sda\com.sap.security.core.tpd.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\services\jmx\jmx.jar E:\usr\sap\NCG\DVEBMGS00

\j2ee\cluster\server0

\bin\ext\security.class\tc_sec_saml_toolkit_api.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\ext\security.class\tc_sec_jaas.jar E:\usr\sap\NCG\DVEBMGS00

\j2ee\cluster\server0

\bin\ext\com.sap.security.api.sda\com.sap.security.api.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\services\com.sap.security.core.ume.service\com.sap.security.core.ume.service.jar E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\ext\security.class\tc_sec_saml_service_api.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\ext\security.class\tc_sec_csi.jar E:\usr\sap\NCG\DVEBMGS00

\j2ee\cluster\server0\bin\ext\webservices_lib\webservices_lib.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\services\basicadmin\jstartupapi.jar E:\usr\sap\NCG\DVEBMGS00

\j2ee\cluster\server0\bin\ext\security.class\tc_sec_userstore_lib.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\services\deploy\deploy.jar E:\usr\sap\NCG\DVEBMGS00

\j2ee\cluster\server0\bin\services\adminadapter\adminadapter.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\services\jmx_notification\jmx_notification.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\services\dbpool\opensqllib.jar E:\usr\sap\NCG\DVEBMGS00

\j2ee\cluster\server0\bin\services\security\security.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\services\basicadmin\basicadmin.jar E:\usr\sap\NCG\DVEBMGS00

\j2ee\cluster\server0

\bin\ext\com.sap.security.api.sda\com.sap.security.api.perm.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\ext\webservices_lib\saaj-api.jar E:\usr\sap\NCG\DVEBMGS00

\j2ee\cluster\server0\bin\services\connector\connectorimpl.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\ext\security.class\tc_sec_saml_toolkit_core.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\ext\webservices_lib\jaxm-api.jar E:\usr\sap\NCG\DVEBMGS00

\j2ee\cluster\server0\bin\ext\security.class\tc_sec_saml_jaas.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\ext\security.class\tc_sec_ssf.jar E:\usr\sap\NCG\DVEBMGS00

\j2ee\cluster\server0\bin\ext\security.class\tc_sec_compat.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\ext\security.class\tc_sec_https.jar E:\usr\sap\NCG\DVEBMGS00

\j2ee\cluster\server0\bin\services\basicadmin\jstartupimpl.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\ext\com.sap.security.core.sda\com.sap.security.core.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\ext\security.class\tc_sec_saml_xmlbind.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\services\jmx\jmx_sec.jar E:\usr\sap\NCG\DVEBMGS00

\j2ee\cluster\server0\bin\ext\webservices_lib\jaxrpc-api.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\services\dbpool\sqljimpl.jar E:\usr\sap\NCG\DVEBMGS00

\j2ee\cluster\server0\bin\services\dbpool\dbpool.jar

E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0

\bin\services\configuration\configuration.jar E:\usr\sap\NCG\DVEBMGS00\j2ee\cluster\server0\bin\services\userstore\userstore.jar Loading

model: {parent,local,references}----


u00B4m using SAP NW Developer Studio and the library jaxrpc-api.jar is

in the classpath of the project and is physically in the server however

it gives the error java.lang.ClassNotFoundException:

com.sun.xml.rpc.client.ServiceFactoryImpl

What is suppose to be the route for the jar to find the library?

Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Jorge

I suggest you to use Axis 1.x for invoking web services. Here is the road map for invoking web services.

1-Download soapUI 2.0 from web.

2-Download Axis jars

3-Define Axis jars to soapUI

4-Create new project in soapUI for your web service which you will invoke

5-Generate classes for web service

6-Add Axis jars and invoke your web service

This is the simplest way to invoke web services.