Fwd: httpclient.HttpConnectionManager Exception

1,570 views
Skip to first unread message

madhusudan g

unread,
Aug 20, 2012, 6:04:16 AM8/20/12
to fighting-l...@googlegroups.com
Hi,
 
I am using fighting-layout-bugs-0.4.jar and selenium 2.25 client.
 
I am getting the following exception at FightingLayoutBugs flb = new FightingLayoutBugs();
 
Exception:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpConnectionManager

at com.googlecode.fightinglayoutbugs.FightingLayoutBugs.<init>(

FightingLayoutBugs.java:54)

at example.main(

example.java:29)

Caused by:

java.lang.ClassNotFoundException: org.apache.commons.httpclient.HttpConnectionManager

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)

... 2 more

Thanks

madhusudan G


example.java

Michael Tamm

unread,
Aug 21, 2012, 2:10:54 AM8/21/12
to fighting-l...@googlegroups.com
This looks like a classpath problem to me. Can you please provide the complete command line which is used, when you start your example. Or -- if you are using Maven -- could you please provide the pom.xml file.

Kind regards, Michael 

2012/8/20 madhusudan g <madhusud...@gmail.com>

sheeba shanthi

unread,
May 29, 2014, 6:42:40 AM5/29/14
to fighting-l...@googlegroups.com, michae...@googlemail.com
I get the same error and I use maven to run my tests ...Is there anything to be added in the pom file to sort this ..

the error logs looks like ..

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (Execute Cucumber tests) on project pc-web: An exception occured while executing the Java class. null: InvocationTargetException: org/apache/http/conn/HttpClientConnectionManager: org.apache.http.conn.HttpClientConnectionManager -> [Help 1]
Reply all
Reply to author
Forward
0 new messages