Closed GoogleCodeExporter closed 9 years ago
PS: Root Cause is:
java.lang.NoClassDefFoundError: org/owasp/validator/html/PolicyException
Looks like a Class cannot be found...
Original comment by joachim....@mediaman.de
on 24 Feb 2009 at 11:34
Have you checked the "Problems" tab? Is there a warning similar to this?
Classpath entry C:/Users/XXXX/Downloads/owasp-esapi-full-java-1.4.jar will not
be
exported or published. Runtime ClassNotFoundExceptions may result.
If so, check if there is a "Quick Fix" when you right click on the problem.
For me,
it says, "Mark the associated raw classpath entry as a publish/export
dependency".
This solves the problem for me.
Original comment by kfe...@gmail.com
on 16 Apr 2009 at 8:10
To manually fix this issue, right-click the project and choose "Properties".
Select "Java EE Module Dependencies" from the list on the left.
If the ESAPI JAR is already listed, be sure it is checked off on the list.
If the ESAPI JAR is not listed, add it with "Add JAR" or "Add External JAR".
Apply. This should export ESAPI to the server to resolve your problem.
Original comment by kfe...@gmail.com
on 16 Apr 2009 at 8:34
There are dependancies not mentioned in the set-up. You need to include the
antisamy
jar in your classpath also - it contains the missing class.
Original comment by bhwhe...@gmail.com
on 9 Jul 2009 at 12:15
Add these lines to pom.xml
<dependencies>
<dependency>
<groupId>owasp-esapi</groupId>
<artifactId>owasp-esapi</artifactId>
</dependency>
<dependency>
<groupId>antisamy</groupId>
<artifactId>antisamy</artifactId>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
</dependency>
</dependencies>
Then try with a clean/package. In case, if its still not working try with a
clean/install/package
Original comment by abhijitp...@gmail.com
on 2 May 2011 at 6:07
make sure you include antisamy-1.4.4.jar in your project
Original comment by harrison...@gmail.com
on 14 Dec 2011 at 8:44
Original issue reported on code.google.com by
joachim....@mediaman.de
on 24 Feb 2009 at 11:33