Status: New
Owner: ----
Labels: Type-Defect Priority-Medium Status-Untriaged

New issue 5245 by whatarey...@gmail.com: getting
java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal when calling
the FirefoxDriver contructor using selenium-java 2.30.0
http://code.google.com/p/selenium/issues/detail?id=5245

Selenium version: selenium-java 2.30.0
OS: Windows 7 Professional 64bit
Browser: Firefox
Browser version: 15.0
JDK: 1.6.0_34

Hi,

After I have upgraded the selenium-java jar from 2.24.1 to 2.30.0,
I am getting the following exception at run-time when my code is calling
the FirefoxDriver constructor:

driver = new FirefoxDriver(firefoxBinary, firefoxProfile);


Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.493 sec
<<< FAILURE!
testFF(au.com.mycompany.selenium.SeleniumCommonTest) Time elapsed: 4.43
sec <<< ERROR!
java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
  at java.lang.ClassLoader.defineClass1(Native Method)
  at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
  at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
  at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  at org.apache.xerces.parsers.AbstractDOMParser.startDocument(Unknown
Source)
  at org.apache.xerces.impl.dtd.XMLDTDValidator.startDocument(Unknown Source)
  at org.apache.xerces.impl.XMLDocumentScannerImpl.startEntity(Unknown
Source)
  at org.apache.xerces.impl.XMLVersionDetector.startDocumentParsing(Unknown
Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
  at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
  at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
  at
org.openqa.selenium.firefox.internal.FileExtension.readIdFromInstallRdf(FileExtension.java:97)
  at
org.openqa.selenium.firefox.internal.FileExtension.writeTo(FileExtension.java:60)
  at
org.openqa.selenium.firefox.internal.ClasspathExtension.writeTo(ClasspathExtension.java:63)
  at
org.openqa.selenium.firefox.FirefoxProfile.installExtensions(FirefoxProfile.java:465)
  at
org.openqa.selenium.firefox.FirefoxProfile.layoutOnDisk(FirefoxProfile.java:443)
  at
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:77)
  at
org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:244)
  at
org.openqa.selenium.remote.RemoteWebDriver.(FirefoxDriver.java:188)
  at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:179)
  at
au.com.mycompany.selenium.SeleniumTestParent.setUpFirefoxDriver(SeleniumTestParent.java:70)
  at
au.com.mycompany.selenium.SeleniumCommonTest.testFF(SeleniumCommonTest.java:9)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
  at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
  at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
  at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
  at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
  at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:47)
  at org.junit.rules.RunRules.evaluate(RunRules.java:18)
  at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
  at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
  at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
  at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
  at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
  at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
  at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
  at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
  at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
  at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
  at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
  at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
  at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
  at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
  at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
  ... 65 more



--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "Selenium Developer Activity" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-developer-activity+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-developer-activity@googlegroups.com.
Visit this group at http://groups.google.com/group/selenium-developer-activity?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 14 | next ›
Discussion Overview
groupselenium-developer-activity @
categoriesselenium
postedFeb 27, '13 at 2:18a
activeApr 9, '15 at 1:34p
posts14
users1
websiteseleniumhq.org

1 user in discussion

Selenium: 14 posts

People

Translate

site design / logo © 2021 Grokbase