tastatur / bing-search-java-sdk

Automatically exported from code.google.com/p/bing-search-java-sdk
0 stars 0 forks source link

java.lang.ClassNotFoundException: org.apache.commons.beanutils.BeanUtilsBean #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

The java line
BingSearchServiceClientFactory factory = 
BingSearchServiceClientFactory.newInstance();

Produces running the error (no compilation error):

Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/commons/beanutils/BeanUtilsBean
    at com.google.code.bing.search.client.BingSearchServiceClientFactory.<clinit>(BingSearchServiceClientFactory.java:31)
    at ws.test.server.main.TestBing.SearchBing(TestBing.java:49)
    at ws.test.server.main.Main.main(Main.java:13)
Caused by: java.lang.ClassNotFoundException: 
org.apache.commons.beanutils.BeanUtilsBean
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)

Any idea why?
Thanks
AG

Original issue reported on code.google.com by agoyene...@gmail.com on 10 Jun 2010 at 5:27

GoogleCodeExporter commented 8 years ago
Answer:
The libraries commons-beanutils-1.8.3.jar, commons-logging-1.1.1.jar, 
json_simple-1.1.jar, etc should be included into the CLASSPATH.

AG

Original comment by agoyene...@gmail.com on 11 Jun 2010 at 9:10

GoogleCodeExporter commented 8 years ago
The dependency on these classes have been removed in the build 2.0.174.

Original comment by nabeelmukhtar on 11 Feb 2011 at 12:51