Thanks. Please, where are Data Access Objects supposed to reside in the gwt 
project? On the Client side or Server Side?   
                           
   

--- On Thu, 4/29/10, Sripathi Krishnan <sripathikrish...@gmail.com> wrote:


From: Sripathi Krishnan <sripathikrish...@gmail.com>
Subject: Re: Error: No source code is available for type 
com.entities.EvlangDAO; did you forget to inherit a required module?
To: google-web-toolkit@googlegroups.com
Date: Thursday, April 29, 2010, 3:40 AM


You can't use hibernate or threadlocal variables on client side code. Think 
about it, you don't want your javascript code to connect to the database.

The list of supported packages/classes can be found here - 
http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html

--Sri




On 29 April 2010 12:51, fomba collins <fomba_coll...@yahoo.com> wrote:







Thanks. The errors on the extra package sources have been rmoved. But given 
that inside these classes, I imported other classes from jar files that I added 
to the under libraries, new errors are generated on the classes of these 
libraries. Here are the errors:
 
[ERROR] Errors in 
'file:/C:/Projets/java/webtop/src/com/extjs/gxt/samples/desktop/client/widget/HibernateSessionFactory.java'
         [ERROR] Line 23: No source code is available for type 
java.lang.ThreadLocal<T>; did you forget to inherit a required module?
         [ERROR] Line 23: No source code is available for type 
org.hibernate.Session; did you forget to inherit a required module?
         [ERROR] Line 24: No source code is available for type 
org.hibernate.cfg.Configuration; did you forget to inherit a required module?
         [ERROR] Line 25: No source code is available for type 
org.hibernate.SessionFactory; did you forget to inherit a required module?
         [ERROR] Line 48: No source code is available for type 
org.hibernate.HibernateException; did you forget to inherit a required module?
      [ERROR] Errors in 
'file:/C:/Projets/java/webtop/src/com/extjs/gxt/samples/desktop/client/widget/BaseHibernateDAO.java'
         [ERROR] Line 16: No source code is available for type 
net.sf.gilead.gwt.PersistentRemoteService; did you forget to inherit a required 
module?
         [ERROR] Line 31: No source code is available for type 
org.hibernate.Session; did you forget to inherit a required module?
      [ERROR] Errors in 
'file:/C:/Projets/java/webtop/src/com/extjs/gxt/samples/desktop/client/widget/IBaseHibernateDAO.java'
         [ERROR] Line 11: No source code is available for type 
org.hibernate.Session; did you forget to inherit a required module?
      [ERROR] Errors in 
'file:/C:/Projets/java/webtop/src/com/extjs/gxt/samples/desktop/client/widget/EvlangDAO.java'
         [ERROR] Line 26: No source code is available for type 
org.apache.commons.logging.Log; did you forget to inherit a required module?
         [ERROR] Line 26: No source code is available for type 
org.apache.commons.logging.LogFactory; did you forget to inherit a required 
module?
         [ERROR] Line 41: No source code is available for type 
javax.persistence.EntityManager; did you forget to inherit a required module?
         [ERROR] Line 74: No source code is available for type 
org.hibernate.criterion.Example; did you forget to inherit a required module?
         [ERROR] Line 90: No source code is available for type 
org.hibernate.Query; did you forget to inherit a required module?
         [ERROR] Line 141: No source code is available for type 
org.hibernate.LockMode; did you forget to inherit a required module?
      [ERROR] Errors in 
'file:/C:/Projets/java/webtop/src/com/extjs/gxt/samples/desktop/client/widget/EvutiDAO.java'
         [ERROR] Line 23: No source code is available for type 
org.apache.commons.logging.Log; did you forget to inherit a required module?
         [ERROR] Line 23: No source code is available for type 
org.apache.commons.logging.LogFactory; did you forget to inherit a required 
module?
         [ERROR] Line 65: No source code is available for type 
org.hibernate.criterion.Example; did you forget to inherit a required module?
         [ERROR] Line 81: No source code is available for type 
org.hibernate.Query; did you forget to inherit a required module?
         [ERROR] Line 136: No source code is available for type 
org.hibernate.LockMode; did you forget to inherit a required module?
   Finding entry point classes
      [ERROR] Unable to find type 'com.extjs.gxt.samples.desktop.client.Webtop'
         [ERROR] Hint: Previous compiler errors may have made this type 
