This discussion is archived
0 Replies Latest reply: Aug 23, 2012 3:20 PM by 957668 RSS

SES API Sample Code

957668 Newbie
Currently Being Moderated
So I'm trying to use Oracle's sample code here: http://docs.oracle.com/cd/E25054_01/doc.1111/e17332/api002.htm#autoId91

I put the seachquery.jar in my WEB-INF/lib folder and I also tried putting jaxrpc.jar in there to cover javax.xml.rpc.Stub. I changed the 6th line from import javax.xml.rpc.Stub; to <%@page import = "javax.xml.rpc.Stub" %>.

When I access the page it does initially load but when I try searching I get the following 2 errors on line 28: OracleSearchService stub = new OracleSearchService();

javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class oracle.search.query.webservice.client.OracleSearchService
java.lang.NoClassDefFound Error: Could not initialize class oracle.search.query.webservice.client.OracleSearchService

So are there other libraries I need to add to my WEB-INF/lib folder to get the class to initialize or what else could be wrong?

Thanks for the help.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points