tomcat - ClassNotFoundException in a library Project in a maven Project -
in maven project in eclipse, have added normal java- project library project (with java- build path). worked fine until wrote method in library project makes use of org.apache.commons.codec.digest.digestutils . added external library both "external jar" in java buildpath properties of library project , maven dependency:
<dependency> <groupid>commons-codec</groupid> <artifactid>commons-codec</artifactid> <version>1.4</version> </dependency> in eclipse both projects show no errors, when run gives me classnotfoundexception in library project (btw. if use exact same line of code in source of maven project, works fine)
the maven project runs on tomcat7-server.
now question is: how can fix this? library project used other projects well, copying code maven project less favored solution.
thanks in advance!
you need library (commons-codec) in web-inf/lib folder, not on build path.
Comments
Post a Comment