aspose file tools
The moose likes Web Services and the fly likes Unable to use WS inside J2EE component Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Unable to use WS inside J2EE component" Watch "Unable to use WS inside J2EE component" New topic
Author

Unable to use WS inside J2EE component

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3359

Hi all.
I am using J2EE 1.4 RI.
I want to access my web service using my JSP page using a static stubs.
I have added the web service to the JNDI ENC.
my files are :
SearchPersonWS.java
SearchPerson_Impl.java
wscompile tool generates the following :
SearchPersonService.class
SearchPersonService_Impl.class
SearchPersonWS.class
the code in the JSP page :

running the JSP, I got :
IllegalArgumentException: object is not an instance of declaring class
(it is worth noting that my JSP is uses the classes generated by wscompile tool which are resides in sstub package, not in com package which contains my JSE, so this JSP page is import sstub package not com)
any help ??
thanks.
[ January 13, 2005: Message edited by: John Todd ]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Unable to use WS inside J2EE component
 
Similar Threads
NullPointerException when calling a web service
Unable to access WS in J2EE way
generate web service client
SOAP Fault Exception - does not contain operation meta data for
how to deploy a WS in OC4J ??