unavailable
         [ERROR] Hint: 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

 
Any help please? Thanks
    
 
                           
   

--- On Wed, 4/28/10, Sripathi Krishnan <sripathikrish...@gmail.com> wrote:


From: Sripathi Krishnan <sripathikrish...@gmail.com>
Subject: Re: Error: No source code is available for type 
com.entities.EvlangDAO; did you forget to inherit a required module?
To: google-web-toolkit@googlegroups.com
Date: Wednesday, April 28, 2010, 1:54 PM





Client side source code must reside under the client sub-package. You should 
move the DAO's from the com.entities.* package to 
com.extjs.gxt.samples.desktop.client.entities.* package.

If you don't like the client sub-package, you can add additional packages using 
the <source path="">. Refer to Organize Projects chapter in the documentation 
for more information. 


Modules can specify which subpackages contain translatable source, causing the 
named package and its subpackages to be added to the source path. Only files 
found on the source path are candidates to be translated into JavaScript, 
making it possible to mix client-side and server-side code together in the same 
classpath without conflict. When module inherit other modules, their source 
paths are combined so that each module will have access to the translatable 
source it requires.
--Sri




On 28 April 2010 13:32, efsiken <fomba_coll...@yahoo.com> wrote:

Hi, I'm working on MyEclipse Enterprise workbench 6.5 and java5. I
added hibernate capabilities to my gwt project and generated some
classes through reverse engineering from the database. Then I created
a class in which I used the generated classes. Here is the code of the
class:

package
com.extjs.gxt.samples.desktop.client.widget;

import
com.entities.Evuti;
import
com.entities.Evlang;
import
com.entities.*;

import
java.util.ArrayList;

public
class Connection {

protected String login;

protected String password;

ArrayList<String> loginList = new ArrayList<String>();

ArrayList<String> passwordList =new ArrayList<String>();

ArrayList<String> nameList =new ArrayList<String>();

ArrayList<String> langList = new ArrayList<String>();

ArrayList<Evuti> list = new ArrayList<Evuti>();

ArrayList<Evlang> list1 = new ArrayList<Evlang>();

EvlangDAO langDAO = new EvlangDAO();

Evlang lang = new Evlang();

EvutiDAO usersDAO = new EvutiDAO();

Evuti users = new Evuti();

@SuppressWarnings({ "unchecked", "unchecked" })
public ArrayList<String> getLogin(){
list = (ArrayList<Evuti>) usersDAO.findAll();
for(int i=0; i<list.size();i++){
loginList.add(list.get(i).getCuti());
}
return loginList;
}

@SuppressWarnings("unchecked")
public ArrayList<String> getPassword(){
list = (ArrayList<Evuti>) usersDAO.findAll();
for(int i=0; i<list.size();i++){
passwordList.add(list.get(i).getMotp());
}
return passwordList;
}

@SuppressWarnings("unchecked")
public ArrayList<String> getNames(){
list = (ArrayList<Evuti>) usersDAO.findAll();
for(int i=0; i<list.size();i++){
nameList.add(list.get(i).getNomu());
}
return nameList;
}

public boolean connect(String login, String password){
boolean correct = false;
ArrayList<String> logins = this.getLogin();
ArrayList<String> passwords = this.getPassword();
if((logins.contains(login)&&(passwords.contains(password))&&(logins.indexOf(login)==passwords.indexOf(password))))
{
correct = true;
}
return correct;
}

@SuppressWarnings("unchecked")
public ArrayList<String> getLanguage() {
list = (ArrayList<Evuti>) usersDAO.findAll();
for(int i=0; i<list.size();i++){
nameList.add(list.get(i).getNomu());
}

return langList;
}
}

here is the error:


[ERROR] Errors in 'file:/C:/Projets/java/webtop/src/com/extjs/gxt/
samples/desktop/client/widget/Connection.java'
[ERROR] Line 24: No source code is available for type
com.entities.Evuti; did you forget to inherit a required module?
[ERROR] Line 26: No source code is available for type
com.entities.Evlang; did you forget to inherit a required module?
[ERROR] Line 28: No source code is available for type
com.entities.EvlangDAO; did you forget to inherit a required module?
[ERROR] Line 32: No source code is available for type
com.entities.EvutiDAO; did you forget to inherit a required module?

tnx

--
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



-- 

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


-- 



You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



      

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to