[selenium-developers] selenium server 1.x dependency clash with log4j ?

54 views
Skip to first unread message

Pranav

unread,
Apr 15, 2010, 3:35:03 PM4/15/10
to Selenium Developers
so i took selenium-rc trunk code from rev 8669 ( the last rev with 1.x
code structure ) ... built it.

Now if i run the selenium server on commandline, everything works fine,
but the moment i start the server programatically, and if my project pom
has a log4j or commons-logging dependency ... i see this error , and
nothign works.

log4j:WARN No appenders could be found for logger
(org.openqa.selenium.server.SeleniumServer).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.RuntimeException: Could not start
Selenium session: Failed to start new browser session: null
at
com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)


if i remove log4j and commons-logging form my pom, everything works fine.

does anybody know, what am i doing wrong here ?

Best,

Pranav

--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To post to this group, send email to selenium-...@googlegroups.com.
To unsubscribe from this group, send email to selenium-develo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-developers?hl=en.

Simon Stewart

unread,
Apr 16, 2010, 10:52:10 AM4/16/10
to selenium-...@googlegroups.com
Which version of log4j and commons-logging are you using?

Simon

Pranav

unread,
Apr 16, 2010, 3:11:28 PM4/16/10
to selenium-...@googlegroups.com
Simon,

I had this in my pom :

<dependency>
<groupId>commons-configuration</groupId>
<artifactId>commons-configuration</artifactId>
<version>1.5</version>
</dependency>

this dependency fetches common-logging 1.1, and log4j 1.2.14, you don't
need to import or extend anything in your code, just having them in
dependency is enough to make selenium server 1.0.2 SANPSHOT angry.

an ya i tried latest 1.0.3 jar, and that works fine with these
libraries, so i am sure i am doing something wrong while building the
1.0.2 code, any pointers/tips would be appreciated.

Thanks a lot for your time.

Best,
Pranav

pranav

unread,
Apr 19, 2010, 5:00:41 PM4/19/10
to Selenium Developers
and ya this dependency thing works for me if i build the server with
REL-1.0.1 tag code , this problem only occurs when i try 1.0.2-
SNAPSHOT code.

Simon Stewart

unread,
Apr 21, 2010, 6:36:18 AM4/21/10
to selenium-...@googlegroups.com
What about with the latest version of selenium?

Simon
Reply all
Reply to author
Forward
0 new messages