Cannot complie the example at Java Web Services Tutorial 1.3,Ch3

Hi all,
At the Java Web Services Tutorial 1.3 Chapter 3, there has an example but I cannot compile!
The is the output of ant:
C:\jwsdp-1.3\jwstutorial13\examples\gs>ant build
Buildfile: build.xml
BUILD FAILED
file:C:/jwsdp-1.3/jwstutorial13/examples/common/targets.xml:1: taskdef class org.apache.catalina.ant.ListTask cannot be found
Total time: 5 seconds
Would you please give me an idea to solve this problem?
Thanks
Chris

Ok...this is driving me nuts!!!
I am getting the same error (blah blah blah...ListTask cannot be found) and I have looked over the forum and copied over the catalina-ant.jar file into the apache-ant/lib dir. I have also included every path I can think of in the PATH env var and CLASSPATH env var...
PATH = C:\jwsdp-1.3\jwsdp-shared\bin;D:\pipeline\products\cygwin\bin;D:\Ant\apache-ant-1.5.4\bin;C:\jwsdp-1.3\apache-ant\bin;D:/pipeline/products/jdk;D:/lcms/products/jdk
pipeline is where my jdk (I have two different versions because two different apps) is and the ref to D:\Ant...is for another app.
CLASSPATH = C:\Program Files\Altova\xmlspy\XMLSpyInterface.jar;C:\jwsdp-1.3\server\lib\catalina-ant.jar;C:\jwsdp-1.3\common\lib
ignore the XMLSpy stuff
please help...thanks ahead of time.
skye

