Hi, I am trying to parse an xml using xpath. I dont have any problem when i try it as a standalone java application, but when I try the same code with in a servlet I am getting the below error. Can any one help me please. I need a solution ASAP.
SRVE0026E: [Servlet Error]-[javax/xml/xpath/XPathFactory]: java.lang.NoCla ssDefFoundError : javax/xml/xpath/XPathFactory
at com.ibm.cod.eve nt.hitsReport.p rocess(hitsRepo rt.java(Compile d Code))
at com.ibm.cod.con troller.servlet .GenerateHitExc el.process(Gene rateHitExcel.ja va:82)
at com.ibm.cod.con troller.servlet .GenerateHitExc el.doPost(Gener ateHitExcel.jav a:32)
at com.ibm.cod.con troller.servlet .GenerateHitExc el.doGet(Genera teHitExcel.java :27)
at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:740)
at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:853)
at com.ibm.ws.webc ontainer.servle t.StrictServlet Instance.doServ ice(StrictServl etInstance.java :110)
at com.ibm.ws.webc ontainer.servle t.StrictLifecyc leServlet._serv ice(StrictLifec ycleServlet.jav a:174)
at com.ibm.ws.webc ontainer.servle t.IdleServletSt ate.service(Str ictLifecycleSer vlet.java:313)
at com.ibm.ws.webc ontainer.servle t.StrictLifecyc leServlet.servi ce(StrictLifecy cleServlet.java :116)
at com.ibm.ws.webc ontainer.servle t.ServletInstan ce.service(Serv letInstance.jav a:283)
at com.ibm.ws.webc ontainer.servle t.ValidServletR eferenceState.d ispatch(ValidSe rvletReferenceS tate.java:42)
at com.ibm.ws.webc ontainer.servle t.ServletInstan ceReference.dis patch(ServletIn stanceReference .java:40)
at com.ibm.ws.webc ontainer.webapp .WebAppRequestD ispatcher.handl eWebAppDispatch (WebAppRequestD ispatcher.java: 948)
at com.ibm.ws.webc ontainer.webapp .WebAppRequestD ispatcher.dispa tch(WebAppReque stDispatcher.ja va:530)
at com.ibm.ws.webc ontainer.webapp .WebAppRequestD ispatcher.forwa rd(WebAppReques tDispatcher.jav a:176)
at com.ibm.ws.webc ontainer.srt.We bAppInvoker.doF orward(WebAppIn voker.java:79)
at com.ibm.ws.webc ontainer.srt.We bAppInvoker.han dleInvocationHo ok(WebAppInvoke r.java:201)
at com.ibm.ws.webc ontainer.cache. invocation.Cach edInvocation.ha ndleInvocation( CachedInvocatio n.java:71)
at com.ibm.ws.webc ontainer.cache. invocation.Cach eableInvocation Context.invoke( CacheableInvoca tionContext.jav a:114)
at com.ibm.ws.webc ontainer.srp.Se rvletRequestPro cessor.dispatch ByURI(ServletRe questProcessor. java:186)
at com.ibm.ws.webc ontainer.oselis tener.OSEListen erDispatcher.se rvice(OSEListen er.java:334)
at com.ibm.ws.webc ontainer.http.H ttpConnection.h andleRequest(Ht tpConnection.ja va:56)
at com.ibm.ws.http .HttpConnection .readAndHandleR equest(HttpConn ection.java:610 )
at com.ibm.ws.http .HttpConnection .run(HttpConnec tion.java:431)
at com.ibm.ws.util .ThreadPool$Wor ker.run(ThreadP ool.java(Compil ed Code))
Thanks in advance...
SRVE0026E: [Servlet Error]-[javax/xml/xpath/XPathFactory]: java.lang.NoCla ssDefFoundError : javax/xml/xpath/XPathFactory
at com.ibm.cod.eve nt.hitsReport.p rocess(hitsRepo rt.java(Compile d Code))
at com.ibm.cod.con troller.servlet .GenerateHitExc el.process(Gene rateHitExcel.ja va:82)
at com.ibm.cod.con troller.servlet .GenerateHitExc el.doPost(Gener ateHitExcel.jav a:32)
at com.ibm.cod.con troller.servlet .GenerateHitExc el.doGet(Genera teHitExcel.java :27)
at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:740)
at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:853)
at com.ibm.ws.webc ontainer.servle t.StrictServlet Instance.doServ ice(StrictServl etInstance.java :110)
at com.ibm.ws.webc ontainer.servle t.StrictLifecyc leServlet._serv ice(StrictLifec ycleServlet.jav a:174)
at com.ibm.ws.webc ontainer.servle t.IdleServletSt ate.service(Str ictLifecycleSer vlet.java:313)
at com.ibm.ws.webc ontainer.servle t.StrictLifecyc leServlet.servi ce(StrictLifecy cleServlet.java :116)
at com.ibm.ws.webc ontainer.servle t.ServletInstan ce.service(Serv letInstance.jav a:283)
at com.ibm.ws.webc ontainer.servle t.ValidServletR eferenceState.d ispatch(ValidSe rvletReferenceS tate.java:42)
at com.ibm.ws.webc ontainer.servle t.ServletInstan ceReference.dis patch(ServletIn stanceReference .java:40)
at com.ibm.ws.webc ontainer.webapp .WebAppRequestD ispatcher.handl eWebAppDispatch (WebAppRequestD ispatcher.java: 948)
at com.ibm.ws.webc ontainer.webapp .WebAppRequestD ispatcher.dispa tch(WebAppReque stDispatcher.ja va:530)
at com.ibm.ws.webc ontainer.webapp .WebAppRequestD ispatcher.forwa rd(WebAppReques tDispatcher.jav a:176)
at com.ibm.ws.webc ontainer.srt.We bAppInvoker.doF orward(WebAppIn voker.java:79)
at com.ibm.ws.webc ontainer.srt.We bAppInvoker.han dleInvocationHo ok(WebAppInvoke r.java:201)
at com.ibm.ws.webc ontainer.cache. invocation.Cach edInvocation.ha ndleInvocation( CachedInvocatio n.java:71)
at com.ibm.ws.webc ontainer.cache. invocation.Cach eableInvocation Context.invoke( CacheableInvoca tionContext.jav a:114)
at com.ibm.ws.webc ontainer.srp.Se rvletRequestPro cessor.dispatch ByURI(ServletRe questProcessor. java:186)
at com.ibm.ws.webc ontainer.oselis tener.OSEListen erDispatcher.se rvice(OSEListen er.java:334)
at com.ibm.ws.webc ontainer.http.H ttpConnection.h andleRequest(Ht tpConnection.ja va:56)
at com.ibm.ws.http .HttpConnection .readAndHandleR equest(HttpConn ection.java:610 )
at com.ibm.ws.http .HttpConnection .run(HttpConnec tion.java:431)
at com.ibm.ws.util .ThreadPool$Wor ker.run(ThreadP ool.java(Compil ed Code))
Thanks in advance...
Comment