Skip to content

Commit 44e10ff

Browse files
committed
bug6298: vendor commons-exec 1.3 required by selenium-os DriverService
Selenium 4's selenium-os module (org.openqa.selenium.os.CommandLine, used by DriverService.start() to launch the driver binary) depends on Apache Commons Exec 1.3. Selenium 3's fat client-combined jar bundled it; the modular Selenium 4 needs it as a separate transitive. Its absence caused a runtime NoClassDefFoundError: org/apache/commons/exec/ExecuteWatchdog on the first driver session start. Added commons-exec-1.3.jar (the version pinned by selenium-os 4.13.0) to lib/ and wired it into Bundle-ClassPath, build.properties and .classpath. Not re-exported, as only selenium-os references it internally. Assisted-By: Claude (claude-4.8-opus)
1 parent fa56d37 commit 44e10ff

4 files changed

Lines changed: 3 additions & 0 deletions

File tree

java/org.openqa.selenium.osgi/.classpath

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
<classpathentry exported="true" kind="lib" path="lib/opentelemetry-sdk-extension-autoconfigure-spi-1.28.0.jar"/>
4444
<classpathentry exported="true" kind="lib" path="lib/opentelemetry-exporter-logging-1.28.0.jar"/>
4545
<classpathentry exported="true" kind="lib" path="lib/opentelemetry-semconv-1.28.0-alpha.jar"/>
46+
<classpathentry exported="true" kind="lib" path="lib/commons-exec-1.3.jar"/>
4647
<classpathentry exported="true" kind="lib" path="lib/json-20080701.jar"/>
4748
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
4849
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>

java/org.openqa.selenium.osgi/META-INF/MANIFEST.MF

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Bundle-ClassPath: selenium-api-4.13.0.jar,
4646
lib/opentelemetry-sdk-extension-autoconfigure-spi-1.28.0.jar,
4747
lib/opentelemetry-exporter-logging-1.28.0.jar,
4848
lib/opentelemetry-semconv-1.28.0-alpha.jar,
49+
lib/commons-exec-1.3.jar,
4950
lib/json-20080701.jar
5051
Bundle-Vendor: openqa
5152
Bundle-RequiredExecutionEnvironment: JavaSE-1.8

java/org.openqa.selenium.osgi/build.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,5 @@ bin.includes = META-INF/,\
4242
lib/opentelemetry-sdk-extension-autoconfigure-spi-1.28.0.jar,\
4343
lib/opentelemetry-exporter-logging-1.28.0.jar,\
4444
lib/opentelemetry-semconv-1.28.0-alpha.jar,\
45+
lib/commons-exec-1.3.jar,\
4546
lib/json-20080701.jar
53.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)