• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

Client Side Exception

 
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Friends

I have written a client using Apache AXIS client side API to access a Web Service After running the client, I receive following exception:

java.lang.IllegalAccessException: Class org.apache.axis.providers.java.JavaProvi
der can not access a member of class LookupService with modifiers ""

My client side code is



I can see the web service being deployed by targetting the http:\\localhost:8080\axis on the browser.

Any idea what might cause this exception?

Thanks
Sandeep
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Java.lang.IllegalAccessException: Class org.apache.axis.providers.java.JavaProvi
der can not access a member of class LookupService with modifiers ""


I think you have an exception generated by the service, not the client side. I suspect that the method you are trying to access does not have the "public" access modifier. Did you write LookupService or get it from somewhere else?
Bill
 
Sandeep Advani
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Bill,

Lookup Service was written by me. Code snippet is as follows.



Public modifier is there in order to expose the services. Moreover, the services seem to be deployed when I hit the browser hosting Web Services.

Thanks
Sandeep
 
All of life is a contant education - Eleanor Roosevelt. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic