Subject | Re: [Firebird-Java] Please Help... |
---|---|
Author | Evgeny Putilin |
Post date | 2010-12-21T08:05:56Z |
Please include mini-j2ee.jar or mini-j2ee_16.jar (for JRE 1.7) to classpath
Tue, 21 Dec 2010 06:42:02 -0000 ������ �� "nomykk" <nomykk@...>:
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...........
WBR Evgeny Putilin
[Non-text portions of this message have been removed]
Tue, 21 Dec 2010 06:42:02 -0000 ������ �� "nomykk" <nomykk@...>:
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...........
WBR Evgeny Putilin
[Non-text portions of this message have been removed]