• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

jsp exception  RSS feed

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • 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: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you post entire error message ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!