my dog learned polymorphism*
The moose likes Tomcat and the fly likes Client Side Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Client Side Exception" Watch "Client Side Exception" New topic
Author

Client Side Exception

Sandeep Advani
Ranch Hand

Joined: Mar 11, 2004
Posts: 78
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
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
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

Joined: Mar 11, 2004
Posts: 78
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Client Side Exception
 
Similar Threads
Non JSP client for Web Service
Invoking a webservice from a servlet
Unable to receive result from Web Service Method
Package doesnot exist
axis and attachments