giovanni.puliti
15 Jan 2010, 2:47 AM
hy folks
i'm currently involved in building a GXT application based on a business logic layer made in EJB.
The GXT application communicate with the EJB layer via RMI/IIOP, all the calls are made in the server side of the GXT application using a Business Delegate (BD) for the comunication and some data transfer objects (DTO) for the data transport between layers.
All the EJB interaction logics (BDs and DTOs objects) are included in a jar library made by the EJB developers team. I need to include and use this classes in my GXT application.
This is what i did:
- first of all include the ejb-client.jar in the Eclipse project. following the GWT documentation in that jar are included all .class (compiled) and .java (sources) files.
I put in that file a ejb-client.gwt.xml file describing the library (but maybe the mistake is in the place of that file and the content).
- in the gxt application i've imported that library using the inherited tag in my-gxt-app.gwt.xml
<inherits name="it.myejbapp.utils.ejb-client"/>
when i use some DTO object on signature of RPC methods i receive an error (in Eclipse console and also from the gwt-compiler log):
Problem description: it.myejbapp.utils.MyDTO can not be found in source packages. Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly.
the Eclispe automatic fixing put in the gwt.xml file another <inherits> but this doesn't solve the problem.....
any idea? Wich is the correct way to include an external set of classes in my application?
note: i wish to use external DTOs since i'm using the proxy-loader-store mechanism to populate data UI widgets (for example a grid) in automatic way, with out translating in other objects from gxt layer
i'm currently involved in building a GXT application based on a business logic layer made in EJB.
The GXT application communicate with the EJB layer via RMI/IIOP, all the calls are made in the server side of the GXT application using a Business Delegate (BD) for the comunication and some data transfer objects (DTO) for the data transport between layers.
All the EJB interaction logics (BDs and DTOs objects) are included in a jar library made by the EJB developers team. I need to include and use this classes in my GXT application.
This is what i did:
- first of all include the ejb-client.jar in the Eclipse project. following the GWT documentation in that jar are included all .class (compiled) and .java (sources) files.
I put in that file a ejb-client.gwt.xml file describing the library (but maybe the mistake is in the place of that file and the content).
- in the gxt application i've imported that library using the inherited tag in my-gxt-app.gwt.xml
<inherits name="it.myejbapp.utils.ejb-client"/>
when i use some DTO object on signature of RPC methods i receive an error (in Eclipse console and also from the gwt-compiler log):
Problem description: it.myejbapp.utils.MyDTO can not be found in source packages. Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly.
the Eclispe automatic fixing put in the gwt.xml file another <inherits> but this doesn't solve the problem.....
any idea? Wich is the correct way to include an external set of classes in my application?
note: i wish to use external DTOs since i'm using the proxy-loader-store mechanism to populate data UI widgets (for example a grid) in automatic way, with out translating in other objects from gxt layer