Building SOAP Client Server Apps


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Building SOAP Client Server Apps

  1. #1
    Dan Healy Guest

    Building SOAP Client Server Apps


    In the April, 2001 issue of JavaPro, on page 22 is an article by Patrick R.
    Schonfeld, "Making SOAP out of Java".

    I have downloaded the source from java-pro.com and all of the required supporting
    systems from Sun and Apache, followed the instructions in the article, and
    have almost got the sample to work.

    When I invoke the Java interpreter to run SearchReadingList I get the following
    error message:

    Exception in thread "main" java.lang.NoClassDefFoundError: javax/activation/DataSource
    at org.apache.soap.rpc.call.<init>(Call.java:98)
    at org.apache.soap.rpc.call.<init>(Call.java:91)
    at samples.readinglist.SearchReadingList.main(searchReadingList.java:20)

    I have installed and tested Tomcat and the Hello World page works.

    I have installed, configured, and compiled the sample application.

    I have registered the sample with SOAP giving the deployment details as follows:

    Deployed Service Information
    'urn:ReadingListManager' Service Deployment Descriptor
    Property Details
    ID urn:ReadingListManager
    Scope Application
    Provider Type java
    Provider Class samples.readinglist.ReadingList
    Use Static Class false
    Methods searchList
    Type Mappings
    Default Mapping Registry Class

    The CLASSPATH is:

    c:\xerces-1_2_0\xerces.jar;.;c:\ApacheSoap\soap-2_1\lib\soap.jar;c:\javamail-1.2\mail.jar;c:\jaf-1.0.1\activation.jar

    The command line is:

    java samples.readinglist.SearchReadingList http://localhost:8080/soap/servlet/rpcrouter
    "Author" "Anton Chekhov"

    Getting this far has been a tremendous learning experience that I will be
    glad to share with all that are interested -- especially if I can get this
    last step to work.

    Thanks,

    Dan Healy

  2. #2
    Paul Clapham Guest

    Re: Building SOAP Client Server Apps

    Well, "javax.activation.DataSource" is in my copy of activation.jar, which
    allegedly is in your classpath. So you need to check that you have that jar
    file, it contains the DataSource class, it's in the directory you said it
    was in, that piece of code is using the classpath you think it is, and so
    on.

    PC2

    "Dan Healy" <dhealy@houston.rr.com> wrote in message
    news:3aedd761$1@news.devx.com...
    >
    > Exception in thread "main" java.lang.NoClassDefFoundError:

    javax/activation/DataSource
    > The CLASSPATH is:
    >
    >

    c:\xerces-1_2_0\xerces.jar;.;c:\ApacheSoap\soap-2_1\lib\soap.jar;c:\javamail
    -1.2\mail.jar;c:\jaf-1.0.1\activation.jar
    >





  3. #3
    Dan Healy Guest

    Re: Building SOAP Client Server Apps


    "Paul Clapham" <pclapham@core-mark.com> wrote:
    >Well, "javax.activation.DataSource" is in my copy of activation.jar, which
    >allegedly is in your classpath. So you need to check that you have that

    jar
    >file, it contains the DataSource class, it's in the directory you said it
    >was in, that piece of code is using the classpath you think it is, and so
    >on.
    >
    >PC2
    >
    >"Dan Healy" <dhealy@houston.rr.com> wrote in message
    >news:3aedd761$1@news.devx.com...
    >>
    >> Exception in thread "main" java.lang.NoClassDefFoundError:

    >javax/activation/DataSource
    >> The CLASSPATH is:
    >>
    >>

    >c:\xerces-1_2_0\xerces.jar;.;c:\ApacheSoap\soap-2_1\lib\soap.jar;c:\javamail
    >-1.2\mail.jar;c:\jaf-1.0.1\activation.jar
    >>

    >
    >
    >



  4. #4
    Dan Healy Guest

    Re: Building SOAP Client Server Apps


    I opened activation.jar with WinZip and DataSource.class is in there.

    "Paul Clapham" <pclapham@core-mark.com> wrote:
    >Well, "javax.activation.DataSource" is in my copy of activation.jar, which
    >allegedly is in your classpath. So you need to check that you have that

    jar
    >file, it contains the DataSource class, it's in the directory you said it
    >was in, that piece of code is using the classpath you think it is, and so
    >on.
    >
    >PC2
    >
    >"Dan Healy" <dhealy@houston.rr.com> wrote in message
    >news:3aedd761$1@news.devx.com...
    >>
    >> Exception in thread "main" java.lang.NoClassDefFoundError:

    >javax/activation/DataSource
    >> The CLASSPATH is:
    >>
    >>

    >c:\xerces-1_2_0\xerces.jar;.;c:\ApacheSoap\soap-2_1\lib\soap.jar;c:\javamail
    >-1.2\mail.jar;c:\jaf-1.0.1\activation.jar
    >>

    >
    >
    >



  5. #5
    Cal Sparrow Guest

    Re: Building SOAP Client Server Apps


    "Dan Healy" <dhealy@houston.rr.com> wrote:
    >
    >In the April, 2001 issue of JavaPro, on page 22 is an article by Patrick

    R.
    >Schonfeld, "Making SOAP out of Java".
    >
    >I have downloaded the source from java-pro.com and all of the required supporting
    >systems from Sun and Apache, followed the instructions in the article, and
    >have almost got the sample to work.
    >
    >When I invoke the Java interpreter to run SearchReadingList I get the following
    >error message:
    >
    >Exception in thread "main" java.lang.NoClassDefFoundError: javax/activation/DataSource
    > at org.apache.soap.rpc.call.<init>(Call.java:98)
    > at org.apache.soap.rpc.call.<init>(Call.java:91)
    > at samples.readinglist.SearchReadingList.main(searchReadingList.java:20)
    >
    >I have installed and tested Tomcat and the Hello World page works.
    >
    >I have installed, configured, and compiled the sample application.
    >
    >I have registered the sample with SOAP giving the deployment details as

    follows:
    >
    >Deployed Service Information
    >'urn:ReadingListManager' Service Deployment Descriptor
    >Property Details
    >ID urn:ReadingListManager
    >Scope Application
    >Provider Type java
    >Provider Class samples.readinglist.ReadingList
    >Use Static Class false
    >Methods searchList
    >Type Mappings
    >Default Mapping Registry Class
    >
    >The CLASSPATH is:
    >
    >c:\xerces-1_2_0\xerces.jar;.;c:\ApacheSoap\soap-2_1\lib\soap.jar;c:\javamail-1.2\mail.jar;c:\jaf-1.0.1\activation.jar
    >
    >The command line is:
    >
    >java samples.readinglist.SearchReadingList http://localhost:8080/soap/servlet/rpcrouter
    >"Author" "Anton Chekhov"
    >
    >Getting this far has been a tremendous learning experience that I will be
    >glad to share with all that are interested -- especially if I can get this
    >last step to work.
    >
    >Thanks,
    >
    >Dan Healy


    I had the same problem. Make a copy of the activation.jar file and place
    it in the javax directory. Add /javax/activation.jar to your classpath and
    everything should work.
    Cal Sparrow


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center