Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to invoke WebService from Managed Bean

 
Sam Digo
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am trying to invoke a webservice from Managed Bean and getting an exception.

Server : WAS 6.1.0.2

JSF 1.2

JAX-WS web services

RAD 7.0.0

Following is the exception am receiving :

[8/31/11 7:59:25:335 EDT] 0000002d WebApp E [Servlet Error]-[Faces Servlet]: javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: org.example.www.Sample_PortType

at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:170)

at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:123)

at javax.faces.component.UIOutput.getValue(UIOutput.java:147)

at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:84)

at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:204)

at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:171)

at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:754)

at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:627)

at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:550)

at com.sun.faces.taglib.html_basic.InputTextareaTag.doEndTag(InputTextareaTag.java:651)

at com.ibm._jsp._sample._jspx_meth_h_inputTextarea_0(_sample.java:107)

at com.ibm._jsp._sample._jspx_meth_h_form_0(_sample.java:149)

at com.ibm._jsp._sample._jspx_meth_f_view_0(_sample.java:180)

at com.ibm._jsp._sample._jspService(_sample.java:77)

at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:85)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:972)

at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)

at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)

at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:115)

at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:168)

at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:308)

at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:325)

at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:249)

at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)

at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:239)

at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118)

at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)

at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:972)

at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)

at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)

at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129)

at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)

at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)

at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)

at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)

at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)

at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)

at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274)

at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)

at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)

at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)

at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)

at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)

at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)

at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)

at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)

at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)

at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)

Caused by: java.lang.NoClassDefFoundError: org.example.www.Sample_PortType

at java.lang.J9VMInternals.verifyImpl(Native Method)

at java.lang.J9VMInternals.verify(J9VMInternals.java:59)

at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)

at java.lang.Class.newInstanceImpl(Native Method)

at java.lang.Class.newInstance(Class.java:1263)

at java.beans.Beans.instantiate(Beans.java:219)

at java.beans.Beans.instantiate(Beans.java:63)

at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:226)

at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:291)

at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:81)

at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:125)

at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:146)

at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:249)

at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:140)

Thanks in advance ..

JSF Ranch
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic