History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILS-1718
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Graeme Rocher
Reporter: Sander Smeman
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Grails

grails list-plugins throws: NoClassDefFoundError: org/w3c/dom/DOMError

Created: 19/Oct/07 03:18 AM   Updated: 30/Nov/07 06:25 AM
Component/s: Plugins
Affects Version/s: 1.0-RC1
Fix Version/s: 1.0-RC2

Time Tracking:
Not Specified

Environment:
windows XP Pro, commandline
windows XP Pro, cygwin


 Description  « Hide
F:\>grails list-plugins

Welcome to Grails 1.0-RC1 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: C:\develop\grails-1.0-RC1

Base Directory: F:\
Environment set to development
Note: No plugin scripts found
Running script C:\develop\grails-1.0-RC1\scripts\ListPlugins.groovy
Error executing script ListPlugins: org/w3c/dom/DOMError
java.lang.NoClassDefFoundError: org/w3c/dom/DOMError
at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
at groovy.xml.DOMBuilder.parse(DOMBuilder.java:67)
at groovy.xml.DOMBuilder.parse(DOMBuilder.java:59)

running from the commandline or cygwin results in the same Exception.
Adding xml-apis.jar to the GRAILS_HOME/lib fixes this erroneous behavior.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Lee Butts - 18/Nov/07 07:03 PM
Which version of Java are you using?

I think this maybe caused by Grails using a 1.5 only class...

thanks

Lee


Graeme Rocher - 19/Nov/07 03:29 AM
No its because xml-apis.jar was removed, but JDK 1.4 needs the classes in this JAR. I haven't decided how we are going to handle this yet, but we may need to load these jars in some jdk 1.4 directory or something

Sander Smeman - 20/Nov/07 08:42 AM
It is true that it is about xml-apis.jar and the Java version, and probably a 1.5 only class

To make sure I tested the following combinations:
java 1.4.2, no xml-apis.jar : NoClassDefFoundError
java 1.4.2, with xml-apis.jar : ok
java 1.5.0, no xml-apis.jar : ok