Subject | Please Help... |
---|---|
Author | nomykk |
Post date | 2010-12-21T06:42:02Z |
i am trying to get records from a firebird DB but getting this exception.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/resource/ResourceException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.tPOS.admin.database.DBConnection.getConnection(DBConnection.java:15)
at com.tPOS.admin.businesslogic.AdminLogin.adminLogin(AdminLogin.java:16)
at com.tPOS.admin.gui.Login$2.widgetSelected(Login.java:98)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at com.tPOS.admin.gui.Login.open(Login.java:47)
at com.tPOS.admin.gui.Login.main(Login.java:32)
Caused by: java.lang.ClassNotFoundException: javax.resource.ResourceException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 12 more
this is my CODE
Class.forName("org.firebirdsql.jdbc.FBDriver");
conn = DriverManager.getConnection("jdbc:firebirdsql://localhost/3050//E:/tPOSFDB/tPOS.fdb", "SYSDBA", "password");
Statement st = con.createStatement();
ResultSet rs = st.executeQuery("Selet * from Login where userid = 'id' AND password = 'password' AND status = 'Active'");
please help me...........
Exception in thread "main" java.lang.NoClassDefFoundError: javax/resource/ResourceException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.tPOS.admin.database.DBConnection.getConnection(DBConnection.java:15)
at com.tPOS.admin.businesslogic.AdminLogin.adminLogin(AdminLogin.java:16)
at com.tPOS.admin.gui.Login$2.widgetSelected(Login.java:98)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at com.tPOS.admin.gui.Login.open(Login.java:47)
at com.tPOS.admin.gui.Login.main(Login.java:32)
Caused by: java.lang.ClassNotFoundException: javax.resource.ResourceException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 12 more
this is my CODE
Class.forName("org.firebirdsql.jdbc.FBDriver");
conn = DriverManager.getConnection("jdbc:firebirdsql://localhost/3050//E:/tPOSFDB/tPOS.fdb", "SYSDBA", "password");
Statement st = con.createStatement();
ResultSet rs = st.executeQuery("Selet * from Login where userid = 'id' AND password = 'password' AND status = 'Active'");
please help me...........