My previous answer was totally incorrect.

Interface com/xmlmind/xmledit/styledview/StyleHook no longer exists in XXE.

It has been superceded interface
com.xmlmind.xmledit.stylesheet.StyleSpecs a *long* time ago.

You are using in your custom configuration a very old xhtml.jar
(probably to style/edit XHTML tables) which depends on
com/xmlmind/xmledit/styledview/StyleHook.

Replace this old xhtml.jar by the xhtml.jar found in latest release of
XXE and you'll be able to open the XML schema you sent me.

---
PS: Why does opening an XML schema cause xhtml.jar to be loaded by XXE?
Answer: because with the XXE configuration for W3C XML Schemas, you can
embed XHTML documentation in schemas.

-----
PS 2: Alex, you can remove xhtml_help.jar from your custom
configuration. This online help jar is really not needed.




Hussein Shafie wrote:
> I opened the attached schema with XXE V2.10 on Linux, Mac and Windows
> and didn't manage to reproduce the NoClassDefFoundError exception.
> 
> This is not surprising because interface
> com/xmlmind/xmledit/styledview/StyleHook *is* defined (in xxe.jar).
> 
> Try open a DocBook or XHTML document for example (both document types
> use style hooks). You'll find samples in the demo/ directory.
> 
> I have no clue about what happened on your machine. May be you need to
> reinstall Java and/or XXE.




Alex Milowski wrote:
> I got the following error when I tried to open the attached schema:
> 
> apple.awt.EventQueueExceptionHandler Caught Throwable : 
> java.lang.NoClassDefFoundError:  com/xmlmind/xmledit/styledview/StyleHook
> java.lang.NoClassDefFoundError: com/xmlmind/xmledit/styledview/StyleHook
>     at java.lang.Class.forName0(Native Method)
>     at java.lang.Class.forName(Class.java:141)
>     at 
> com.xmlmind.xmledit.styledview.StyledViewFactory.initExtension(StyledVie
> wFactory.java:176)
>     at 
> com.xmlmind.xmledit.styledview.StyledViewFactory.setStyleSheet(StyledVie
> wFactory.java:163)
>     at com.xmlmind.xmleditapp.app.Editor.setStyleSheet(Editor.java:420)
>     at 
> com.xmlmind.xmleditapp.app.Editor.configureDocumentView(Editor.java: 229)
>     at com.xmlmind.xmleditapp.app.Editor.<init>(Editor.java:109)
>     at com.xmlmind.xmleditapp.app.OpenAction.doExec(OpenAction.java:74)
>     at com.xmlmind.xmleditapp.app.OpenAction.exec(OpenAction.java:59)
>     at 
> com.xmlmind.xmleditapp.app.LengthyAction$1.actionPerformed(LengthyAction
> .java:31)
>     at javax.swing.Timer.fireActionPerformed(Timer.java:271)
>     at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
>     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
>     at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
>     at 
> java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThrea
> d.java:234)
>     at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.
> java:184)
>     at 
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:178)
>     at 
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:170)
>     at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

Reply via email to