hi all,
am trying to display a pdf by adding few values to PDFForm. but am recieving this error.
java.lang.NoClassDefFoundError: com.itextpdf.text.pdf.PdfReader
at simplePDF.doPost(simplePDF.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
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.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
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)
i've added all required jars. can any one help on this???
ash chowdary wrote:yes...when i run it in as stand alone java program its executing. but giving exception when am trying it in web application.
I guess you added all Jar files to class path so wen you execute the file using command prompt it executes successfully.
I think you have not added the jar files to the Project Library so when you excute it as a web app, it throws error. If you are using eclipse Right clcik on the project, Select Properties,Select Java Build Path, Select Libaray Tab and then add all the required libraries.
Regards,
Deepakkumar Devarajan
ash chowdary
Greenhorn
Joined: Apr 23, 2009
Posts: 16
posted
0
thanks...resolved.
previously, i didn't add libraries in lib folder. i just added them in class path. when i added them in lib, now am able to see the pdf opened. but what am doing is , am trying to pre fill values in pdf.
but, its not displaying the content which i added for city and state.