Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GWT bean reference problem

 
Mohammed Amine Tazi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

I'm developing a new GWT application. My new app references a jar that contains some Beans.
In the new app server side class I have a method that returns the bean in the referenced jar. I got an error : No source code available for this bean.

I tried to create a clone of this bean in my gwt app but get a serialization problem that my bean in the referenced jar doesn't serialize.

Could you help me please.

Good day.
Amine.
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I add a new major library, like gwt-ext.jar, I need to add an 'inherits' to the xml file. If I don't, I get that same "source code not found error." The inherits looks something like this:

<inherits name="com.gwtext.GwtExt"/>
 
Mohammed Amine Tazi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for the response. The problem is "inherits" looks just for gwt.xml files, so it appends it automatically to the name attribute of "inherits" tag.
if I put <inherits name="zoltar"/>, it gives me an error kind of : "error parsing xml, zoltar.gwt.xml not found".

Good day,
Amine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic