Just can work out what's wrong here - I know it's probably a classpath issue,
but I'm getting
java.lang.NoSuchMethodError:
org.apache.poi.poifs.filesystem.POIFSFileSystem.getRoot()Lorg/apache/poi/poifs/filesystem/DirectoryNode
from fsys.getRoot() during
POIFSFileSystem fsys = new POIFSFileSystem(in);
DocumentEntry headerProps =
(DocumentEntry)fsys.getRoot().getEntry("WordDocument");
As far as I can see I have
964,285 poi-3.0.2-FINAL-20080204.jar
59,411 poi-contrib-3.0.2-FINAL-20080204.jar
888,864 poi-scratchpad-3.0.2-FINAL-20080204.jar
and I can step into the "new POIFSFileSystem()" in the debugger in Eclipse. If
I remove the poi-3.0.2-FINAL-20080204.jar I get ClassNotFoundException in the
new(), but as soon as I try to step into the fsys.getRoot() it throws the above
Exception.
It's running inside Tomcat.
Any ideas?
Antony
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]