[DEBUG] [mydatabase] - Validating newly compiled units
[TRACE] [mydatabase] - Finding entry point classes
        [ERROR] [mydatabase] - Errors in 'file:/C:/Users/aughade/workspace/
MyDataBase/src/com/google/MyDataBase/client/MyDataBase.java'
                [ERROR] [mydatabase] - Line 40: No source code is available for 
type
java.sql.Connection; did you forget to inherit a required module?
                [ERROR] [mydatabase] - Line 42: No source code is available for 
type
java.sql.Statement; did you forget to inherit a required module?
                [ERROR] [mydatabase] - Line 44: No source code is available for 
type
java.sql.ResultSet; did you forget to inherit a required module?
                [ERROR] [mydatabase] - Line 87: No source code is available for 
type
java.sql.SQLException; did you forget to inherit a required module?
        [ERROR] [mydatabase] - Errors in 'file:/C:/Users/aughade/workspace/
MyDataBase/src/com/google/MyDataBase/client/MyConnection.java'
                [ERROR] [mydatabase] - Line 5: No source code is available for 
type
java.sql.Connection; did you forget to inherit a required module?
                [ERROR] [mydatabase] - Line 10: The method forName(String) is
undefined for the type Class
                [ERROR] [mydatabase] - Line 11: No source code is available for 
type
java.sql.DriverManager; did you forget to inherit a required module?
                [ERROR] [mydatabase] - Line 14: No source code is available for 
type
java.lang.ClassNotFoundException; did you forget to inherit a required
module?
                [ERROR] [mydatabase] - Line 18: No source code is available for 
type
java.sql.SQLException; did you forget to inherit a required module?
        [ERROR] [mydatabase] - Unable to find type
'com.google.MyDataBase.client.MyDataBase'
                [ERROR] [mydatabase] - Hint: Previous compiler errors may have 
made
this type unavailable
                [ERROR] [mydatabase] - 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
[ERROR] [mydatabase] - Failed to load module 'mydatabase' from user
agent 'Mozilla/5.0 (Windows NT 6.1; rv:9.0.1) Gecko/20100101 Firefox/
9.0.1' at 127.0.0.1:58334
[DEBUG] [mydatabase] - Validating newly compiled units
[TRACE] [mydatabase] - Finding entry point classes
        [ERROR] [mydatabase] - Errors in 'file:/C:/Users/aughade/workspace/
MyDataBase/src/com/google/MyDataBase/client/MyDataBase.java'
                [ERROR] [mydatabase] - Line 40: No source code is available for 
type
java.sql.Connection; did you forget to inherit a required module?
                [ERROR] [mydatabase] - Line 42: No source code is available for 
type
java.sql.Statement; did you forget to inherit a required module?
                [ERROR] [mydatabase] - Line 44: No source code is available for 
type
java.sql.ResultSet; did you forget to inherit a required module?
                [ERROR] [mydatabase] - Line 87: No source code is available for 
type
java.sql.SQLException; did you forget to inherit a required module?
        [ERROR] [mydatabase] - Errors in 'file:/C:/Users/aughade/workspace/
MyDataBase/src/com/google/MyDataBase/client/MyConnection.java'
                [ERROR] [mydatabase] - Line 5: No source code is available for 
type
java.sql.Connection; did you forget to inherit a required module?
                [ERROR] [mydatabase] - Line 10: The method forName(String) is
undefined for the type Class
                [ERROR] [mydatabase] - Line 11: No source code is available for 
type
java.sql.DriverManager; did you forget to inherit a required module?
                [ERROR] [mydatabase] - Line 14: No source code is available for 
type
java.lang.ClassNotFoundException; did you forget to inherit a required
module?
                [ERROR] [mydatabase] - Line 18: No source code is available for 
type
java.sql.SQLException; did you forget to inherit a required module?
        [ERROR] [mydatabase] - Unable to find type
'com.google.MyDataBase.client.MyDataBase'
                [ERROR] [mydatabase] - Hint: Previous compiler errors may have 
made
this type unavailable
                [ERROR] [mydatabase] - 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
[ERROR] [mydatabase] - Failed to load module 'mydatabase' from user
agent 'Mozilla/5.0 (Windows NT 6.1; rv:9.0.1) Gecko/20100101 Firefox/
9.0.1' at 127.0.0.1:58338


i already set path of external ojdbc14.jar file.
please help me as soon as possible.

**************code*********

package com.google.MyDataBase.client;

import com.google.MyDataBase.shared.FieldVerifier;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.MyDataBase.client.MyConnection;
import com.google.gwt.user.client.ui.FormPanel;
import com.google.gwt.user.client.ui.PasswordTextBox;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.ResultSet;
import java.sql.*;
/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class MyDataBase implements EntryPoint {
        /**
         * The message displayed to the user when the server cannot be
reached or
         * returns an error.
         */
        private FormPanel MyForm=new FormPanel();
        private TextBox MyTextBox=new TextBox();
        private PasswordTextBox MyPassBox=new PasswordTextBox();
        private VerticalPanel MyPanel=new VerticalPanel();
        private Connection con=null;
        private MyConnection MyObject=new MyConnection();
        private Statement MyStatement;
        int count=0;
        ResultSet MySet=null;
        private static final String SERVER_ERROR = "An error occurred while "
                        + "attempting to contact the server. Please check your 
network "
                        + "connection and try again.";

        /**
         * Create a remote service proxy to talk to the server-side Greeting
service.
         */
        private final GreetingServiceAsync greetingService = GWT
                        .create(GreetingService.class);

        /**
         * This is the entry point method.
         */
        public void onModuleLoad() {
                MyPanel.add(MyTextBox);
                MyPanel.add(MyPassBox);
                MyForm.add(MyPanel);
                String Name=MyTextBox.getText();
                String Pass=MyPassBox.getText();
                try{
                con=MyObject.getMyConnection();
                MyStatement=con.createStatement();
                MySet=MyStatement.executeQuery("select * from department");
                while(MySet.next())
                {
        
if(MySet.getString(1).equals(Name)&&MySet.getString(2).equals(Pass))
                        {
                                count=1;
                        }//end if



                }//end WHile
                if(count!=0)
                {
                        Window.alert("Right Password");
                }
                else
                {
                        Window.alert("Wrong Password");
                }
                }//end try
                catch(SQLException e)
                {
                        e.getStackTrace();

                }//end catch



        }//end onModuleLoad
}



2 nd class file



package com.google.MyDataBase.client;
import java.sql.*;

public class MyConnection {
        public Connection getMyConnection(){
                Connection con=null;

                try{

                Class.forName("oracle.jdbc.driver.OracleDriver");
        
con=DriverManager.getConnection("jdbc:oracle:thin:@172.16.55.15:1521:stingdev",
"ecom_usa", "tramat34");
                con.setAutoCommit(false);
                }
                catch(ClassNotFoundException e)
                {
                e.getStackTrace();
                }
                catch(SQLException e){
                        e.printStackTrace();
                }
                return con;
        }

}

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