I created one project in portlet.which contain webservice and i am calling webservice in
one of my servlet class through axis client.and i am passing one object to webservice.but
i am getting one error whenever i am creating the object of PurchaseOrder class and this
class is genrated by axis itself.
my client application:
response.setContentType("text/html");
PrintWriter out = response.getWriter();
Activity[] act=null;
PurchaseOrder mypo=null;
mypo=new PurchaseOrder();
mypo.setEmailId("dsgfd");
mypo.setHeadCount(10);
mypo.setEndDate("234");
mypo.setEndDate("saf");
mypo.setLocale("US");
mypo.setPoId("Gajanan");
mypo.setTotalPrice(235345);
mypo.setUserId("Gajanan");
mypo.setOrderDate("ege");
mypo.setActivities(act);
try{
PoEndpointBeanProxy stub= new PoEndpointBeanProxy();
String ret=stub.submitPurchaseOrder(mypo);
out.println("PID="+ret);
} catch (Exception e) {
e.printStackTrace();
System.err.println(e.toString());
}
Stack trace:
ava.lang.NoSuchMethodError: org.apache.axis.description.TypeDesc.(Ljava/lang/Class;Z)V
at com.sun.j2ee.blueprints.opc.powebservice.PurchaseOrder.(PurchaseOrder.java:564)
at org.jboss.portal.portlet.samples.SampleClient.service(SampleClient.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
10:24:54,698 ERROR [[SampleClient]] Servlet.service() for servlet SampleClient threw
exception
java.lang.NoSuchMethodError: org.apache.axis.description.TypeDesc.(Ljava/lang/Class;Z)V
at com.sun.j2ee.blueprints.opc.powebservice.PurchaseOrder.(PurchaseOrder.java:564)
at org.jboss.portal.portlet.samples.SampleClient.service(SampleClient.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
please help me to resolve this issue
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221821#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...