Summary: | I found a problem,if I use main execute is no problem,but used it in web application,have this problem: | ||
---|---|---|---|
Product: | POI | Reporter: | zhoushu126 <zhoushu126> |
Component: | POI Overall | Assignee: | POI Developers List <dev> |
Status: | CLOSED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.6-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP |
Description
zhoushu126
2010-06-01 10:18:15 UTC
This is a question that should really start on the user list. The stack dump is very helpful - struts, spring framework and tomcat are in use. NoSuchMethod error almost always means a problem with the classpath. For webapps and Tomcat this means that you need to put POI jar files in one of two places: (1) In the WEB-INF/lib subfolder of your webapps. (2) In tomcat/shared/lib if Tomcat 5.5 or earlier, or tomcat/lib if Tomcat 6 or more recent. Thank you for your help,I check you said file path,then found (1) In the WEB-INF/lib subfolder of your webapps. --- this path had exits poi-2.5.1.jar in my webapps,I only delete build path libraries in eclipes program,so poi-2.5.1.jar sill exits webapps in tomcat6.0, I detete all poi-2.5.1.jar in program. is OK (2) In tomcat/shared/lib if Tomcat 5.5 or earlier, or tomcat/lib if Tomcat 6 or more recent. ----I think no need this step. anyway,now is OK thank you again. |