Jeff, I think you might need to include the classpath in the manifest
file. I am not in front of my machine right now, but can check
sometime later this week. I have a simple preprocessor that I can
check against.
out of curiosity, what does your preprocessor do? are you planning to
release it to the public?
Christian
On Aug 11, 2009, at 12:53 PM, "JEFFREY S STEWART" <jss1...@esu.edu>
wrote:
All,
Currently I'm in the process of creating a crawler preprocessor plug-
in for capture-hpc. In order to retrieve the HTML of the web pages,
it uses apache's HttpClient library. I've tested my plug-in and it
appears to be working on my development machine. However when I try
to move it over to the machine that is hosting capture-hpc, I cannot
get it to run. It gives me the exception below, which leads me to
believe that it cannot find the library. I've adjusted the
build.xml to build my plug-in, and I copied the library to the lib
folder inside of the release folder. I've tried several different
methods of getting it to recognize the class path, but nothing seems
to affect it. I can post the code of the preprocessor if that is
needed.
Is there an example of a preprocessor that loads a library that I
could reference? I wasn't able to find any other preprocessors to
base the configuration off of.
Thanks,
jeffball
Related Info:
HttpClient Homepage:
http://hc.apache.org/
Stack Trace and Error Message:
Exception in thread "main" java.lang.NoClassDefFoundError: org/
apache/http/ProtocolVersion
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at capture.PreprocessorFactory.getPreprocessor
(PreprocessorFactory.java:30)
at capture.Server.<init>(Server.java:86)
at capture.Server.main(Server.java:109)
Caused by: java.lang.ClassNotFoundException:
org.apache.http.ProtocolVersion
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
336)
... 5 more
_______________________________________________
Capture-HPC mailing list
Capture-HPC@public.honeynet.org
https://public.honeynet.org/mailman/listinfo/capture-hpc
_______________________________________________
Capture-HPC mailing list
Capture-HPC@public.honeynet.org
https://public.honeynet.org/mailman/listinfo/capture-hpc