I am trying to access via HSQLDB. My class is:
public class ManejadorBD {
        public boolean checkUser(String user, String pass) throws Exception{
                Class.forName("org.hsqldb.jdbcDriver");
                Properties prop = new Properties();
        
prop.load(this.getClass().getResource("database.properties").openStream());

                JDBCDriver driver = new JDBCDriver();
                Connection conn = driver.connect("jdbc:postgresql://localhost:
5432/3encult", prop);
                String sql = "SELECT login,password FROM \"user\"";
                Statement statement = (JDBCStatement) conn.createStatement();
                ResultSet tabla = statement.executeQuery(sql);
                while(tabla.next()){
                        if(user == tabla.getString("login") && pass ==
tabla.getString("password")) return true;
                        else return false;
                }
        }
}

And the properties file is:
user=3encult
password=3encult

But the connection object is null, what coult the problem be?
Thanks!
Regars!

On Apr 5, 9:16 pm, Paul Robinson <[email protected]> wrote:
> You can't access a regular SQL DB if you're using google app engine. Either 
> turn off the GAE setting or use GAE compatible data access.
>
> On 05/04/11 12:57, Jose Luis Hernandez wrote:
>
>
>
>
>
>
>
> > java.lang.NoClassDefFoundError: org.postgresql.core.Logger is a
> > restricted class. Please see the Google  App Engine developer's guide
> > for more details.

-- 
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