Similar Messages

  • Could not run the bookstore1 example from the Java Web Services Tutorial

    The bookstore1 servlets example from the Java Web Services Tutorial (issue Aug 1, 2002) was built and deployed successfully by using the deploytool (following the steps described on pages 498ff of the tutorial).
    After deploying the application the Tomcat Web Application Manager shows the entry:
    /bookstore1:stopped:0:D:\Programme\Java\tomcat\jakarta-tomcat-4.1.8\work\Standalone\localhost\manager\bookstore1.war
    when entering the command: http://localhost:8080/manager/list.
    After entering the command: http://localhost:8080/manager/start?path=/bookstore1, the (uncomplete) message appears:
    FAIL - Application at context path /bookstore1 could not
    It should be noted that I was able to build and deploy the application GSApp (chapter 3 of the tutorial) successfully.

    Did you set up the database as described in
    http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebApp13.html#69868

  • Is there a new version of the book "Beginning Java Web Services"?

    I am new to programming web services with Java. Is Beginning Java Web Services a recommended book for a beginner? Does it have a newer version as the one available was written in 2002. Can anyone suggest a latest beginners guide book?

    The MD387LL/A, MD388LL/A, and MD389LL/A are the latest models in the USA and Canada. It's the same in other countries, except for the LL.
    (102906)

  • Java web services tutorial.

    Hi i have seen and tried the Java web services JAX-RPC tutorial.
    And i have a question here.
    If i want to invoke lets say a web service on a .NET platform, can i still use JAX-RPC to invoke it?
    Must the server implement JAX-RPC if i want to use it on the client side?
    sorry i still not clear about it.

    once you are done creating .war files having WSDL and all, deploy it on Tomcat or any other web container.
    create .vb (or which ever language) stub for the JAX-RPC service using WSDL.exe for the .NET enviornment.
    In your .NET enviornment, import this stub in your project. In your code, you can define a local varible as a "JavaService" object and assign the instance of your jax-rpc service and use the local variable methods as any other object method calls.

  • The Java Web Service Tutorial - help required

    Using Windows 98 platform...
    I am working through the tutorial example "Hello World". I have got as far as deploying the service definition and starting Tomcat.
    The tutorial then says to specify the URL http://localhost:8080/jaxrpc-hello/jaxrpc to verify the HelloWorld service has been deployed. At this stage I get the message "The requested resource (/jaxrpc-hello/jaxrpc) is not available.
    Every thing else looks right... has anyone got an idea?
    Steve

    Srikanth,
    The web.xml appears ok to me, I have pasted it below as I'm no expert.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
    <web-app>
    <display-name>HelloWorldApplication</display-name>
    <description>Hello World Application</description>
    <servlet>
    <servlet-name>JAXRPCEndpoint</servlet-name>
    <display-name>JAXRPCEndpoint</display-name>
    <description>Endpoint for Hello World Application</description>
    <servlet-class>com.sun.xml.rpc.server.http.JAXRPCServlet</servlet-class>
    <init-param>
    <param-name>configuration.file</param-name>
    <param-value>/WEB-INF/HelloWorld_Config.properties</param-value>
    </init-param>
    <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>JAXRPCEndpoint</servlet-name>
    <url-pattern>/jaxrpc/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>60</session-timeout>
    </session-config>
    </web-app>
    please let me know if there is an error.. or any more suggestions
    Thanks,
    Steve

  • "The Java Web Services" - ant install

    Hi, I recently downloaded "The Java Web Services" and "The Java Web Services Tutorial".
    And I've reached the Creating the Build Properties File portion of the tutorial:
    http://java.sun.com/webservices/docs/1.0/tutorial/doc/GettingStarted2.html#73059
    I'm using Windows ME and I have no idea where to put the build.properties file.
    Can anyone give me any suggestions? I am successfully able to
    ant compile
    but I can't get
    ant install
    to work once I have done the ant compile and I suspect this is because of me not having the build.properties file set... although it could be unrelated to that.
    when I try to use:
    ant install
    I get the following error at the command prompt:
    C:\tim\programs\jwsdp-1_0\docs\tutorial\examples\gs\build.xml:46: java.io.IOExce
    ption: Server returned HTTP response code: 401 for URL: http://localhost:8080/ma
    nager/install?path=%2Fgs&war=file%3AC%3A%5Ctim%5Cprograms%5Cjwsdp-1_0%2Fdocs%2Ft
    utorial%2Fexamples%2Fgs%2Fbuild
    Now tomcat is running on the correct port (8080) and the directory being referenced in the above URL exists. Am I supposed to map tomcat to a particular file system or something?
    Thanks,
    Tim
    PS I have another post in this forum (it contains only my first question concerning the build.properties file), so if you would like the Duke dollars for both posts, feel free to post in both threads and if your answer helps me out, I'll give you the Dollars from both threads.

    Hi Tim
    I have the same problem with the build.properties file. i am not able to solve the problem. did u find any solution for that problem u had. so plz let me knpow about that. i would appreciate if u could mail mne at [email protected]
    thanks in ADV.

  • Example code download for "The JavaTM Web Services Tutorial "

    Web page at http://java.sun.com/webservices/docs/1.0/tutorial/doc/Preface.html#63740 describes the follwoing way to get code example
    ==========================================
    If you are viewing this online, you need to download The Java Web Services Tutorial from:
    http://java.sun.com/webservices/downloads/webservicestutorial.html
    Once you have installed the tutorial bundle, the example source code is in the <JWSDP_HOME>/docs/tutorial/examples directory, with subdirectories for each of the technologies included in the pack.
    ==========================================
    However, following the link, I download file jwsdp-1_5_01-tutorial.zip. But this zip does not contain a docs/tutorial/.. directory.
    Any hint? Thanks in advance.

    Did you set up the database as described in
    http://java.sun.com/webservices/docs/1.0/tutorial/doc/WebApp13.html#69868

  • Can't find java source to web services tutorial

    When I down load the Java Web Services Tutorial zip file, all that is in there are html files. I've read all sorts of references to the source, even a directory structure, but I cannot find the files.
    I have gone to:
    http://java.sun.com/webservices/downloads/webservicespack.html
    And clicked on the Java WebServices Tutorial, v1.5_01 Download.
    The java source files to the tutorial are NOT in that zip file.

    Hmm, the URL for the tutorial you gave isn't working for me.
    I've checked a bit more through the tutorial and JWSDP examples, and they all match for me. I'm looking at JWSDP version 1.5, and the tutorial here:
    http://java.sun.com/webservices/docs/1.5/tutorial/doc/index.html
    I can't find a 'HelloService' in this tutorial (I also have the tutorial downloaded, grep gave no results). The tutorial refers to, for example, to an example in <JWSDP_HOME>/xmldsig/samples/validate, which I have in my JWSDP. (The page that refers to this example is http://java.sun.com/webservices/docs/1.5/tutorial/doc/XMLDigitalSignatureAPI8.html#wp511406)
    If you're really looking at the tutorial version 1.3 (as the URL looks) that could explain it. So, my hunch is a version mismatch, but I could be way off the mark.
    -Tim

  • Unsupported Version error when trying to run Web Services Tutorial example

    Hi there,
    I'm trying to run the first example from the Java Web Services Tutorial and get the following error when I type 'asant build' in my Command Window.
    Buildfile: build.xml
    BUILD FAILED
    java.lang.UnsupportedClassVersionError: com/sun/tools/ws/ant/WsImport (Unsupport
    ed major.minor version 49.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at org.apache.tools.ant.loader.AntClassLoader2.defineClassFromData(AntCl
    assLoader2.java:76)
    When I do a java -version I see my version is Java 1.5, and I'm not sure why the build is still trying to use Java 1.4. I do not want to delete the 1.4 from my machine as it is used for something else.
    C:\jwstutorial20\examples\jaxws\helloservice>java -version
    java version "1.5.0_09"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
    Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode, sharing)
    Could you please help me with this problem?
    Thanks in advance.
    Azeem.

    Hi Azeem.
    Check out values specified for JAVA_HOME, PATH and CLASSPATH under environment variable. Was facing the same problem. Changed the values to point to jdk1.5 and it is working now.
    BTW.
    You don't have to uninstall jdk1.4.
    Cheers!!!

  • Calling a java class from a java web service

    I have deployed a web service to weblogic 8.1 SP5 and now i want to call a simple java class from that web service.How can i do it.

    Hi jazz123,
    There's an example in the [*Java Web Services Tutorial*|http://java.sun.com/webservices/docs/2.0/tutorial/doc/] : see Chapter 1: Building Web Services with JAX-WS - A Simple JAX-WS Client.

  • Need an intro to java web services basics

    Do you have any link that would be good for the basics in java web services?
    Thanks ... J

    HTH
    http://java.sun.com/webservices/docs/1.1/tutorial/doc/

  • About Using Ant in Web Services Tutorial 1.0.1

    I downloaded the latest version of the Java Web Services Tutorial 1.0.1 and trying to run the
    sa,ple applications from ConvertedApp.java. When I type in "ant build"(ant version is 1.4.1), I
    am gettigng the error saying
    " Usage is java [options] class ........"
    as if implying that the classname is missing somewhere!!
    Can anyone please give any clue what might go wrong here?
    (I am on Windows 2000).
    Thanks

    Hello.
    For example, build.xml is in the folder:
    d:\jwsdp_tutorial\docs\tutorial\examples\gs\build.xml
    Then write a bat-file in the same folder that looks like this:
    -------------------- BEGIN --------------------
    set JAVA_HOME=d:/j2sdk1.4.1
    set ANT_HOME=d:/jakarta-ant-1.5.1
    set CATALINA_HOME=d:/jakarta-tomcat-4.1.18
    %JAVA_HOME%/bin/java -cp %JAVA_HOME%/lib/tools.jar;%JAVA_HOME%/jre/lib/rt.jar;%JAVA_HOME%/jre/lib/jaws.jar;%ANT_HOME%/lib/ant.jar;%ANT_HOME%/lib/optional.jar;%ANT_HOME%/lib/xercesImpl.jar;%ANT_HOME%/lib/xml-apis.jar;%CATALINA_HOME%/server/lib/catalina-ant.jar -Djwsdp.home=d:/jwsdp_tutorial org.apache.tools.ant.Main -logfile build.log -buildfile build.xml
    -------------------- END --------------------
    Additionally you have to install j2sdk1.4.1, jakarta-ant-1.5.1 and jakarta-tomcat-4.1.18.

  • Receiving the internal 500 error while testing java web service

    HI,
    Problem Summary:
    Receiving the internal 500 error while testing java web service in integrated weblogic server.
    my scenario is like,
    retrieve the Payload from Dehydration tables.
    We are connected to SOA_INFRA schema and we are retrieving the payload from the dehyadration tables based on InstanceId and ECID using Java Classes.After that i make it as a web service and i deployed in to intergrated weblogic Server.It is generating the Target End Point URI.When am i hitting this it is showing structure of the service.I am testing this service from soapUi it is returning the Server internal error with 500.Here i am passing inputs as InstanceId and ECID.
    I had verified in my Jdeveloper,Proxy settings are available.
    Error Payload:
    I am receiving the Internal 500 error because of JDeveloper HTTP Analyzer encountered an error retrieving: CONNECT https://192.168.0.41:9102 HTTP/1.0.
    An exception occurred while retrieving the response for https://192.168.0.41:9102.
    javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1293)
         at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:65)
         at com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:50)
         at oracle.jdevimpl.webservices.tcpmonitor.model.HttpMessageBase.readLine(HttpMessageBase.java:658)
         at oracle.jdevimpl.webservices.tcpmonitor.model.HttpRequest.read(HttpRequest.java:327)
         at oracle.jdevimpl.webservices.tcpmonitor.ConnectionHandler.getResponse(ConnectionHandler.java:405)
         at oracle.jdevimpl.webservices.tcpmonitor.ConnectionHandler.run(ConnectionHandler.java:331)
    Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
         at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:523)
         at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:355)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:798)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1165)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.getSession(SSLSocketImpl.java:1916)
         at oracle.jdevimpl.webservices.tcpmonitor.ConnectionHandler.negotiateSSL(ConnectionHandler.java:707)
         at oracle.jdevimpl.webservices.tcpmonitor.ConnectionHandler.negotiateForwardedSSLConnection(ConnectionHandler.java:672)
         at oracle.jdevimpl.webservices.tcpmonitor.ConnectionHandler.run(ConnectionHandler.java:311

    An exception occurred while retrieving the response for https://192.168.0.41:9102.
    javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?This error says that port 9102 is a plain HTTP port so either use the correct port (which is listening for HTTPS connections) or use HTTP instead of HTTPS in the URL.
    Regards,
    Anuj

  • The Best Java Web Services Technology for Developing Web Services

    Hi,
    I am new to Web services world.
    I read the java web services page . there are more than 6 technologies.
    JAX-WS,
    JAX-RPC,
    JAXB,
    SAAJ,
    JAXP,
    WSIT,
    XWS-Security
    I went through several documents on web services.
    I could not get a clear idea of which technolgy to use.
    Which Java web service technology will be the best to develop web services independant of language, platform.
    or is there any 3rd party implemetations available ? for rapid development of web services.
    Could anyone help me !.
    Thanks in advance.
    Message was edited by:
    Siva.Prakash

    Which Java web service technology will be the best
    to develop web services independant of language,
    platform.
    Java by nature is a cross-platform language, so if your focus is on the need for portability, the choisce of WS should not be a problem. However, each WS is best suited for paricular uses.
    SAAJ, a low-level level API, offers much simplicity, but is not the first choice for programmers, as SOAP (Simple Object Access Protocol)messages need to be constructed piece by piece, making it a quite arduous code to program.
    If you are not familiar with XML, your best bet would be to use JAX-RPC (Java API for XML-Remote Procedure Calls), as it hides the underlying detail from the programmer, in terms of SOAP and XML. The shortcoming with RPC-based WS is that it is "restricted to the local programming experience". Another failing is that assumes there is a network path- a reliability concern.
    If your program will be contacting other services during downtimes, unlike JAX-RPC, JAXM is quite useful. However, your listing did not mention it, so I wont cover it.
    JAXR is a client-side only API that acts as an interface between registries (not referring to JAXP)
    I am not famiiar with JAXB, JAXP, WSIT or XWS-Security..
    or is there any 3rd party implemetations available ?It depends on what platform you are used to. Assuming you are familiarized with the J2EE platform (now changed to Java EE SDK), the NetBeans IDE (either 5.5, 5.5.1 or the latest editiion) is quite useful. I am using 5.5.1, but have found that it is quite buggy, especially when adding WS operations, a core requirement of a WS. if you will be using to devlop a service for an immediate need, you may find the learning curve to be a bit high, in terms of getting to grips with how to use it. (Download link:
    http://www.netbeans.info/downloads/index.php)
    The IBM Autonomic IDE (or AIDE), based on the WSDM standard, includes 3 sub-tools, icluding the IBM Manageability Endpoint Builder which, according to their website, allows individuals to build endpoints to allow manageability interface exposure; Manageable Resource Browser and the IBM Manageability Endpoint Simulator. However, I'm not familiar with this IDE. (Download link: http://www.alphaworks.ibm.com/tech/aide/download)
    The .NET Framework uses the Visual Studio IDE. For an unbiased comparison of J2EE and the .NET Framework in terms of WS, see http://www.webservicesarchitect.com/content/articles/hanson01.asp.
    Apache Axis2, Geronimo and JiBX allows fast development of WS, or so the creators profess.
    The PHP environment- you could try NuSPHERE PHPed. According to one website, with it you can develop a web service in under an hour.
    I hope this was useful to you.
    [Based partly on Topley, K. (2003) [i]Java TM Web Services in a Nutshell: A desktop Quick Reference. 1st ed. California: O�Reilly & Associates, Inc]

  • Which is the BEST Java Web Service Framework to use?

    Hi all,
    I'm a beginner to Web Services.
    I am planning to implement java web services to make the communication between java(Tomcat Server) and C# client.
    I found list of web service frameworks like,
    1. Apache Axis,(POJO,Axiom)
    2. JSON-RPC,
    3. Java Web Services Development Pack ,
    4. Web Services Invocation Framework,
    5. Xfire,
    6. XML Interface for Network Services. ...
    Please do reply me that which web service framework will be efficient to use.

    But, I want to know which Framework will provide
    better performance?
    better than what?
    Also I want to develope the web service as a standard
    one andeach has it's own quircks and implementation details. Each should be able to generate and accept the same SOAP messages though if you implement them properly.
    It should be able to provide bulk data exchange.
    That will depend in large part on your hardware.
    Please suggest a web service framework
    (Java-based) which will give better performance.again, better than what?
    Better than messenger pidgeons?
    Better than swallows (European or African)?
    And if so, how heavy would the message capsule be? 2 swallows may be able to carry a coconut together, holding it on a piece of string.

Maybe you are looking for