How can I deploy a Composite component in jar?

asked 2013-09-12 13:26:22 +0800

mark09 gravatar image mark09
2 2

updated 2013-09-13 12:26:26 +0800

Hi everyone.

I developed a ZK composite component and it works.

I followed this guide: DefineCompositeComponentusingJavaAnnotationin_ZK6 (not enough karma to post the link, but it's on the zk website)

I used annotations, as suggested in the SmallTalk.

I was able to test the component in the same Eclipse project, but I don't know how to put it in a jar and share with others. Everything I tried results in the message:

org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: file:/pathToIndex/index.zul:5:43: Component definition not found: componentName in [LanguageDefinition: xul/html]

I already enabled annotation scanning, via zk.xml configuration, but it seems to ignore annotated classes contained in the jar.

Any ideas?


UPDATE: thanks for the replies.

It turns out that only che config.xml is necessary if you use annotations. In the config.xml write the library property to enable the package scanning, as specified in the smalltalk I mentioned.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2013-09-12 13:26:22 +0800

Seen: 21 times

Last updated: Sep 13 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More