Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to access WS in J2EE way

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.
I want to access my Java web service from my JSP using JNDI.
my web services consists of the following files :
com.SearchPerson
com.SearchPerson_Impl
I deployed this web service in J2EE 1.4 without any problems.
I used wscompile tool to generate the static stubs, like :
sstub.SearchPerson
sstub.SearchPersonService
sstub.SearchPersonService_Impl.class
// other files goes here...
this is a snippet from web.xml file

here is webservices.xml :

in my JSP page I wrote (this JSP importing sstub package not com):

when running the application, I got :
IllegalArgumentException: object is not an instance of declaring class
any ideas ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic