Skip to Content
author's profile photo Former Member
Former Member

Web Services JAR Problem

Hi All,

Im trying to use a deployable proxy in my portal component. When I do this, it is giving me a compile time error as below:

This compilation indirectly unit indirectly references the missing type javax.xml.rpc.ServiceException(typically some required class file is referencing a type outside the class path)

I have gone through this thread WebService problem and I believe he was also facing the same issue, but even when I put the WebServices_lib.jar in my -> add external Jars section of my project in NWDS it is still giving me the same error.

Does anyone know how to fix this?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 04, 2008 at 06:19 AM

    try adding exception.jar to your project.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Problem resolved by adding all JARS under the two directories:

      C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\\comp\SAP-JEE\DCs\\webservices\_comp\gen\default\public\default\lib\java

      C:\Program Files\SAP\IDE\IDE70\eclipse\plugins\\comp\SAP-JEE\DCs\\webservices_lib\_comp\gen\default\public\default\lib\java

      And also add the imports:

      import java.rmi.RemoteException;

      import java.util.Hashtable;

      import javax.naming.Context;

      import javax.naming.InitialContext ;

      import javax.naming.NamingException;

      import javax.xml.rpc.ServiceException;

      import javax.rmi.PortableRemoteObject ;

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.