0 Replies Latest reply on Mar 5, 2009 11:32 PM by 807574

    Web Services  No JAX-WS context information available.

    807574
      Hi Guys,

      Hope you are doing well. I need a bit of help here. I have developed a java application and I am trying to make it a web service. So can you guys help me . Whenever I try "http://localhost:9090/" I keep getting "Web Services No JAX-WS context information available." this message. I have not yet developed a client. So far I am just trying to run it as a service. Below is the code for a sample Java application. I am thinking if I can get this Java program to work then maybe I will be able to get my Java program to work.
      package Endpoint;
      
      import javax.jws.WebMethod;
      import javax.jws.WebService; 
      
      import javax.jws.*;
      import javax.jws.soap.SOAPBinding;
      import javax.xml.ws.Endpoint;
      
      @WebService
      public class Example25 {
           private String message = new String("Hello, ");
           
           public String sayHello(){
                return message + "Dipin" + ".";
           }
      
           public static void main(String []args){
                String endpointUri = "http://localhost:9090/";
              Endpoint.publish(endpointUri, new Example25());
                //System.out.println("Service started at: " + endpointUri);
           }
      }
      ***********Here is the Java version I am using. ******************

      Microsoft Windows XP [Version 5.1.2600]
      (C) Copyright 1985-2001 Microsoft Corp.

      C:\Documents and Settings\Administrator>java -version
      java version "1.6.0_07"
      Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
      Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode)

      C:\Documents and Settings\Administrator>

      *****************************************************

      **********Here is my Classpath Setting***************

      ;.;C:\Program Files\Java\jre1.6.0_07\lib\ext\QTJava.zip;.;
      C:\Program Files\Java\jre1.6.0_07\bin;.;
      C:\Program Files\Java\jre1.6.0_07\lib\ext\mail-1.4.1.jar;.;
      C:\Program Files\Java\jre1.6.0_07\lib\ext\activation.jar;.;
      C:\generodb\antsjdbc\antsjdbc.jar;.;
      C:\Program Files\Java\jre1.6.0_07\lib\ext\metro-1_2.jar;.;
      C:\Program Files\Java\jre1.6.0_07\lib\ext\JAXWS2.1.5-20081030.jar;.;
      C:\Program Files\Java\jre1.6.0_07\lib\ext\jaxws-ri\lib\jaxws-tools.jar;.;
      C:\Program Files\Java\jre1.6.0_07\lib\ext\jaxws-ri\lib\*.*;.;
      C:\Program Files\Java\JavaEE5\jdk\jre\lib\javaws.jar;.;

      *******************************************************

      **********Java Program compliation and running*************


      C:\Documents and Settings\Java Samples\Example25\src>javac Endpoint/Example25.java

      C:\Documents and Settings\Java Samples\Example25\src>java Endpoint.Example25
      Mar 5, 2009 4:05:49 PM com.sun.xml.ws.model.RuntimeModeler getRequestWrapperClas
      s
      INFO: Dynamically creating request wrapper Class Endpoint.jaxws.SayHello
      Mar 5, 2009 4:05:49 PM com.sun.xml.ws.model.RuntimeModeler getResponseWrapperCla
      ss
      INFO: Dynamically creating response wrapper bean Class Endpoint.jaxws.SayHelloRe
      Sponse

      *****************************************************************************

      Thanks and Regards,
      Dipin