I did all according to docu - my service is present under
myapp.url/handler/testrpc.
but GWT expects me to supply : setServiceEntryPoint()...
When i set it to GWT.getModuleBaseURL()
it submits the service to :
localhost:8080/myapp/myapp which is obviously wrong... how should i
proceed ?
--
Jacek
I defined my service as follows :
public BaseListLoadResult<ModelData> getList(SlownikMeta meta) {
List list = this.jdbcTemplate.query(
"SELECT * FROM ? ORDER BY SORTORDER ASC", new Object[] { meta
.getTableName() }, new RowMapper() {
public Object mapRow(ResultSet rs, int rowNum)
throws SQLException {
Slownik s = new Slownik(rs.getLong("ID"), rs
.getLong("REFPARENTITEM"), rs.getLong("ITEM"),
rs.getDate("SYSIN"), rs.getDate("SYSOUT"), rs
.getString("DICCODE"), rs
.getString("DICVALUE"), rs
.getDate("DATEIN"), rs
.getDate("DATEOUT"), rs
.getInt("RSTATE"));
return s;
}
});
return new BaseListLoadResult<ModelData>(list);
}
Its pretty straightforward but when call gets executed i get the
following exception :
SEVERE: Exception while dispatching incoming RPC call
java.lang.RuntimeException: java.lang.NoSuchMethodException: public
abstract com.extjs.gxt.ui.client.data.ListLoadResult
com.pl.jzebrowski.kataster.client.services.Slo
And a buch of sl related exceptions after that... can someone point me
in a good way ?
--
Jacek
Make sure that the JAR containing the SlownikService resides in
WEB-INF/lib and is compiled for your target VM. Also have a look at the
server logs during startup for clues regarding class loading. I suspect
that you might have multiple versions of the SlownikService class in
your application, lost and forgotten in some obscure JAR or WEB-INF/classes.