dqw / owaspantisamy

Automatically exported from code.google.com/p/owaspantisamy
0 stars 0 forks source link

Receive classdefnotfound error when calling antiSamy.scan #81

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Insert the following code in the program:
Policy policy = 
Policy.getInstance(String_Function.class.getClassLoader().getResourceAsStream("a
ntisamy-custom.xml"));
AntiSamy antiSamy = new AntiSamy(policy);
CleanResults cleanResults = antiSamy.scan(suspectString, AntiSamy.DOM);
return cleanResults.getCleanHTML();  
2. Compile and run application.

What is the expected output? What do you see instead?
The expected output is that I receive a parsed version of the output according 
to the rules I set in the policy file.

I get the execption instead.

What version of the product are you using? On what operating system?
I'm using AntiSamy 1.4.1 on Windows 7 through NetBeans.

Please provide any additional information below.

Original issue reported on code.google.com by jasonwth...@gmail.com on 9 Aug 2010 at 3:35

GoogleCodeExporter commented 8 years ago
Nevermind.  Apparently it's not as easy as including in your project and 
profiting as the documentation would lead you to believe.  You have to include 
a bunch of extra libraries that aren't so apparent before it will work.

Original comment by jasonwth...@gmail.com on 9 Aug 2010 at 4:42

GoogleCodeExporter commented 8 years ago
I'm facing the same issue. By any chance, do you have the list of extra or 
required libraries you have to add?

Thanks!

Original comment by sebastia...@gmail.com on 31 Aug 2010 at 7:56

GoogleCodeExporter commented 8 years ago
We used to maintain a list, but since everything's been Mavenized in this world 
dependencies should be managed automatically. I'll be sure to put up a page 
soon documenting all the libraries.

Original comment by arshan.d...@gmail.com on 22 Sep 2010 at 3:11