Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I prepare a web interface that I could launch the WebDriver. I used I'm using JBoss application server, when I try to run it I receive the following exception

13:39:40,779 ERROR [[ArikTest]] Servlet.service() for servlet ArikTest threw exception java.lang.ClassNotFoundException: org.openqa.selenium.WebDriver at org.apache.catalina.loader.WebappClassLoader.loadClass( at org.apache.catalina.loader.WebappClassLoader.loadClass( at java.lang.ClassLoader.loadClassInternal(Unknown Source) at ArikTest.doGet( at javax.servlet.http.HttpServlet.service( at javax.servlet.http.HttpServlet.service( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter ( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter ( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at org.apache.catalina.core.StandardWrapperValve.invoke( at org.apache.catalina.core.StandardContextValve.invoke( at ( at at org.apache.catalina.core.StandardHostValve.invoke( at org.apache.catalina.valves.ErrorReportValve.invoke( at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke ( at org.apache.catalina.core.StandardEngineValve.invoke( at org.apache.catalina.connector.CoyoteAdapter.service( at org.apache.coyote.http11.Http11Processor.process( at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process ( at$ at Source)

share|improve this question
I couldnt find the answer over the web, please helppppp.. it is possible to launch the webdriver (selenium2) through a java application BUT when i try to run it "on a server" on Jboss i receive exceptions . am i missing something ? – ArikL Jan 9 '12 at 11:50

Your question does not really have anything to do with testing. You need to find someone who can tell you how to include the Selenium client pieces in a war (or ear?) file for JBoss. Perhaps you should try posting your question at

share|improve this answer

Did you use Maven when creating Selenium project? Because it looks like you have problems with dependencies. All information you need for creating basic Selenium project can be founded on official documentation.

The easiest way to set up a Selenium 2.0 Java project is to use Maven. Maven will download the Java bindings (the Selenium 2.0 Java client library) and all its dependencies.

share|improve this answer

Thanks for the quick reply, For your question ,I am not using maven. Here is an example of what i want to do:

WebDriver driver = new FirefoxDriver();

Now if im doing right click --> run as java application .

Result: runing fine , no problem

BUT i try run it from a web application here is an example:

//servlet that receive a submit from a JSP page and i want the webdriver to start

public class HelloServlet extends HttpServlet {

public void doGet(HttpServletRequest request,
          HttpServletResponse response)

WebDriver driver = new FirefoxDriver();


i get the above exception, i use the JBOSS application server and i try to build a JSP page that with a click of a button the automation will start.

Is it possible ? is it because i try to run it above the Jboss server ? because i cant find an answer....

Thanks for any help

share|improve this answer
Arik, welcome to SQA. This site is a little different from a newsgroup. In SQA, if you want to respond to someone's answer, you should either update your original question or click on the "comment" link below their answer and type into the resulting text box. – user246 Jan 9 '12 at 23:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.