reset password
Author Message
YangXuan
Posts: 23
Posted 14:07 Nov 20, 2010 |

I added the pdfbox-app-1.3.1.jar into csns project's build path and used this lib as regular with no compile error.

When I ran the program, I got the error message as:

 

root cause

java.lang.NoClassDefFoundError: org/apache/pdfbox/pdmodel/PDDocument
	csns.spring.controller.files.FileUploadController.test(FileUploadController.java:332)
	csns.spring.controller.files.FileUploadController.getUploadedFiles(FileUploadController.java:166)
	csns.spring.controller.files.FileUploadController.handleRequestInternal(FileUploadController.java:62)
	org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)

I tried this lib with other project, it works fine. Any hint to this problem?



cysun
Posts: 2935
Posted 19:55 Nov 20, 2010 |

You need to put the jar file under web/WEB-INF/lib.