Yes.

--
Arthur Kalmenson



On Wed, Jan 7, 2009 at 3:10 PM, Keven Chan <[email protected]> wrote:
>
> Thanks for you reply!!!
>
> So is that means in order to retreieve data from database via ibatis,
> I have to creat a RPC? or can i call the object/classes from
> com.<company>.dmt.admin.server.persistence??
>
> This maybe a stupid question...
> THanks!!
>
> On Jan 7, 2:49 pm, "[email protected]" <[email protected]>
> wrote:
>> The client portion of your code can only use objects which GWT
>> emulates (http://code.google.com/docreader/#p=google-web-toolkit-
>> doc-1-5&s=google-web-toolkit-doc-1-5&t=RefJreEmulation) and objects
>> which are in your client package.
>>
>> You probably want to move this to your com...server package instead.
>>
>> On Jan 7, 2:18 pm, Keven Chan <[email protected]> wrote:
>>
>> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to