facebook

import javax.jws cannot be resolved

  1. MyEclipse Archived
  2.  > 
  3. Web Services
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #268491 Reply

    jadeite1000
    Member

    Hi:

    I am using weblogic 9.2 and myeclipse 5.1.1.

    I am getting errors on the following code:
    import javax.jws.WebMethod;

    error message:import javax.jws cannot be resolved.

    My project has “weblogic-webservices.jar” in its classpath.

    Also for the following code:

    @WebService
    (serviceName=”GmeService”,
    name=”GmePortType”,
    targetNamespace=”http://www.emergis.com/gmeService”)

    I am getting the error message:webservice cannot resolve to a type.

    Yours,

    Albert Lam

    #268526 Reply

    Riyad Kalla
    Member

    Albert,
    Does the weblogic-webservices.jar file contain the javax.jws package *and* the javax.jws.WebMethod class? If so, when you browse to your deployed folder location does your project correclty contain that JAR file under the WEB-INF/lib directory?

    Also are you sure that weblogic doesn’t already have this JAR under it’s own server /lib directory? The reason I ask is because some app servers, when they detect a conflict like this (same JAR in two places) they will actually error out and *not* load the JAR at all, which could be causing the problem.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: import javax.jws cannot be resolved

You must be logged in to post in the forum log in