Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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!
javax.servlet.ServletException: class samples.client.DynamicInvoker : java.lang.InstantiationException: samples.client.DynamicInvoker
Heres the JSP
UDDI Browser
<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
for (Iterator it = map.keySet().iterator(); it.hasNext() {
String name = (String);
<h3><%=name %> : <%= map.get(name) %></h3>
System.out.println(name + "=" + map.get(name));

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 ?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!