0

Issue with EE Version, lang-addon.xml, jboss

asked 2012-10-31 12:16:18 +0800

ansancle gravatar image ansancle
317 9

updated 2012-10-31 12:56:11 +0800

I am using Eclipse and Jboss (and have been for years) and have run into a very strange problem with the new components.
I have all the new libraries, they are being correctly packaged into my ear's (which I inspect out on jboss).

Everything builds and deploys fine without any errors except for my overload of Cardlayout in lang-addon.xml
I can even create a new Cardlayout component without error in my java code :

	Cardlayout card = new Cardlayout();


This is the code within DefinitionLoaders that is logging the warning :

if (log.finerable()) log.finer("Extends component definition, "+name+", from "+extnm);
  				final ComponentDefinition ref = langdef.getComponentDefinitionIfAny(extnm);
  				if (ref == null) {
   					log.warning("Component "+name+" ignored. Reason: extends a non-existent component "+extnm+".\n"+el.getLocator());
  						//not throw exception since the derived component might be
   						//ignored due to class-not-found


I am missing something I am doing with regards to lang-addon.xml (which I have been using forever)

UPDATE - Any EE Edition components I try give the same error - all others work fine. So it's something to do with the EE Version.

I have the following inside lang-addon.xml :

  <component>

    <extends>Cardlayout</extends>

    <component-name>dhSourceCardLayout</component-name>

    <component-class>com.dh.ui.ipad.components.source.DHzSourceCardLayout</component-class>

  </component>   


I get the following error on deployment, which is generated from the class DefinitionLoaders - and this code within that class :

15:32:58,118 WARNING [org.zkoss] (MSC service thread 1-1) Component dhSourceCardLayout ignored. Reason: extends a non-existent component Cardlayout.

[null:jndi:/default-host/dhuiipad/WEB-INF/lang-addon.xml:24:14]

And when trying to access the page that uses it :

org.zkoss.zk.ui.metainfo.DefinitionNotFoundException: file:/usr/loca...dio/DHzAudioHomeWindow.zul:81:106: Component definition not found: dhSourceCardLayout in [LanguageDefinition: xul/html]

	org.zkoss.zk.ui.metainfo.Parser.parseItem(Parser.java:820)

	org.zkoss.zk.ui.metainfo.Parser.parseItems(Parser.java:635)

	org.zkoss.zk.ui.metainfo.Parser.parseItem(Parser.java:912)

	org.zkoss.zk.ui.metainfo.Parser.parseItems(Parser.java:635)

	org.zkoss.zk.ui.metainfo.Parser.parseItem(Parser.java:912)

	org.zkoss.zk.ui.metainfo.Parser.parseItems(Parser.java:635)

	org.zkoss.zk.ui.metainfo.Parser.parseItem(Parser.java:912)

	org.zkoss.zk.ui.metainfo.Parser.parseItems(Parser.java:635)

	org.zkoss.zk.ui.metainfo.Parser.parseItem(Parser.java:912)

	org.zkoss.zk.ui.metainfo.Parser.parseItems(Parser.java:635)

	org.zkoss.zk.ui.metainfo.Parser.parseItem(Parser.java:912)

	org.zkoss.zk.ui.metainfo.Parser.parseItems(Parser.java:635)

	org.zkoss.zk.ui.metainfo.Parser.parseItem(Parser.java:770)

	org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:226)

	org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:98)

	org.zkoss.zk.ui.metainfo.PageDefinitions$MyLoader.parse(PageDefinitions.java:209)

	org.zkoss.zk.ui.metainfo.PageDefinitions$MyLoader.parse(PageDefinitions.java:198)

	org.zkoss.web.util.resource.ResourceLoader.load(ResourceLoader.java:86)

	org.zkoss.web.util.resource.ResourceLoader.load(ResourceLoader.java:32)

	org.zkoss.util.resource.ResourceCache$Info.load(ResourceCache.java:227)

	org.zkoss.util.resource.ResourceCache$Info.<init>(ResourceCache.java:202)

	org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:134)

	org.zkoss.web.util.resource.ResourceCaches.get(ResourceCaches.java:120)

	org.zkoss.zk.ui.metainfo.PageDefinitions.getPageDefinition(PageDefinitions.java:140)

	org.zkoss.zk.ui.impl.AbstractUiFactory.getPageDefinition(AbstractUiFactory.java:165)

	org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:208)

	org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:135)

	javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

	javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

Any ideas? I checked the files that are deployed and saw that the Cardlayout.class file is there - I have never seen this before and it has me stuck.
Is there some new configuration I am missing?

delete flag offensive retag edit
Be the first one to reply this discussion!
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

Follow

RSS

Stats

Asked: 2012-10-31 12:16:18 +0800

Seen: 61 times

Last updated: Oct 31 '12

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