Hi all,
I'm new to GWT and I'm playing around with GWT for a month.
I tried to insert some ibatisDAO code to GWT, when I compile with
shell-hosted , i have the following error:
[TRACE] Removing units with errors
[ERROR] Errors in 'file:/<path>/src/java/com/<company>/dmt/admin/
client/persistence/DaoConfig.java'
No source code is available for type com.ibatis.dao.client.DaoManager;
did you forget to inherit a required module?
[ERROR] Line 46: No source code is available for type
java.util.Properties; did you forget to inherit a required module?
[ERROR] Line 48: No source code is available for type java.io.Reader;
did you forget to inherit a required module?
[ERROR] Line 48: No source code is available for type
com.ibatis.common.resources.Resources; did you forget to inherit a
required module?
[ERROR] Line 49: No source code is available for type
com.ibatis.dao.client.DaoManagerBuilder; did you forget to inherit a
required module?
Where com.<company>.dmt.admin.client.persistence.DaoConfig.java is:
---------------------------------------------------------
package com.<company>.dmt.admin.client.persistence;
import com.ibatis.common.resources.Resources;
import com.ibatis.dao.client.DaoManager;
import com.ibatis.dao.client.DaoManagerBuilder;
import java.io.Reader;
import java.util.Properties;
public class DaoConfig {
private static final String resource = "com/<company>/dmt/admin/
persistence/dao.xml";
private static final DaoManager daoManager;
static {
try {
daoManager = newDaoManager(null);
} catch (Exception e) {
throw new RuntimeException("Description. Cause: " + e,
e);
}
}
public static DaoManager getDaoManager() {
return daoManager;
}
public static DaoManager newDaoManager(Properties props) {
try {
Reader reader = Resources.getResourceAsReader(resource);
return DaoManagerBuilder.buildDaoManager(reader, props);
} catch (Exception e) {
throw new RuntimeException("Could not initialize
DaoConfig. Cause: " + e, e);
}
}
}
---------------------------------------------------------
Please help me find out why gwt compiler can't recognize the import -
import com.ibatis.common.resources.Resources;
import com.ibatis.dao.client.DaoManager;
import com.ibatis.dao.client.DaoManagerBuilder;
Thankss in advance!!
Keven
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---