[ http://issues.apache.org/jira/browse/DERBY-2153?page=all ]
A B updated DERBY-2153:
-----------------------
Assignee: A B
This is caused by addition of the DocumentBuilderFactory to junit/XML.java.
When I added the import I knew it would make it so that the XML tests would
fail with 1.3 JVMs, as indicated by this diff:
+/* The following import is for a JDBC 3.0 JAXP class, which means that
+ * this file can only be built with 1.4 or later (see build.xml in
+ * this directory). This means that 1.3 JVMs will not be able to
+ * instantiate this class--but since 1.3 is deprecated as of 10.3,
+ * we do not worry about that here.
+ */
+import javax.xml.parsers.DocumentBuilderFactory;
+
But of course, I failed to realize that wctme is (apparently?) based on a 1.3
JVM and it (wctme) is *not* deprecated as of 10.3. So my mistake.
I think the fix here is going to be to create a separate file in the juni/t
directory that is only instantiated when all required XML classes are in the
classpath (similar to the SqlXmlUtil.java class in the engine). I'll look into
making that change.
Just as a sidenote: if you have the required XML classes (esp. xml-apis.jar, a
JAXP parser, and Xalan) in your classpath, the tests should run fine with
wctme5.7. It's only if those jars are missing that this will be a problem.
Thanks for catching this!
> suites.All falls over with foundation after revision 482433;
> java.lang.NoClassFoundError: javax.xml.parsers.DocumentBuilderFactory
> ----------------------------------------------------------------------------------------------------------------------------------
>
> Key: DERBY-2153
> URL: http://issues.apache.org/jira/browse/DERBY-2153
> Project: Derby
> Issue Type: Bug
> Components: Test
> Affects Versions: 10.3.0.0
> Environment: IBM's wctme5.7 (a.k.a. j9) jcl Foundation libraries
> (j2MEjdk 1.0)
> Reporter: Myrna van Lunteren
> Assigned To: A B
>
> When attempting to run:
> <j9binpath>/j9 -jcl:foun10 -Dderby.system.home=<testhome>
> -DderbyTesting.serverhost=localhost -DderbyTesting.clienthost=localhost
> -DderbyTesting.codeclasses=file:/<classesdir>/
> -DderbyTesting.junit=file://unused -DderbyTesting.antjunit=file://unused
> -Djava.security.policy=file:/<classesdir>/org/apache/derbyTesting/functionTests/util/derby_tests.policy
> -Xbootclasspath/a:<j9libpath>/jdbc.jar -cp <classesdir>;junit.jar
> junit.textui.TestRunner org.apache.derbyTesting.functionTests.suites.All
> The textui.TestRunner keels over with the following error:
> Failed to invoke suite():java.lang.NoClassDefFoundError:
> javax.xml.parsers.DocumentBuilderFactory
> This happens after, but not before revision 482433.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira