Bug 705190 - Missing dependency on F15
Summary: Missing dependency on F15
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Topic Tool
Classification: Other
Component: cli-Topic_Tool
Version: 0.0.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Stephen Gordon
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-16 22:03 UTC by Joshua Wulf
Modified: 2014-10-19 22:58 UTC (History)
2 users (show)

Fixed In Version: 0.0.6-0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-29 04:23:30 UTC


Attachments (Terms of Use)

Description Joshua Wulf 2011-05-16 22:03:15 UTC
To reproduce:

1. Install teh F14 package on F15
2. Run:
 topic create Concept_Section testor

Result:
Exception in thread "main" java.lang.NoClassDefFoundError: org/w3c/dom/ElementTraversal
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
	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:121)
	at com.redhat.ecs.SubversionTopicStore.getTopic(Unknown Source)
	at com.redhat.ecs.SubversionTopicStore.getTopic(Unknown Source)
	at com.redhat.ecs.Create.getTemplate(Unknown Source)
	at com.redhat.ecs.Create.performAction(Unknown Source)
	at com.redhat.ecs.Topic.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
	at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
	... 26 more

Comment 1 Stephen Gordon 2011-05-24 04:20:48 UTC
Based on what I've been able to dig up the xerces package previously (in F13 and F14) indirectly included xml-commons-apis in the classpath. It is this package that provides the class that can't be found in the stack trace. Thread:

http://permalink.gmane.org/gmane.comp.java.openjdk.distro-packaging.devel/12910

Comment 2 Stephen Gordon 2011-05-26 07:16:14 UTC
I've changed the build file to directly include xml-commons-apis in the classpath rather than relying on the modules we are dependant on to do so. I have also added xml-commons-apis to the dependency list for the RPM.

Note that because of the way we build the RPM with a macro that detects the release (F13/14/15, RHEL5/6) and builds the dependency list accordingly no fresh RPM has been spun for any release other than F15 at this time, nor is one required. Users on those platforms can carry on dancing.

Users on F15 are encouraged to install and test the following RPM:
https://svn.devel.redhat.com/repos/ecs/toolkit/yum/15/RPMS/topic-tool-0.0.6-0.fc15.noarch.rpm

Comment 3 Joshua Wulf 2011-05-26 08:01:44 UTC
[jwulf@gaura eclipse]$ rpm -q topic-tool
topic-tool-0.0.6-0.fc15.noarch

[jwulf@gaura eclipse]$ topic create
topic create requires arguments <TemplateName> <TopicName>
Example: topic create concept Virtualization

See also: `man topic` or `topic help`
[jwulf@gaura eclipse]$ topic create Concept_Section something
INFO: Created new topic based on 'Concept_Section' template in file 'something.xml'


Note You need to log in before you can comment on or make changes to this bug.