com/sun/xml/rpc/client/BasicService
That's a class from Sun's reference implementation of JAX-RPC, and it's proprietary to that implementation. Do you by chance have an import of this class in your code? If so, you need to include JWSDP in your classpath.
You might change your code, though, to use the javax.xml.rpc.* libraries. That way it would work with Axis.
Anne
On 3/15/06, Rhimbo <
[EMAIL PROTECTED]> wrote:
Hello Anne,
No, I don't believe I used JWSDP for anything. My client is a
one file, one class Java driver to make calls to my web services.
I just did a simple
$ pwd
/home/vartan/dev/family-accounts/src/client
$
$ javac FamilyClient.java
$ java FamilyClient
Execute methods in web service...
Calling isRegistered(zippy)...
java.lang.NoClassDefFoundError: com/sun/xml/rpc/client/BasicService;
nested exception is:
java.lang.NoClassDefFoundError:
com/sun/xml/rpc/client/BasicService
$
The first web service call is made immediately after the statement
that prints out the "Calling..." output.
None of the JWSDP jars are in my CLASSPATH.
$ ls /opt/jwsdp
apache-ant images jaxrpc log.txt _uninst
conf jaxb jaxws saaj uninstall.sh
docs jaxp jwsdp-shared sjsxp xmldsig
fastinfoset jaxr LICENSE THIRDPARTYLICENSEREADME xws-security
$
$ echo $CLASSPATH | grep jwsdp
$ echo $CLASSPATH | grep JWSDP
$
--- Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
> Did you build the client with JWSDP? If so you need to provide the
> runtime
> for the client.
>
> On 3/15/06, Rhimbo <[EMAIL PROTECTED]> wrote:
> >
> > Hello again folks,
> >
> > Tomcat 5.5.15, Linux
> >
> > Question: Do I need to integrate the Sun JWSDP into Tomcat?
> >
> > Although it appears that I did successfully deploy my web
> > service, client program access fails. Guess I spoke too soon
> > in my last reply. :-) Here's the scenario....
> >
> > When I visit my web service URL in my browser
> > http://localhost:8080/axis/services/family-accounts
> >
> > I get a message saying "Hi there, this is an AXIS service!"
> > Visiting the link
> > http://localhost:8080/axis/services/family-accounts?wsdl
> >
> > returns the WSDL. All seems well.
> >
> > But my stand-alone Java app dies with the exception shown in
> > this email's "Subject" line.
> >
> > I found the BasicService class in one of the Sun JWSDP 2.0 jar
> > files.
> >
> > I'm wondering why a previous iteration of my web service
> > worked without the JWSDP. Both my stand-alone client and my
> > colleague's Python app were able to hit it successfully.
> >
> > Now both his client and mine fail with the above exception.
> >
> > I tried adding this jar to my CLASSPATH:
> > /opt/jwsdp/jaxb/lib/jarpc-impl.jar
> >
> > But my client still fails. I suspect it's the web service process
> > (AXIS server) that needs to find the class. I would have thought
> > that the necessary JAX-RPC libs were integrated in XIS already.
> >
> > What am I missing... practically and conceptually?!!
> >
> > Many thanks,
> >
> > Vartan
> >
> >
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
