When using "import" directive for importing components defined in one .zul file (according to ZK - ZUML Reference - Import Directives the exception "org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: Component definition not found" is thrown.
1. Create file 'mycomponent.zul' representing content of the component:
2. Create file 'components.zul' for definition of all components we have. In one case just one component 'mycomponent.zul' with name 'mynewcomponent'.
3. Create file 'test-import-component.zul' for importing 'components.zul' to have all components available.
All files are attached to this issue.
The exception "org.zkoss.zk.ui.metainfo.DefinitionNotFoundException" is thrown. Stacktrace is in attached stacktrace.txt file.
Component 'mynewcomponent' is imported to 'test-import-component.zul' and is possible to see content of component in web browser.