• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jsp exception

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a jsp like this: But when i try to run it it gives an exception!
exception
javax.servlet.ServletException: class samples.client.DynamicInvoker : java.lang.InstantiationException: samples.client.DynamicInvoker
Heres the JSP
<html>
<head>
<title>
UDDI Browser
</title>
</head>
<jsp:useBean id="kishId" scope="session" class="samples.client.DynamicInvoker" />
<jsp:setProperty name="kishId" property="*" />
<%@ page language="java" %>
<%@ page import="samples.client.*" %>
<%@ page import="java.util.*" %>
<%@ page import="java.lang.*" %>
<body bgcolor="DDDDDD">
<h2>Invoking the version service</h2>
<%
String operationName = "getVersion";
String[] args = {"http://localhost:8080/axis/services/Version?wsdl","getVersion"};
String portName = null;
DynamicInvoker invoker = new DynamicInvoker("http://localhost:8080/axis/services/Version?wsdl");
HashMap map = invoker.invokeMethod(operationName, portName, args);
// print result
System.out.println("Result:");
for (Iterator it = map.keySet().iterator(); it.hasNext() {
String name = (String) it.next();
%>
<h3><%=name %> : <%= map.get(name) %></h3>
<%
System.out.println(name + "=" + map.get(name));
}
System.out.println("\nDone!");
%>
<hr>
</form>
</body>
</html>

can somebody give me a solution for this?
 
Ranch Hand
Posts: 645
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can you post entire error message ?
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic