File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Testing and the fly likes spring dependency injection not working with Selenium Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Testing
Reply Bookmark "spring dependency injection not working with Selenium" Watch "spring dependency injection not working with Selenium" New topic
Author

spring dependency injection not working with Selenium

kalyen kumar
Ranch Hand

Joined: Sep 18, 2008
Posts: 53
Hey,

Here is what i'm doing to get automatic bean wiring for selenium and fitnesse test to run.



When i test this i get the following exception.



All other tests which doesn't use dependency injection run well.

Thanks in advance
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26184
    
  66

Kalyen,
Is j2ee.jar in your classpath?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
kalyen kumar
Ranch Hand

Joined: Sep 18, 2008
Posts: 53
Thanks for your response.

The issue got resolved. I was excluding selenium-server artifact. I commented out that part. The tests are working fine.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: spring dependency injection not working with Selenium
 
Similar Threads
what is WebappLoader.java ?
Help with reprinting downloaded text from FTP site onto GUI!
Spring Junit test issue
Spring 2.5 - Rolling back first method, when the second method throws Runtime ex
A Simple Test Framework using JUnit and Spring (Part 1)